Re:Pandoc – A universal document converter
by laktak on Sunday October 25, 2020 @03:07AM
(#24884380)
Pandoc is great though I struggle with latex. Is there an easier way to go from md to pdf with your own template?
[ Parent
| on HN ]
Re:Pandoc – A universal document converter
by asicsp on Sunday October 25, 2020 @10:17AM
(#24886444)
There'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)
- 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.