[Tex/LaTex] How to use \textbackslash

symbols

Been looking around and everywhere it tells me to use \textbackslash in LaTeX.

However if I write a text "yadayadayada in \textbackslash c \textbackslash f we have…."

A demonstration or so would be highly apprectiated. Thanks for helping a noob.

Best Answer

If you are trying to write verbatim short text, you can use \verb+\hi+; for longer verbatim texts you can use the verbatim environment; for further customizable possibilities you can use, for example, the fancyvrb package.

Related Question