13.10.14 Controlling the way the table of contents is generated

导出为 LaTeX 时,只有带编号的章节会被加入目录。这一行为更贴近 LaTeX 原生逻辑,与其他导出工具不同(参见 Table of Contents)。 如需无编号章节出现在目录中,可设置 ‘UNNUMBERED’ 属性为 ‘toc’ :

:PROPERTIES:
:UNNUMBERED: toc
:END:

如需让 LaTeX 导出工具行为与其他工具一致,可将变量 org-latex-toc-include-unnumbered 设为 t

(setq org-latex-toc-include-unnumbered t)

或在文件局部变量中添加该设置。

此时无编号章节会被加入目录,除非将 ‘UNNUMBERED’ 属性设为 ‘notoc’ :

:PROPERTIES:
:UNNUMBERED: notoc
:END: