News for hackers. Stuff that matters.
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?
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)

[0] https://github.com/Wandmalfarbe/pandoc-latex-template

[1] https://learnbyexample.github.io/customizing-pandoc/

Re:Pandoc – A universal document converter by ivoc on Sunday October 25, 2020 @04:13AM (#24884664)
- 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.

Re:Pandoc – A universal document converter by tarleb on Sunday October 25, 2020 @04:29AM (#24884724)
Or HTML+CSS with WeasyPrint or Prince; the latter is free for personal use.