PDA

View Full Version : latex documentation which enviorement for code examples.



monkeyking
December 23rd, 2008, 08:11 AM
I would like to write code examples i latex, such that it looks somewhat like here on this forum.

I would like a latex environment to change the font and indent the code.

thanks in advance

WW
December 23rd, 2008, 09:56 AM
Take a look at the Latex listings package. The first few hits of a google search for "latex listings" should get you started.

monkeyking
December 23rd, 2008, 02:49 PM
Excatly!

thanks

doorman
December 23rd, 2008, 05:17 PM
You might want to check out the algorithm2e package also. It suited me far better than the listing environment