OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]