Tao Shi,
Here is the repair for your query. Use this version of show.dvi temporarily
(until Hmisc includes it in its official version of show.dvi). This
function and
option setting will let the command
latex(x)
display the dvi file in a YAP window on Windows.
This version is not to be used
I didn't see that in the Adobe help file. There was some reference in the
Adobe online forum
http://forums.adobe.com/
but the first few hits were queries, not responses to the query. If you
pursue it, please
report success back to the list.
Rich
On Thu, May 13, 2010 at 4:08 PM, Felipe Carrill
R
>To: Felipe Carrillo
>Cc: Erik Iverson ; r-help@r-project.org; Charles Dupont
>; Frank E Harrell Jr
>Sent: Thu, May 13, 2010 1:00:43 PM
>Subject: Re: [R] a question about "latex" in Hmisc and .dvi file
>
>
>
>Your example showed up in landscape for me on the pdf
Your example showed up in landscape for me on the pdf file.
I needed to rotate the image in the Adobe Reader.
I like the appearance better with
show.dvi(dvi(x.tex <- latex(report,landscape=TRUE), width=8.5,
height=11))
where I changed the paper size in the dvi() command.
Rich
[[altern
"yap") {
paste(viewer, object$file)
}
else if (viewer == "kdvi") {
paste(viewer, object$file)
}
else if (viewer == "xdvi") {
paste(viewer, " -paper ", width, "x", height, "in -s 0 ",
obj
- Original Message
> From: Frank E Harrell Jr
> To: r-help@r-project.org
> Sent: Wed, May 12, 2010 4:28:20 PM
> Subject: Re: [R] a question about "latex" in Hmisc
>
> On 05/12/2010 03:33 PM, Shi, Tao wrote:
> Hi Ista,
>
> Thanks
> for the repl
; Cc: Ista Zahn ; r-help@r-project.org
> Sent: Wed, May 12, 2010 1:40:50 PM
> Subject: Re: [R] a question about "latex" in Hmisc
>
> On 12/05/2010 4:33 PM, Shi, Tao wrote:
> Hi Ista,
>
> Thanks
> for the reply!
>
> You actually misunderstood me. I never
&g
>
> At least I thought it did, since I believe show.dvi is an exported
> function, can't you just overwrite it in your global environment and
> anything that calls it will use your copy? I'll have to look into how I
> got your code working on my system, because I know I didn't use that trick!
>
Notice that I didn't quite get my function into the Hmisc environment
and that is why you need the awkward phrase
show.dvi(dvi(x.tex <- latex(x)))
instead of the smooth phrase
latex(x)
Somehow with my own data and not using the awkward bit, it worked on my
Linux machine? At least I
On Thu, May 13, 2010 at 12:46 PM, Erik Iverson wrote:
> Looks good.
Thank you.
> I came up with something on my own which was basically to re-write
> print.latex. I call pdflatex a few times because with the longtable
> package, sometimes things don't line up right until you run pdflatex
>
Looks good. I came up with something on my own which was basically to
re-write print.latex. I call pdflatex a few times because with the
longtable package, sometimes things don't line up right until you run
pdflatex multiple times. I think mine is less flexible though, and I
like your soluti
Here is the full repair for the latex functions in Hmisc to make pdflatex
work in Windows.
This version is still slightly awkward. I hope that Charles and Frank will
smooth it out
and put it in their next release.
I added two new options() and revised show.dvi so it will use them.
Rich
librar
Felipe Carrillo wrote:
HI:
If you don't mind me asking this question about latex:
Based on Duncan's comment:
"The print method for "latex" objects tries to run latex and then display the
resulting .dvi file. (Or maybe it runs pdflatex and displays the .pdf file)."
Where in MikTex can I change
urdoch
>> To: "Shi, Tao"
>> Cc: r-help@r-project.org
>> Sent: Wed, May 12, 2010 1:40:50 PM
>> Subject: Re: [R] a question about "latex" in Hmisc
>>
>> On 12/05/2010 4:33 PM, Shi, Tao wrote:
>> Hi Ista,
>>
>> Thanks
>> for
ogist
Department of the Interior
US Fish& Wildlife Service
California, USA
- Original Message
From: Duncan Murdoch
To: "Shi, Tao"
Cc: r-help@r-project.org
Sent: Wed, May 12, 2010 1:40:50 PM
Subject: Re: [R] a question about "latex" in Hmisc
On 12/05/2010 4:
ssage
> From: Duncan Murdoch
> To: "Shi, Tao"
> Cc: r-help@r-project.org
> Sent: Wed, May 12, 2010 1:40:50 PM
> Subject: Re: [R] a question about "latex" in Hmisc
>
> On 12/05/2010 4:33 PM, Shi, Tao wrote:
> Hi Ista,
>
> Thanks
>
On 05/12/2010 03:33 PM, Shi, Tao wrote:
Hi Ista,
Thanks for the reply!
You actually misunderstood me. I never objected the "tmp<- latex(x)" method
(in fact, that's what I'm doing now in my .Rnw file). As I stated in my original post, I'm
simply curious about what causes the error window and
On 12/05/2010 4:33 PM, Shi, Tao wrote:
Hi Ista,
Thanks for the reply!
You actually misunderstood me. I never objected the "tmp <- latex(x)" method
(in fact, that's what I'm doing now in my .Rnw file). As I stated in my original post, I'm
simply curious about what causes the error window and
Hi Ista,
Thanks for the reply!
You actually misunderstood me. I never objected the "tmp <- latex(x)" method
(in fact, that's what I'm doing now in my .Rnw file). As I stated in my
original post, I'm simply curious about what causes the error window and wanted
to get to the bottom of it.
...
-Ista
>
> Thanks,
>
> ...Tao
>
>
>
>
>
> - Original Message
>
> > From: Erik Iverson
> > To: Ista Zahn
> > Cc: r-help@r-project.org
> > Sent: Wed, May 12, 2010 12:34:15 PM
> > Subject: Re: [R] a question about "lat
..Tao
- Original Message
> From: Erik Iverson
> To: "Shi, Tao"
> Cc: Richard M. Heiberger ; r-help@r-project.org
> Sent: Wed, May 12, 2010 12:56:28 PM
> Subject: Re: [R] a question about "latex" in Hmisc
>
>
Shi, Tao wrote:
> Hi Richard,
>
> Obvi
o the big .tex
file (rather a separate .tex file just for that table). Am I right?
Thanks,
...Tao
- Original Message
> From: Erik Iverson
> To: Ista Zahn
> Cc: r-help@r-project.org
> Sent: Wed, May 12, 2010 12:34:15 PM
> Subject: Re: [R] a question about "late
Shi, Tao wrote:
Hi Richard,
Obviously, the list doesn't like my attachment. Here it is:
http://i41.tinypic.com/15qz387.jpg
I set the path using Windows control panel. And "didn't work" means
I'm still getting the same error window shown above.
Well, it's hard to say what's going on unle
ge
> From: Richard M. Heiberger
> To: "Shi, Tao"
> Cc: r-help@r-project.org
> Sent: Wed, May 12, 2010 12:34:13 PM
> Subject: Re: [R] a question about "latex" in Hmisc
>
> Shi, Tao wrote:
> so, I always get the error window (attached) poped out.
>
The
Shi, Tao wrote:
so, I always get the error window (attached) poped out.
The image was stripped by the mailer. Please type the text of the error
into the body of the email.
I tried to include the following into my PATH:
"C:\Program Files\MiKTeX 2.7\tex\latex"
Where? In the Windows envi
ay 12, 2010 12:27:32 PM
> Subject: Re: [R] a question about "latex" in Hmisc
>
>
Shi, Tao wrote:
> Hi list,
>
> Excuse me b/c this is
> probably a more "TeX" then "R" question.
>
> I've been using
> "latex" function
Ista Zahn wrote:
Hi Tao,
I think you just need latex(x, file="")
I think I misunderstood the question, I believe that is what is needed
here.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the po
Shi, Tao wrote:
Hi list,
Excuse me b/c this is probably a more "TeX" then "R"
question.
I've been using "latex" function in my .Rnw file to
generate tables, but I've always been using it without assigning the
result to a object, i.e.
x <- matrix(1:6, nrow=2,
dimnames=list(c('a','b'),c(
Hi Tao,
I think you just need latex(x, file="")
Best,
Ista
On Wednesday 12 May 2010 3:18:42 pm Shi, Tao wrote:
> Hi list,
>
> Excuse me b/c this is probably a more "TeX" then "R"
> question.
>
> I've been using "latex" function in my .Rnw file to
> generate tables, but I've always been using it
Hi list,
Excuse me b/c this is probably a more "TeX" then "R"
question.
I've been using "latex" function in my .Rnw file to
generate tables, but I've always been using it without assigning the
result to a object, i.e.
x <- matrix(1:6, nrow=2,
dimnames=list(c('a','b'),c('c','d','this that'))
30 matches
Mail list logo