[R] Hmisc - some latex problems

Frank E Harrell Jr f.harrell at vanderbilt.edu
Mon Dec 25 16:50:08 CET 2006


steve wrote:
> If I use latex with describe:
> (faithful is the Old faithful data)
> 
> latex(describe(faithful),file="describe.tex")
> 
> then the first few lines of describe.tex are
> 
> \begin{spacing}{0.7}
> \begin{center} \bf faithful \\ 2 Variables~~~~~ 272 ~Observations 
> \end{center}
> 
> I have two problems. First, I don't know what package
> the environment "spacing" comes from. (There is also a command \smaller, 
> but that is from the relsize package. Perhaps the latex man page could 
> list the latex packages that are necessary to create correct output.)

The latex object created by latex.describe lists the necessary styles - 
setspace and relsize - but I'll make that clear in the documentation. 
Note for debian linux users - these styles are included in the package 
tetex-extra.

> 
> Second, I use the memoir class, and it flags \bf as an error -
> \textbf should be used instead. A correct version would be
> 
> 
> \begin{center}\textbf{  faithful \\ 2 Variables~~~~~ 272 
> ~Observations}\end{center}

Thanks - will fix in next release

Frank

> 
> thank you,
> 
> Steve



More information about the R-help mailing list