Wednesday, October 31, 2007

several tips for LaTeX

1. To crop image while including it:

\includegraphics[trim=l b r t,clip=true]{*.png}

where "l" means the length to me eliminated from the left of the image, while "b", "r", "t" means that from the bottom, right and top of the image.
to make trim work, clip has to be set as true.

2. \framebox and \lstinputlisting could be used together to produce a fancy output.