Re: Asciidoctor pdf - Custom admonition icons
Posted by
mojavelinux on
Aug 07, 2019; 7:32pm
URL: https://discuss.asciidoctor.org/Asciidoctor-pdf-Custom-admonition-icons-tp5850p7054.html
Brian,
You didn't set the size for your custom admonition icon. Please follow the example I provided:
extends: default
admonition:
icon:
question:
name: far-question-circle
size: 24
(I could make the default size match twice the base font size so this wouldn't be required, but that won't help you until it's released).
Best,
-Dan
On Wed, Aug 7, 2019 at 6:05 AM be.wood [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Thank you. One last question, I ran this command (I renamed the custom-admonition-block to notice-block):
asciidoctor-pdf -a pdf-style:admonition.yml -r notice-block ./notice-block/sample.adoc
This ended up giving me this error when I run a trace (and the styles are unknown if I just run verbose):
asciidoctor-pdf-1.5.0.beta.2/lib/asciidoctor-pdf/converter.rb:666:in `convert_admonition': undefined method `[]' for nil:NilClass (NoMethodError)
The admonition.yml has the styles defined with the extends line first (and nothing else).
I don't know if I have the command wrong or if I'm missing something else.
Brian
--