Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

asciidoc-pdf: How to use custom styles

Tags:

asciidoctor

How can I use custom styles (font-size, font-color etc) in asciidoctor-pdf. I've read the theming guide and tried to add settings ins xxx-theme.yml without any success. Also the the marked styling (with #) doesn't work in my pdf example.

like image 526
Rene Avatar asked Oct 30 '22 15:10

Rene


1 Answers

You should have to create your own YAML theme and then use the pdf-style option like this

$ asciidoctor-pdf src/main.adoc -a pdf-style=themes/my-theme.yml

Documentation here

like image 72
alexandre-rousseau Avatar answered Dec 22 '22 01:12

alexandre-rousseau