I don't want to generate a title page. My uni gave me a title page. I could merge it with the pandoc PDF afterwards.

How do I make the default title page disappear?

I tried the following:

Get the current template pandoc -D markdown > md.template

The new template file contains:







Now I deleted this part to not have a title page:



Then I run pandoc --template md.template -V breakurl -V hyphens=URL --pdf-engine=xelatex -o out.pdf in.md and get this error:

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

What am I doing wrong? Isn't it supposed to work like this? Is there an easier method to achieve this?

1 Answer 1


The trick is to get the template in latex format with pandoc -D latex > latex.template.

Then I removed the lines:


To use the template I did pandoc --template latex.template -V breakurl -V hyphens=URL --pdf-engine=xelatex -o out.pdf in.md.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .