[texhax] listings' alignment function
Lars Madsen
daleif at imf.au.dk
Thu Jan 12 10:19:13 CET 2012
Neal H. Walfield wrote, On 2012-01-11 22:28:
> Hi Vladimir,
>
> At Wed, 11 Jan 2012 20:37:59 +0900,
> Vladimir Lomov wrote:
>> Search for 'columns' in documentation and play with it.
>
> Thanks for the suggestion. I know about (and I'm using) this option.
> Unfortunately, it doesn't do everything I want.
>
> Thanks!
>
> Neal
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
Please provide a minimal example
This aligned fine for me
\documentclass[a4paper]{memoir}
\usepackage{listings}
\begin{document}
\begin{lstlisting}
for (s = list;
s;
s = g_slist_next (s))
\end{lstlisting}
\end{document}
note in your example there are too many spaces in front of some of the
line in order for them to align on the s's
--
/daleif
More information about the texhax
mailing list