Wednesday, October 17, 2012

changing the title of listings

This question cropped up in the channel yesterday and is quite obvious in the source 
but not so in the documentation. If you want to change the name of the listing (think
localization) then you need to change three things.
 
\renewcommand\lstlistingname{Quellcode}
\renewcommand\lstlistlistingname{Codefragmente} 
\def\lstlistingautorefname{Alg.}
 
The first line is the name at every listing, the second the title for the list of 
listings and the third if you want to autoref a listing.

No comments:

Post a Comment