Search code examples
latexpandoc

Do not include section in TOC in pandoc


I am using this thesis template. It includes the abstract, acknowledgements, list of figures... in the table of contents. According to the university guidelines my TOC should start with Chapter 1 Introduction and not list abstract, acknowledgements... .

In latex you can just use \section* however using .unnumbered in pandoc results in that section still being included.

What is the cleanest way to exclude the sections before the introduction chapter from the TOC?


Solution

  • I'm using -H header.tex as an Pandoc option.

    My workaround is appending:

    \let\oldaddcontentsline\addcontentsline

    to header.tex directly.

    I wrote the same issue on GitHub: https://github.com/chdemko/pandoc-latex-unlisted/issues/1