[texhax] Left aligning the maths environment

James Smith sf at aleph-one.com
Wed Jul 26 22:50:45 CEST 2006


I'm writing some code listings and have used the verbatim environment
for the pseudo-code listings which works fine. I now have to re-write
the listings ``mathematically'' with more abstract syntax and
mathematical equations (assertions, actually) to the right of each line
of code.

I'm using the \array environment and it looks great but I have two

1) The first column contains line numbers and I'd like to make it a
fixed width. I'm not bothered about the width of the remaining columns
since the code and assertions that they contain is so variable. I just
need to fix the first column

2) I'd like to move the whole lot hard over to the left, at the moment
it floats in the middle. Is this possible without losing the use of the
\array environment, which is ideal.

Thanks in advance for your replies.

Kind regards,


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.4/399 - Release Date:

More information about the texhax mailing list