当使用 Org-mode 及其 LaTeX 导出时,通常使用 BibTeX 或 Biblatex 来处理引用。在这种情况下,LaTeX 命令\printbibliography
通常包含在 org 文件中。\printbibliography
放置在 org 文件中,LaTeX 应该在其中写出参考列表。什么\printbibliography
所做的就是插入一个 LaTeX 标题和参考列表。在多数情况下\printbibliography
放在 org 文件的末尾只是因为在大多数文档中参考列表都放在最后。这意味着\printbibliography
将包含在 org 文件的最后一个标题下,例如
* Heading
\printbibliography
这也意味着当该标题折叠时\printbibliography
将会被吞噬:
* Heading...
但这违背了\printbibliography
因为它在输出中包含自己的标题。另外,当\printbibliography
被吞掉并在其后面放置一个新标题,因为这样参考列表将不再出现在文档的最后。
How can I make it so that \printbibliography
is not swallowed by sections in Org-mode? A bonus question: how can I make it so that Org-mode does not create headings after \printbibliography
unless C-Ret is pressed when the cursor is after it?
在寻找这个问题的解决方案时我发现http://comments.gmane.org/gmane.emacs.orgmode/49545 http://comments.gmane.org/gmane.emacs.orgmode/49545.
此问题的解决方法是\printbibliography
不返回 LaTeX 标题,以便可以将其适当地放置在 Org 模式标题下。
With biblatex http://ctan.org/pkg/biblatex这可以通过提供来完成\printbibliography
与选项heading=none
并将其置于适当的标题下。这是一个例子:
* Heading
* References
\printbibliography[heading=none]
通过这种方式,参考文献可以保留在其自己的标题中\printbibliography
被标题吞没并不是问题,因为它被自己的标题吞没了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)