Fwd: adoc coloring when converting to PDF

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Fwd: adoc coloring when converting to PDF

mojavelinux
Administrator
From: Ivan St. Ivanov

Hi folks,

We starting writing a document about our Forge HoL at Devoxx. I created a skeleton, which I would like to look asĀ https://github.com/javaee-samples/javaee7-hol/blob/master/docs/javaee7-hol.pdf. So I created the attached adoc structure (adocs.zip). Then I ran the PDF converter and got a file that looks nearly the same as I wanted to look (atttached - forge2-hol.pdf). However the headings are not colored in red as in the Java EE samples document. Do you know what I am doing wrong?

Thanks,
Ivan


adocs.zip (2K) Download Attachment
forge2-hol.pdf (194K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: adoc coloring when converting to PDF

mojavelinux
Administrator
Ivan,

We decided not to use the Asciidoctor coloring in the default theme, going for a more conservative look. We're still deciding what to use in the final 1.5.0 release.

Until then, you can control the colors by tweaking the theme. There is an Asciidoctor theme included. You can enable it using the pdf-style attribute:

 $ asciidoctor -a pdf-style=asciidoctor sample.adoc

You can specify a path to a custom theme directory using the pdf-stylesdir attribute. The themes are defined in a YAML file, as you can see here:

 https://github.com/asciidoctor/asciidoctor-pdf/blob/master/data/themes/default-theme.yml

Each theme file must be complete at this point (it doesn't cascade to the default styles).

I hope that clears things up a bit.

-Dan
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: adoc coloring when converting to PDF

ivannov
Thank you, Dan!

I got the coloring after using the -a pdf-style option.