Hi,
I want my pdf file to display the following line.
Blah blah \n blaah
Text Formatting ⇒ how to enter backslash (\) in your text
how to enter backslash (\) in your text
Last edited by ghantauke on Mon Mar 14, 2011 3:35 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

how to enter backslash (\) in your text
Hi,
the answer depends on the font that you want to use to display \n; some options
the answer depends on the font that you want to use to display \n; some options
Code: Select all
\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
% monospaced font
\verb+\n+
% monospaced font
\texttt{\symbol{92}n}
% monospaced font; requires T1 encoding
\texttt{\textbackslash n}
% current font
\textbackslash n
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...