Le vendredi 30 mai 2014 13:51:56 UTC+2, Lex Trotman a écrit :
>
> On 30 May 2014 21:36,  <[email protected] <javascript:>> wrote: 
> > 
> > 
> > Le vendredi 30 mai 2014 11:22:45 UTC+2, Lex Trotman a écrit : 
> >> 
> >> 
> >> > Is there a correct way to make this line-range work for FOP too ? 
> >> 
> >> Not that I'm aware of, the docbook-xsl stylesheets don't seem to have 
> >> a way of only outputting part of the contents of the programlisting 
> >> element. 
> >> 
> >> Other people who wanted to do that have only included a subrange of 
> >> the file.  That will of course then work on all backends. 
> >> 
> > 
> > Yes, this was my first choice on the first chapter of my book. 
> > But, line numbering restart to 1 each new source 
> > 
> > Is there an option which works for both FOP and source-highlight to 
> start 
> > line numbering 
> > from a specific start ? 
>
> I don't think so, perhaps you would be better to make a custom filter 
> that used source-highlight to generate the docbook for the 
> <programlisting> element.  That would have the advantage that it would 
> be all the same. 
>
> But (there is always one isn't there) the highlighting 
> source-highlight provides for docbook is ... erm ... sparing shall we 
> say.  Thats why it isn't usually used since the toolchain highlighters 
> are somewhat nicer. 
>
> Cheers 
> Lex 
>
>
I found a way (the hard way ?)
I have update the source filter by adding a code-cutter command line only 
available for docbook backend.
I remove the args from [source-highlight-block] fro docbook backend

pretty hard to understood how it works, but it's fine until I found 
something better to make the job done.
(may be if I succeed to have a functional dblatex on win32...)

Thanks for the tips. 
 

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to