3

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

\hypertarget is defined by hyperref so you would need

\usepackage{hyperref}
| improve this answer | |
0

This simple template might be helpful :

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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.