jgm/pandoc — Issue #402: --toc will not create table of contents in some cases - pandoc 1.9.0.2
Author: alexwall
Created: 2012-02-06 16:12:56+00:00
State: open

In some cases pandoc doesn't create the table of contents:

To reproduce:

1. Take the README file from the website
2. Remove all Chapters "Templates" and all chapters below "Templates"
3. Run this command:
`pandoc -N --template=mytemplate.tex --variable version=1.4 README --latex-engine=xelatex --toc -o example14.pdf`
4. Contents should be empty.

Used software:

MacOS X 10.7.3
pandoc 1.9.0.2

Additional Information:

Creating the latex-file and compiling manually produces this:

Processing: ./example14.tex
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class

Overfull \hbox (55.05061pt too wide) in paragraph at lines 375--380
Overfull \hbox (0.76843pt too wide) in paragraph at lines 427--429
Overfull \hbox (8.60896pt too wide) in paragraph at lines 507--510
Overfull \hbox (32.40213pt too wide) in paragraph at lines 515--525
Overfull \hbox (27.15656pt too wide) in paragraph at lines 527--531
Overfull \hbox (2.12733pt too wide) in paragraph at lines 569--577
Overfull \hbox (10.47821pt too wide) in paragraph at lines 597--602
Overfull \hbox (5.60506pt too wide) in paragraph at lines 640--647
Output written on example14.pdf (14 pages).

Complete transcript is in
example14.log