Re: Monospace text in
Posted by
habamax on
Apr 08, 2020; 12:11pm
URL: https://discuss.asciidoctor.org/Monospace-text-in-tp7835p7847.html
geertpeeters wrote
Thanks for replying. I'm definitely not an expert in this thing

I am not sure I am an expert :)
geertpeeters wrote
2. I though because it was monospace and better suited for aligning chord
notations with lyrics. But no hard requirement. I can switch back to
Usually it doesn't work this way. You can not set random font name to
asciidoctor elements in your theme file and expect it would be applied to a
document.
Theming (including how to use other fonts) is extensively described in a guide:
https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adocBut basically you should either use already defined fonts with their font names (as M +1mn)
or define your own font names with real ttf files placed "next" to a theme file.
geertpeeters wrote
3. I put back the font M+ 1mn
And did it work for you?
geertpeeters wrote
4. Not sure what you mean here. Can you share your tool chain and how a
typical project structure can bring the result you showed? It's really cool
knowing that it's possible...
It is just a sudo gem install asciidoctor-pdf in linux environment or just a
gem install asciidoctor-pdf in Windows (with ruby installed beforehand).
Check
https://github.com/asciidoctor/asciidoctor-pdf/#getting-startedTo compile with default settings: asciidoctor-pdf filename.adoc
To add own theming consult asciidoctor-pdf parameters (you have to define path
to your theme, path to your fonts, extensions if you have any etc).
If you use vim then
https://github.com/habamax/vim-asciidoctor might be handy.