PDA

View Full Version : Code listings in LaTeX


KLineD
August 9th, 2008, 04:32 PM
Hello! I'm in the process of finishing my masters thesis, and I'm having trouble with code listings. I'm using the listings package, and \lstlistoflistings to generate the list of source code along with chapter, figures and tables listings. The list generates fine, but I want to be able to configure some things.

For example, the list header at the top of the page reads "Table of Content" (actually it's in spanish) while the list of figures header reads "List of Figures" and the list of tables "List of Tables" so I would like the list of source code to read "List of Code" or something like that. Also in the actual list, the leftmost item is the chapter and section where the listing appears (like VI.2) and I would like to change that to the listing number (1,2,3...n).

Anyone got a clue on this? thanks in advance.

MiKom
January 19th, 2010, 04:57 PM
You may use listings macro from texlive-lates-recommended package. You can later use it as described here:

Listings (http://en.wikibooks.org/wiki/LaTeX/Packages/Listings)