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


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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

Subject: Re: [docbook] Line numbering ordinary text, not just 'verbatim environments'

Hi David,

The problem with numbering the lines in non-verbatim environment is that the 
actual layout is not performed by docbook-xsl stylesheets. Rather, it is 
performed by the next step, the FO processor (such as Apache FOP).

So, this might not be possible without some support from the FO processor.


On Tuesday, August 26, 2014 06:55:30 am David Clunie wrote:
> Hi
> I need to include line numbers for all the text in a document (so
> that reviewers can comment on specific parts of the document with
> precise references, without having to manually count line offsets
> from the nearest section label, etc). This is for PDF rendering.
> I found the "line numbering extensions" but I understand that it
> only applies to 'verbatim environments', which the documentation
> describes as 'address, literallayout, programlisting, screen,
> synopsis'.
> Before I start customizing the stylesheets, is there a mechanism
> for this already?
> David
> PS. Or to put it another way, I am looking for something like Microsoft
> Word's line numbering feature, but better, in that ideally table lines
> would also be numbered (which they are not in Word).
> PPS. Either restarting numbering with a page, or continuous from the
> start would be fine for my use case.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-help@lists.oasis-open.org

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