不要在 pandoc 的 TOC 中包含部分

Ant*_*ton 5 latex pandoc

我正在使用这个论文模板。它在目录中包括摘要、致谢、图表列表…… 。根据大学的指导方针,我的目录应该从第一章引言开始,而不是列出摘要、致谢……。

在 Latex 中,您可以直接使用\section*,但是在 pandoc 中使用.unnumbered会导致该部分仍然被包含在内。

从目录中排除介绍章节之前的部分的最简洁方法是什么?

小智 2

我正在使用-H header.texPandoc 选项。

我的解决方法是附加:

\let\oldaddcontentsline\addcontentsline

直接到header.tex

我在 GitHub 上写了同样的问题:https ://github.com/chdemko/pandoc-latex-unlisted/issues/1