4

Possible Duplicate:
Correctly typesetting a tilde

I can show ~(tilde) in normal text, using text as follows,

\begin{quote}
\verb|~|
\end{quote}

But the problem is when I try to put this in footnote{}. Error will be thrown, how should I do this?

Richard
  • 1,157

4 Answers4

5

You can use \~{} for a tilde. Example:

\documentclass{article}

\begin{document}
Hi here\footnote{My character is ``\~{}'' and \texttt{I can also typset
it in this font: ``\~{}''}.}.
\end{document}

The group {} is quite important after the \~, otherwise LaTeX will think it's an accent to put on the next character.

2

How about \textasciitilde ? It works for me.

Gacek
  • 305
2

Just use the \textasciitilde command.

1

\footnote{foo \~{} bar} works for me. If you want it in \verb style, but a \texttt around.

Nodebody
  • 208