1. 14

Part 8 in the series explores pandoc’s annotation Markdown extension, as well as creating themes using ConTeXt. Creating themes and applying them to PDFs was requested from a few other people, so let me know if this part helps address any particular questions you may have had about theming PDFs. Here’s an example of the output:


Part 9, which—depending on amount interest—will cover Figure Drawing. Before getting to Part 9, would anyone be interested in the following topics:

  • Stripe payment integration with unique link generation
  • Generating a dual Y-axis plot using R (from temperature and CO2 data)

If so, then once those posts are finished, Part 9 of the series will end with drawing lines based on values in Markdown document.

  1. 3

    You put so many lovely images in the article from various sample books - yet I don’t seem to see an image with a snapshot of the final pdf you described how to create (the one you link to on lobste.rs)? Or did I miss it?

    1. 1

      The first bullet point in the preamble—“Dr. Jekyll and Mr. Hyde”—links to the final PDF. Generating the full text of Les Misérables can take some time, but shows most of the “features”: typeset tables, postal letters with valedictions, autogenerated table of contents, and more.

      One issue that remains is that the Vollkorn font doesn’t support two-em dash nor three-em dashes glyphs, yet. There’s an issue pulled for it, so when Vollkorn is updated, the XSLT that substitutes two em-dashes and a zero-width space for a two-em dash can be removed.

      1. 2

        I specifically meant an embedded image, as the other ones you used, not just a link to a pdf, so that I as a reader could get a quick glance.wothout having to download full pdf.

        1. 1

          That’s a great idea. Currently, the only image is for the typeset table from Les Mis:


          A couple of images at the top would be useful to give readers a quick glance of the output. Thanks for the suggestion!

    2. 2

      ConTeXt is an absolutely amazing TeX dialect. I love the key-value format for adjusting styles; and I love the fact that you can trivially tweak an individual paragraph/header/list, or trivially adjust the global style, or trivially define e.g. a \startpoem environment. It’s like LaTeX, but with 10 years of modernity added on top. Also, escaping to Lua for advanced work is amazing.

      Sorry, I had to gush for a moment there. <3

      1. 3

        ConTeXt is an absolutely amazing TeX dialect.

        SILE and Prince XML may also be worth a peek, depending on your requirements. Much agreement with you: ConTeXt is absolutely amazing.