Skip to content
Prev 8997 / 398502 Next

[OT] getting a ~ character in LaTeX

That is the most convenient solution, but in Doug's case there might be
a problem with typesetting

	foo ~ bar | baz

:-)

In the short run, I think the official solution is to use
	\textasciitilde
and if you look at the code for this you will see that
	latex.ltx:\DeclareTextCommandDefault{\textasciitilde}{\~{}}
	t1enc.def:\DeclareTextSymbol{\textasciitilde}{T1}{`\~}

In the long run, I realized when working on the newsletter style file
with Fritz that if we have texinfo/HTML like markup commands such as
\code and \file then *inside* these we really want a behavior similar to
alltt or inside \url, i.e., only the escape and the grouping chars
should be special (only `\' `{' and `}').  I am planning to write macros
for this, maybe in a style file of its own so that we can also use it in
Rd.sty, for example.

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._