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:





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 ?


\hypertarget is defined by hyperref so you would need

| improve this answer | |

This simple template might be helpful :


| 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.