[R] [OT] getting a ~ character in LaTeX

Douglas Bates bates at stat.wisc.edu
Tue Jan 16 20:04:06 CET 2001

I am writing course notes in LaTeX.  In the part where I am describing
model-fitting functions in R I want to use a ~ character inline.  If I
am displaying an example of R code in its own environment I use the
alltt environment, which protects the ~ character.  I have forgotten
how to protect the ~ when I am writing something like
  The operator `~' is used to define a model formula in \R.
  The left hand side is evaluated as the response.  The right hand
  side can consist of several \Emph{terms} with special meanings

I welcome suggestions.
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

More information about the R-help mailing list