Re: [docbook-apps] Better rendering for programlisting

From
Thomas Schraitle <>
Date
2012-05-06T16:09:04+00:00
ID
2634548.MbOo5ioHyO@erde
Thread
Re: [docbook-apps] Better rendering for programlisting
Hi Lars,

Am Sonntag, 6. Mai 2012, 17:53:35 schrieb Lars Vogel:
> A bit of topic, but how do I activate line numbers in a program listing?

1. Add the attribute-value pair linenumbering="numbered" in programlisting
   or screen.

2. Use Saxon and put the saxon65.jar DocBook extension in your classpath.
   Linenumbering won't work with xsltproc currently.

3. Enable linenumbering by using the parameters use.extensions=1 and
   linenumbering.extension=1 either on the commandline or in your
   customization layer.

4. Rebuild your document.

Hope I didn't forget anything. For more information, see here:
http://www.sagehill.net/docbookxsl/AnnotateListing.html#LineNumbering

Have fun! :-)

-- 
Gruß/Regards
  Thomas Schraitle