From ligges at statistik.uni-dortmund.de  Tue Mar 22 08:39:14 2005
From: ligges at statistik.uni-dortmund.de (Uwe Ligges)
Date: Tue Mar 22 08:39:26 2005
Subject: [Rd] Writing R documentation
In-Reply-To: <Pine.GSO.4.40.0503211746110.8570-100000@sdac.harvard.edu>
References: <Pine.GSO.4.40.0503211746110.8570-100000@sdac.harvard.edu>
Message-ID: <423FCBA2.7090504@statistik.uni-dortmund.de>

Suzette Blanchard wrote:

> Greetings,
> 
> I used latex type code in my Rd files.
> 
> The pdf version using
> R CMD Rd2dvi --output=PKtools.pdf --pdf --title="PKtools" PKtools man
> came out quite nice.
> 
> However, my current HTML version does not tex the latex so there is
> latex code in the files and looks bad.

Sorry, I don't understand "HTML version does not tex the latex"?



> 
> example problem code:
> 
> AIC$_c$
> 
> or
> 
> \begin{itemize}
> \item NLME:
> \begin{itemize}
> \item population level: identify(MM\$mm\$fitted[,1], MM\$pkdata\$conc)
> \item individual level: identify(MM\$mm\$fitted[,2], MM\$pkdata\$conc)
> \end{itemize}
> \item NONMEM:
> \begin{itemize}
> \item population level: identify(NM\$pred\$PRED, NM\$pred\$CONC)
> \item individual level: identify(NM\$pred\$IPRE, NM\$pred\$CONC)
> \end{itemize}
> \item WinBUGS:
> \begin{itemize}
> \item population level: identify(WB\$pred\$ppred, WB\$pred\$conc)
> \item individual level: identify(WB\$pred\$ipred, WB\$pred\$conc)
> \end{itemize}
> 
> Is there a way to fix this?

.Rd is not .tex.

Please read the manual "Writing R Extensions". You cannot use 
mathematical environments that way. There are \eqn{} environments, if 
you really need it.

Uwe Ligges






> I tried Rdconv using --type=HTML but that did not work.
 >
> Any help you can send would be appreciated.
> 
> Thank you,
> Suzette
> 
> =================================
> Suzette Blanchard, Ph.D.
> UCSD-PPRU
> 
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Writing R documentation
Uwe Ligges