TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How does one insert a backslash or a tilde into LaTeX?

I wonder how I can typeset in LaTeX this text: @Data.test~

I mean, I want to have in the end "To display the data we use token @Data.test~." I searched symbols documentation, but only found \textasciitilde, which was not what I wanted. And no command for using @ in the text except \MVAt, but it is displayed in bold.

Thank you!

share|improve this question

marked as duplicate by topskip, Ian Thompson, Claudio Fiandrino, Joseph Wright Jun 13 '12 at 9:52

This question was marked as an exact duplicate of an existing question.

Not a direct answer but an idea : \makeatletter @\makeatother\relax Data.test\textasciitilde – percusse Jun 13 '12 at 9:18
@percusse You can use @ directly: contrary to what people tend to think, it is not 'special' in document-level material. – Joseph Wright Jun 13 '12 at 9:20
@percusse You don't need \makeatletter to print a @. Use simply the symbol itself. \makeatletter is only needed when you want @ in a command name. – Ulrike Fischer Jun 13 '12 at 9:22
@JosephWright Yes, but I remember breaking down some macro (can't remember what it was) with it though. Maybe it was because of something else. – percusse Jun 13 '12 at 9:22
Aha, OK, @ works. But \textasciitilde puts tilde too high, not in the middle of the line. It looks like the tilde is above some empty character. – Oleksandr Jun 13 '12 at 9:29

Since this is probably either a command in some programming language or a file name, I think it makes more sense semantically to switch to a monospace font to typeset it.

With this modification, you can achieve the result you want with \verb|@Data.test~|. Or you can use the listings package and then \lstinline{@Data.test~}.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.