On Thu, May 13, 2010 at 12:46 PM, Erik Iverson <er...@ccbr.umn.edu> 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 > multiple times. I think mine is less flexible though, and I like your > solution better. > > The only thing I can see to make your solution more flexible is to note > that there is already options("pdfviewer") in R, so maybe you could just use > whatever that is for options("xdvicmd") and then in show.dvi, you can test > I set the value of xdvicmd correctly for the pdf viewer on my machine. It would be possible to use options()$pdfviewer instead. That is part of the smoothing that I have implicitly asked Charles and Frank to do. Also, to make things more automatic. 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) Rich [[alternative HTML version deleted]] ______________________________________________ R-help@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.