5 ms·
Pandoc is great though I struggle with latex. Is there an easier way to go from md to pdf with your own template?
by laktak 6y ago
Pandoc is great though I struggle with latex. Is there an easier way to go from md to pdf with your own template?
- ivoc 6y ago- Style using CSS: Use Pandoc to HTML, and use wkhtmltopdf or chrome headless to convert HTML+CSS to PDF. - Style using XSL-FO: Use Pandoc to DocBook, XSLT docbook-xsl stylesheets to convert to XSL-FO, Apache FOP to convert XSL-FO to PDF.
- tarleb 6y agoOr HTML+CSS with WeasyPrint or Prince; the latter is free for personal use.
- asicsp 6y agoThere's a popular template [0] which you can adapt to your needs. I didn't know Latex too, so I cobbled together snippets I found from stackexchange sites [1] (this was before I knew about that template, else I'd have probably started with that) [0] https://github.com/Wandmalfarbe/pandoc-latex-template https://github.com/Wandmalfarbe/pandoc-latex-template [1] https://learnbyexample.github.io/customizing-pandoc/ https://learnbyexample.github.io/customizing-pandoc/