gpt4 book ai didi

emacs - 组织模式和 latex 导出: Any way to put short & long names in sectioning commands?解决方法?

转载 作者:行者123 更新时间:2023-12-04 04:07:09 24 4
gpt4 key购买 nike

在标准Latex中,您可以使用类似...

\section[short head]{A longer and more meaningful heading version for the section}

...给出了一个节的长短版本(或其他节命令),因此,既允许有意义的节“标题”,也允许外观合理的运行机头,TOC,投影仪导航等。

有什么方法可以轻松地在组织模式下实现这一目标吗? (那是没有在LATEX片段中对分区命令进行硬编码的方式,因此,克服了更改分区级别和将内容重新用于投影仪,书籍和文章类的内容的大多数灵活性,这是我首先想要尝试orgmode的原因吗? )

我尝试了一种无法解决的“解决方法”。我尝试通过向 org-export-latex-classes添加另一个类来编辑可能的 latex 导出类。这个新类将分段命令从 \section{%s}更改为 \section%s(斜杠中的EDIT固定错字)。然后,我在文件的orgmode部分中使用 [short]{longer version}进行了测试。它起作用了,除了它的作用是,较长版本部分的标题只是“{”,而“较长版本”是正文!这是怎么回事?

最佳答案

从8.0版开始,“org-export-latex-classes”策略不再起作用。

相反,我敢于优雅地说,您可以为标题设置ALT_TITLE属性。
参见http://orgmode.org/manual/Table-of-contents.html

以下组织代码:

* The Long Title of Section 1 
:PROPERTIES:
:ALT_TITLE: Section 1
:END:
Lorem ipsum.

** The Long Title of Subsection 1-1
:PROPERTIES:
:ALT_TITLE: Subsection 1-1
:END:
Dolor sit amet.

将以以下方式导出到LaTeX:
[...]

\section[Section 1]{The Long Title of Section 1}
\label{sec-1}
Lorem ipsum.

\subsection[Subsection 1-1]{The Long Title of Subsection 1-1}
\label{sec-1-1}
Dolor sit amet.

关于emacs - 组织模式和 latex 导出: Any way to put short & long names in sectioning commands?解决方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9457867/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com