In the middle of the desert you can say anything you want

21 Dec 2022

pandoc standalone option

When using pandoc to convert (in my case) markdown to latex, it generates only the “text” but without the header, \usepackages etc., and it fails when using pdflatex.

To generate a standalone file there’s the -s/--standalone option:

pandoc -f markdown -t latex -o bench.tex -s 
Nel mezzo del deserto posso dire tutto quello che voglio.