4

pandoc -D latex contains a lot of things, most of what I don't need. I am trying to clean it up to a minimum to make it easier to edit.

I thought this would be the most minimum to get started with:

\documentclass{article}

\begin{document}

$body$

\end{document}

I compiled with it like so: pandoc *.md --template=the.template -o out.pdf and received the following error:

Error producing PDF.
! Undefined control sequence.
l.5 \hypertarget

How may I fix this ?

2 Answers2

2

\hypertarget is defined by hyperref so you would need

\usepackage{hyperref}
David Carlisle
  • 757,742
0

This simple template might be helpful :

https://gist.github.com/michaelt/1017790

daamien
  • 11