Dear LJ Genie,
how do I insert code snippets in a LaTeX document?
In LJ, there is the very nice < pre > tag, which tends to be rendered in the fixed-width "Courier New", which also makes it suitable for ASCII art.
how do I insert code snippets in a LaTeX document?
In LJ, there is the very nice < pre > tag, which tends to be rendered in the fixed-width "Courier New", which also makes it suitable for ASCII art.
(no subject)
Date: 2005-09-02 01:01 pm (UTC)(no subject)
Date: 2005-09-05 12:23 am (UTC)(no subject)
Date: 2005-09-02 01:13 pm (UTC)After using it a few times you will be able to look up how to do most things in a matter of seconds.
(no subject)
Date: 2005-09-03 12:50 am (UTC)\verb works, but there's a much nicer way to do it, if you can install additions.
Download and install listings. This is a wonderful package that intelligently formats your source code, and lets you specify how to format things.