Skip to content
Back to formatted view

Raw Message

Message-ID: <XFMail.20010116152437.s-luppescu@uchicago.edu>
Date: 2001-01-16T21:24:37Z
From: Stuart Luppescu
Subject: [OT] getting a ~ character in LaTeX
In-Reply-To: <6rk87ve2u1.fsf@franz.stat.wisc.edu>

On 16-Jan-2001 Douglas Bates wrote:
> 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

How about \sim? That's what I use when I need a ~ meaning ``is distributed
as.'' You may need \usepackage{amsmath} with this, but I'm not sure.
______________________________________________________________________
Stuart Luppescu         -=-=-  University of Chicago
$(B:MJ8$HCRF`H~$NIc(B        -=-=-  s-luppescu at uchicago.edu
http://www.consortium-chicago.org/people/sl.html
Finger sl70 at musuko.uchicago.edu forPGP Public Key
ICQ #21172047  AIM: psycho7070
Acceptance testing:
        An unsuccessful attempt to find bugs.
>> Sent on 16-Jan-2001 at 15:20:58 with xfmail
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._