On 4 June 2012 23:22, Wilhelm Meier <[email protected]> wrote:
> Am 04.06.2012 14:20, schrieb Dag Wieers:
>
>> On Mon, 4 Jun 2012, Wilhelm Meier wrote:
>>
>>> please apologize this newbie question but I can't find the answer
>>> googling:
>>>
>>> is there a way to use a syntax-highlighter for pdf-output with the
>>> docbook->xsltproc->fop toolchain?
>>>
>>> I found that all code is enclosed in the docbook-progammlisting tag
>>> and so I don't see any possibility to make xsl-transformations here.
>>>
>>> Any hints?
>>
>>
>> Syntax-highlighting works out of the box with the ODF backend if you
>> care to try.
>
>
> Ah, looks promising.
>
> Actually I have two issues with this backend:
>
> 1) I use ubuntu 12.04, so I had to compile a newer version of GNU
> source-highlight. I did that in /usr/local. Then I have to call
> source-highlight will full path as /usr/local/bin/source-highlight,
> otherwise it will look into /usr/share/source-highlight and not
> /usr/local/share/... The question is: can I explicitly set the binary path
> for source-highlight (not using PATH then)

You would need to write a custom asciidoc.conf that replaces (only)
the section where source-highlight is called.

>
> 2) the source code is highlighted but only using bold font, no color. Do I
> have to switch on something?

You should be able to adjust the styles in Libreoffice

>
> 3) Is there any documentation about the odf backend?

Only the readme.

This is still an experimental backend that is still in development.

>
>
>
> --
> Wilhelm
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/asciidoc?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to