[R] Proper way to typeset the symbol for R in LaTeX?
Marc Schwartz
marc_schwartz at comcast.net
Thu Feb 15 17:30:34 CET 2007
On Thu, 2007-02-15 at 11:02 -0500, Charilaos Skiadas wrote:
> Hoping this is not off topic...
>
> I am in the process of writing some tutorials for my students for
> learning R, and naturally I'm using Sweave for this. So suddenly a
> question occurred to me: LaTeX has a recommended way of typesetting
> the TeX and LaTeX symbols, via the \TeX and \LaTeX commands. Is there
> a similar command for the R symbol, or in general are there any
> guidelines/recommendations on how to typeset the letter R when
> referring to the R language?
>
> Haris
There is a Rnews.sty file on CRAN at:
http://cran.r-project.org/doc/Rnews/Rnews.sty
However, the key code is really:
\newcommand{\R}{R}
which is then used in LaTeX as:
The use of \R{} ...
It is essentially a capital R in the default serif font.
BTW, if you need the full citation for R, just use citation() in a R
session.
HTH,
Marc Schwartz
More information about the R-help
mailing list