# How to write “@(x)x.^2” in latex? [duplicate]

I tried \texttt{@(x)x.^2} or directly @(x)x.^2 but texmaker gives Missing \$ inserted. I gues it is because x.^2 which is assumed to be math syntax. Can you help?

-

## marked as duplicate by Jake, Torbjørn T., egreg, barbara beeton, cmhughesJul 5 '13 at 19:49

\verb|@(x)x.^2| –  Jake Jul 5 '13 at 18:54
@karlkoeller: I think it is the right one, it's concerned with printing special characters, and egreg's answer suggests using \verb. But feel free to suggest a different question, whichever gets used most in the close votes will be displayed as the duplicate. –  Jake Jul 5 '13 at 19:13