Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.21.0005011700010.486-100000@Chrestomanci.home.earth>
Date: 2000-05-01T21:05:15Z
From: Faheem Mitha
Subject: including r code in a latex file

Dear R people,

The header practically says it all. I was wanting to include r code in a
Latex file. Since R code using{ and }, which are interpreted by Latex as
control characters, I would expect it to get upset.

I believe that \{ would probably print as {, but I hoping I don't have to
go through the code and add lots of \. I would rather use some global
commannd, along the lines of \treatastext{R code}.

Is there something like this? I'm not that familiar with Latex.

                                  Thanks, Faheem.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._