Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new 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
show 6 more comments

1 Answer

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
add comment

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