mediawiki text and trying to convert it to
latex in Pandoc. All seems to be reasonably well.
However, I had to make sure to use:
... pandoc output ...
to get LaTeX to work at all - specifically, importing
hyperref wasn't particularly intuitive.
Is there a canonical list of packages I should be importing to handle any output from
pandoc -f latex ? Or even just a list of "you should import this to cover this use-case".
(I ask because I have further problems deep inside my document, and suspect this is the cause instead of Pandoc producing malformed LaTeX.)
GarethJones is absolutely right; using
--standalone) gets you the headers for free, and was exactly what I needed.
I also needed to use xelatex rather than latex in order to properly support unicode in order to parse some of the odder unicode characters (left-to-right direction marks, amongst others) and to ensure it output the correct ligatures (
fl was being converted to Æ rather than ﬂ)