Skip to content
Prev 5453 / 398502 Next

including r code in a latex file

On Mon, 1 May 2000, Faheem Mitha wrote:

            
Use a verbatim environment (or \verb for inline text).  Lots of other
things like ^ and ~ will cause problems in LaTeX too.  Alternatively,
look hard at how the Rdconv does it using Rd.sty.  (V&R has a custom-made
verbatim-like environment with a custom virtual tt font, for example.)

Alternatively, investigate one of the many program-setting packages you can
find on CTAN, or the S.sty on statlib (used for the White Book).