I'm taking 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:
\documentclass{book}
\usepackage{hyperref}
\begin{document}
... pandoc output ...
\end{document}
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 -s (--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 fl)
--latex-engine=xelatex, but this only matters if you output to pdf directly, otherwise you just run whatever LaTeX-engine you want on the.texfile generated – Tobias Kienzler Dec 11 '15 at 10:58