是什么导致组织模式乳胶导出的目录中的页码错误

时间:2018-10-08 18:33:35

标签: emacs latex org-mode

系统:

  • Windows 10 x64
  • Emacs 26
  • 使用XeLaTex导出

我正在组织模式下的报告。目录给了我奇怪的行为。页码都比应该少一个。例如,请参见以下文本以获取组织文档。如果我将其导出为pdf,则目录显示第一节从第一页开始,即使它从第二页开始。是什么原因造成的,我该如何解决?

enter image description here

#+TITLE: A title
#+AUTHOR: An author
#+OPTIONS: toc:nil

* Abstract
    :PROPERTIES: 
    :CUSTOM_ID: abstract
    :UNNUMBERED: t
    :END:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur
tempor scelerisque magna, et varius leo pellentesque sit
amet. Phasellus aliquam pulvinar felis, fermentum commodo quam
tristique viverra. Aliquam erat volutpat. Nullam pellentesque arcu in
justo fermentum, vel molestie metus fringilla. Nulla lorem risus,
efficitur vel porta id, tincidunt aliquam nunc. Mauris eros magna,
molestie et porttitor in, dignissim vitae lorem. Etiam lorem sapien,
rutrum nec aliquet sit amet, malesuada et tortor.

#+BEGIN_QUOTE
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur
tempor scelerisque magna, et varius leo pellentesque sit
amet. Phasellus aliquam pulvinar felis, fermentum commodo quam
tristique viverra. Aliquam erat volutpat. Nullam pellentesque arcu in
justo fermentum, vel molestie metus fringilla. Nulla lorem risus,
efficitur vel porta id, tincidunt aliquam nunc. Mauris eros magna,
molestie et porttitor in, dignissim vitae lorem. Etiam lorem sapien,
rutrum nec aliquet sit amet, malesuada et tortor.
#+END_QUOTE

#+TOC: headlines 4

* Section One

Some Text

** Subsection

** Subsection

* Section Two

** Subsection

** Subsection

* Section Three

** Subsection

** Subsection

1 个答案:

答案 0 :(得分:1)

我只编译了两次乳胶文件,但是它需要编译3次。我从以下位置更改了init.el文件中的相关代码:

(setq
    org-latex-pdf-process
    '("xelatex -shell-escape -interaction nonstopmode -output-directory %o %f"
      "xelatex -shell-escape -interaction nonstopmode -output-directory %o %f"))

收件人:

(setq
    org-latex-pdf-process
    '("xelatex -shell-escape -interaction nonstopmode -output-directory %o %f"
      "xelatex -shell-escape -interaction nonstopmode -output-directory %o %f"
      "xelatex -shell-escape -interaction nonstopmode -output-directory %o %f"))