I have a LaTeX document in which I want to display in the main document the way a LaTeX function is used, for example:
\documentclass{name} is bla bla bla
the thing is that LaTeX always recognises \documentclass as a function, therefore throwing an error.
Is there a way to solve this problem?
\documentclass{name}in a\verb+...+statement? (The+character should be chosen in a way that ensures that it's not also used in the verbatim string itself.) Alternatively -- and this may be especially relevant if you do not want to render the string using a monospaced font -- you could write\textbackslash$\{$name$\}$to preserve both the backslash and the curly braces. – Mico Feb 07 '13 at 20:30\{and\}? – cgnieder Feb 07 '13 at 20:35