Skip to content

TOC in exports #274

Open
tantignac opened this Issue Sep 22, 2011 · 1 comment

2 participants

@tantignac

I made some tests:

Configuration file:
```table-of-contents: yes
pandoc-user-data: pandoc

Pandoc template:
```$if(toc)$
\tableofcontents
$endif$```

_________________________
With page metadata:
```---
toc: no
...```

Gitit view: no TOC
LaTeX export: no TOC
PDF export: TOC

_________________________
With page metadata:
```---
toc: yes
...```

Gitit view: TOC
LaTeX export: no TOC
PDF export: TOC

Apparently, the doc metadata is taken into account by the web render only. However, there is an inconsistence between the .tex and the .pdf exports: one has a TOC and the other one has not.

Is there a way to share the toc metadata of gitit to pandoc, enabling this latter to add or not the toc depending on the choice on gitit?
@kasbah
kasbah commented Aug 8, 2013

I too could use this little consistency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.