# How to use special symbols in LaTeX, such as @, ~ [duplicate]

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!

-

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

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

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~}`.