jgm / typst-hs

Haskell library for parsing and evaluating typst
Other
44 stars 5 forks source link

No `\begin{document}` or preamble when exporting to `.tex` file #37

Closed Doublonmousse closed 9 months ago

Doublonmousse commented 9 months ago

Any conversion

pandoc file.typ -o file.tex

results in documents that do not include any preamble, or \begin{document}

Reproduction : https://github.com/Doublonmousse/pandoc-typst-reproducer/tree/main/no_template

jgm commented 9 months ago

You need to add the -s/--standalone option.