[texhax] How to put space characters at the beginning of a line?
José Romildo Malaquias
j.romildo at gmail.com
Tue Apr 27 13:07:02 CEST 2010
Hello.
I need to put space characters at the beginning of a line in a LaTeX
document. The problem is that neither '~' nor '\ ' works to achieve this
behaviour.
See the simplified document that illustrates the problem:
\documentclass[a4paper]{article}
\begin{document}
\ttfamily\frenchspacing\noindent
First~line\newline
~~Second~line
\end{document}
Note that, when this document is compiled, the letter 'S' in the last
line aligns to the letter 'F' in the previous line. How can I get this
'S' aligned to the 'r' front the previous line?
This problem should be solved without using the verbatim (or similar)
environment.
Regards,
Romildo
More information about the texhax
mailing list