Login  Register

Re: Asciidoctor pdf - Custom admonition icons

Posted by mojavelinux on Aug 12, 2019; 10:31pm
URL: https://discuss.asciidoctor.org/Asciidoctor-pdf-Custom-admonition-icons-tp5850p7073.html

Please check your command. You're typing it incorrectly. It should be:

asciidoctor-pdf -r ./notice-block.rb -a pdf-theme=./admonition-theme.yml sample.adoc

* pdf-style is the deprecated attribute name
* themes should be named with the -theme.yml extension
* the syntax is pdf-theme=./admonition-theme.yml not pdf-theme:admonition-theme.yml
* it's best to reference the extension filename exactly, so -r ./notice-block.rb instead of -r notice-block

-Dan

On Mon, Aug 12, 2019 at 4:02 PM be.wood [via Asciidoctor :: Discussion] <[hidden email]> wrote:
So I figured out that the problem is using the "-r notice-block" with the asciidoctor-pdf, but if I just use the admonition.yml file I don't get any admonitions.

So the admonition.yml file seems like it needs something else to get it to process, which kind of makes sense, maybe, but if i just call

asciidoctor-pdf -a pdf-style:admonition.yml sample.adoc

sample.pdf

I get this output, which doesn't have any icons.

If I run the command

asciidoctor -r notice-block sample.adoc

sample.html

I get the file with all the icons.

Thanks


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Asciidoctor-pdf-Custom-admonition-icons-tp5850p7072.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux