If this minimal working example saved in test.md file:

# Part one

## Section One 

### Frame one 

- Items...  [@Publication2001]

is compiled with this literature.bib file:

  author={Blah, B},  
  journal={Numerical Heat Transfer, Part B: Fundamentals},
  publisher={Taylor \& Francis}

first to .tex with

pandoc \
    -s \
    -t beamer \
    --natbib \
    --bibliography=literature.bib \
    test.md \
    -o test.tex

and then to PDF with the commands:

pdflatex test.tex
bibtex test
pdflatex test.tex

the following error occurs:

Package natbib Warning: Citation `Publication2001' on page 3 undefined on input
 line 70.

[3] (./test.bbl
! Missing \endgroup inserted.
<inserted text> 
l.1 \begin{thebibliography}{1}


Software versions:

Compiled with texmath, highlighting-kate 0.6.

pdflatex --version 
pdfTeX 3.14159265-2.6-1.40.16 (TeX Live 2015/Arch Linux)
kpathsea version 6.2.1
Compiled with libpng 1.6.18; using libpng 1.6.18
Compiled with zlib 1.2.8; using zlib 1.2.8
Compiled with poppler version 0.36.0

Pandoc templates: I am using the current master branch of the pandoc template repository for the pandoc templates.

What is happening here?

1 Answer 1


Looks like a bug to me (I get the same error with the pandoc 1.15.1 on Ubuntu 14.04) , because you can resolve the citation with

pandoc -s -s -t beamer --bibliography=foo.bib --filter pandoc-citeproc foo.md -o foo.pdf

In order to render your citations correctly, I would search the Zotero Style Repo and add --csl=foo.csl (put it into the working directory) to the above command. BTW, pandoc will directly render the beamer slides in PDF.

  • This helps, but the bibliography is missing at the end of the presentation. Do you maybe know why?
    – tmaric
    Nov 5, 2015 at 17:34
  • 1
    You need to put # References # at the end of your document. The citations will be placed after this section by pandoc. Nov 6, 2015 at 6:24

You must log in to answer this question.

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