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


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org

Reply via email to