Other articles


  1. Use a custom font with Asciidoctor-PDF

    I wanted to show to myself that it works, and it does. Here’s how: Set the font in a theme file (this one’s called nik-theme.yml):

    font:
      catalog:
        merge: false
        Garamond:
          normal: EBGaramond12-Regular.ttf
          italic: EBGaramond12-Italic.ttf
          bold: EBGaramond12-Bold.ttf
          bold_italic: EBGaramond12-Bold.ttf
    
    base:
      font-family: Garamond

    Note that …

    read more
  2. Asciidoc passthrough problem with Pandoc

    The idea

    Use a passthrough to pass an includepdf instruction to LaTeX, so you can have full-page images in your text, using the LaTeX pdfpages package. The passthrough in the Asciidoc document looks like this:

    ++++
    \includepdf{pics/eintagsfliegen-fullpage.pdf}
    ++++

    The file is first converted to DocBook by Asciidoctor, then converted …

    read more
  3. Spell-checking Asciidoc

    Spell-checking Asciidoc

    Can be done on the command line with aspell. Iff you arr Tschörmann, be sure to install your language pack. On Ubuntu, this is done with:

    sudo apt install aspell-de

    There are also plugins for Atom and VS Code, but I didn’t investigate further, as I am …

    read more

links

social