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? Thanks Frank -- Frank E Harrell Jr Professor and Chair School of Medicine Department of Biostatistics Vanderbilt University
Frank, You don't need to use X11 for TeXShop; I use Lyx for the Mac as well ? I don't use X11 or xdvi for either? Regards, Tom 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? > > Thanks > Frank > >-- Thomas E Adams National Weather Service Ohio River Forecast Center 1901 South State Route 134 Wilmington, OH 45177 EMAIL: thomas.adams at noaa.gov VOICE: 937-383-0528 FAX: 937-383-0033
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.>From Preview, those pdf file can also be dragged to Pages ducument.Michael
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)>> From Preview, those pdf file can also be dragged to Pages ducument. > > MichaelHaris Skiadas Department of Mathematics and Computer Science Hanover College
The generic way to open an arbitrary file with an arbitrary application in OS X at the command line in a shell window is open -a application_name file_name quoted if there are embedded spaces. One doesn't generally have to give the full path to the application. Digging into help.start() might give you some pointers. -Don At 10:24 AM -0600 2/29/08, 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? > >Thanks >Frank > >-- >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.-- -------------------------------------- Don MacQueen Environmental Protection Department Lawrence Livermore National Laboratory Livermore, CA, USA 925-423-1062
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. Michael
On 29 Feb 2008, Don MacQueen wrote:> The generic way to open an arbitrary file with an arbitrary > application in OS X at the command line in a shell window is > > open -a application_name file_nameBut there is no native Mac program to open a dvi file. Michael
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.> MichaelHaris Skiadas Department of Mathematics and Computer Science Hanover College
Michael wrote:> On 29 Feb 2008, Don MacQueen wrote: > >> The generic way to open an arbitrary file with an arbitrary >> application in OS X at the command line in a shell window is >> >> open -a application_name file_name > > But there is no native Mac program to open a dvi file. > > MichaelBut you can install one. You missed the earlier e-mails on this subject. Frank> > ______________________________________________ > 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