Re: [R] Running LaTeX dvi previewer on MacOS X

From: Frank E Harrell Jr <f.harrell_at_vanderbilt.edu>
Date: Sat, 01 Mar 2008 07:52:06 -0600

Charilaos Skiadas wrote:
> On Feb 29, 2008, at 5:39 PM, Michael wrote:
>

>> On 29 Feb 2008, Charilaos Skiadas wrote:
>>
>>> On Feb 29, 2008, at 12:38 PM, Michael wrote:
>>>> On 29 Feb 2008, Frank E. Harrell, Jr. wrote:
>>>>
>>>>> Several people have given great advice on how to successfully use
>>>>> X11 on
>>>>> Mac to so we can use the dvi previewer to view latex() output from
>>>>> Hmisc.  Now after a version upgrade of X11 and X11sdk we are  
>>>>> getting
>>>>> lots of crashes.  I noticed a Mac dvi previewer with an executable
>>>>> stored as /Applications/TeX/TeXShop.app/Contents/MacOS/TeXShop
>>>>>
>>>>> Can we bypass X11 problems and point Hmisc to this executable  
>>>>> for dvi
>>>>> viewing?
>>>> I think TeXshop converts dvi to pdf (something like dvips ->  
>>>> ps2pdf) for
>>>> viewing. Why not just use pdf for Mac?  Preview.app on Leopard  
>>>> does do
>>>> live updating.
>>> And Skim.app does updating on Tiger, and is IMHO much better to
>>> Preview.app in other ways (works with pdfsync for instance, allows
>>> syncing back and forth between the pdf file and the corresponding tex
>>> source)
>> We were not talking about using TeXshop to edit LaTeX files.   
>> Rather the
>> latex() function Hmisc generates a dvi file and the question is how  
>> to view
>> it since Mac does not have native dvi viewer (other than xdvi).   
>> The pdfsync
>> function of Skim or TeXshop is irrelevant.

>
> Why is it important that the output file be a dvi file? Would it be a
> problem to have the latex() function produce a pdf file on mac systems?
> I thought the latex() command was just producing tex code.

This discussion is about previewing the result of latex(), and Hmisc has several dvi-related functions. One could write a similar pdf conversion or pdf viewer functions taking as input the result of dvi(latex()). Also, I'm trying to just make the mechanisms in Hmisc for latex() that work fine on Linux/Unix/Windows work well for Mac users.

Frank

>

>> Michael

>
> Haris Skiadas
> Department of Mathematics and Computer Science
> Hanover College
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sat 01 Mar 2008 - 14:00:49 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 01 Mar 2008 - 14:30:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive