如何扩展节编号停止的级别

How do I extend the level at which section numbering stops

我有一个要导出到 Latex 的 emacs 组织模式文档。我想将已编号的部分升级为 4 级。我需要做什么才能完成这项工作?

我使用的是 cygwin emacs 24.5.1/org 模式 8.3.3

我得到的是 SubSubSubSection 1 部分都已编号,而且似乎也被视为列表项。

这是我的示例组织文件

#+TITLE: Example Title
#+DATE: Time-stamp: <16:28:21 Friday 12 February 2016 dJeremy>
#+AUTHOR: An Author
#+EMAIL: me@example.com

#+OPTIONS: H:6 num:6

* Last Section

** SubSection 1

*** SubSubSection 1

    Deep in the sections.

*** SubSubSection 2

**** SubSubSubSection 1

     Nested deeply here.

     Really!

*** SubSubSection 3

** SubSection 2

   The end of the subs.

这就是我得到的 PDF 格式(使用 windows MikTex 处理)。这是手工输入的,但你明白了。 Table 的内容被省略了。

1  Last Section

1.1  SubSection 1

1.1.1  SubSubSection 1

Deep in the sections.

1.1.2  SubSubSection 2

1.1.2.1  SubSubSubSection 1  Nested deeply here.
   Really!

1.1.3  SubSubSection 3

1.2  SubSection 2

The end of the subs.

[更新]

我希望 1.1.2.1 看起来像这样:

1.1.2.1  SubSubSubSection 1

Nested deeply here

Really!

[更新 2] 我查看了 org 模式创建的 tex 文件,它看起来不错(没有像 pdf 那样的奇怪格式)。所以问题在于 lualatex 以及我如何使用它。

查看 pastebin 中的完整 tex 文件 here

正如 Dan 所建议的,TeX 站点在您的组织文件中建议了这个解决方案:

#+latex_header: \usepackage{titlesec}
#+latex_header: \setcounter{secnumdepth}{4}
#+latex_header: \titleformat{\paragraph}
#+latex_header: {\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
#+latex_header: \titlespacing*{\paragraph}
#+latex_header: {0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}

根据官方文档 https://orgmode.org/manual/Export-settings.html

您可以使用 H:num: 选项来实现您的目标

H: Set the number of headline levels for export (org-export-headline-levels). Below that level, headlines are treated differently. In most back-ends, they become list items.

num: Toggle section-numbers (org-export-with-section-numbers). When set to number ‘n’, Org numbers only those headlines at level ‘n’ or above. Setting UNNUMBERED property to non-nil disables numbering of a heading. Since subheadings inherit from this property, it affects their numbering, too.