我打开了
org-indent-mode
,所以无序列表如下:
* foo
** bar
*** baz
* qux
在我的 emacs 缓冲区中看起来像这样:
* foo
* bar
* baz
* quz
默认的
org-latex-export-to-pdf
将所有内容变成节/小节。但,
我想导出为 PDF,使结果看起来像 org-indent-mode,即简单的缩进项目符号列表。大家有办法解决这个问题吗
在 emacs StackExchange 上提出了类似的问题,我认为他们的想法是正确的,但没有解释他们在那里所做的一切。转贴在此供参考:
# -*- org-ascii-headline-spacing:(0 . 0); org-ascii-bullets:((ascii 42) (latin1 167) (utf-8 8226)) -*-
#+OPTIONS: H:0 num:nil toc:nil @:t author:nil
#+TITLE:
* foo
** bar
** zim
*** gir
*** dib
作为参考,导出设置的官方文档解释了他们的答案为何有效。其中每个都可以使用
customize-variable
全局设置,而不是每个文件:
org-ascii-headline-spacing:(0 . 0)
:按照您要求的输出格式将标题压缩在一起org-ascii-bullets:((ascii 42) (latin1 167) (utf-8 8226))
设置每种输出格式的项目符号字符:
*
:ASCII§
:拉丁语-1•
:UTF-8OPTIONS
:
H:0
将各级标题转换为列表项(org-export-headline-levels
)num:nil
关闭章节编号 (org-export-with-section-numbers
)toc:nil
禁用目录 (org-export-with-toc
)@:t
我找不到相关文档...也许是拼写错误?author:nil
禁止包含作者 (org-export-with-author
)