我在我的 Orgmode 文档中有这个设置,它不会将作者隶属关系导出到 latex 或 pdf。 相反,我得到了一个启发式的“立即”来代替作者 我在 .emacs 中将 Latex 添加到 Org -babel-Load languages 必须做什么才能让 babel 评估 Latex 代码块? 是否有我必须更改的 hyperef 设置?
#+Title: Multiple Author affiliations in OrgMode Latex export
#+date: 11 Feb 2016
#+latex_class: article
#+latex_class_options: [a4paper]
#+OPTIONS: toc:nil
#+OPTIONS: author:nil
#+latex_header: \usepackage{float}
#+latex_header: \usepackage{graphicx}
#+latex_header: \usepackage{authblk}
#+BEGIN_LATEX
\author[1]{Author One}
\author[1]{Author TwoTwo}
\author[1]{Author TwoTwoo}
\author[1,2]{Author TwoTwooo}
\author[1]{Author Three}
\author[1]{Author TwoTw}
\author[1]{Author Four}
\author[1]{Author Fourrr}
\author[2]{Author Fourrrr}
\author[2]{Author Twenty}
\affil[1]{Guided Therapeutics Centre}
\affil[2]{Division of theatre}
#+END_LATEX
我得到了这个 pdf
最佳答案
我今天从 org-mode 邮件列表收到了这个回复,它有正确的解决方案 在 2016 年 2 月 18 日星期四 10:05,Prakash Nayak 写道:
I have this setup in my Orgmode doc and it doesn't export the author affiliations to latex or pdf.
我从未使用过 authblk 但我想你应该 在生成的\begin{document} 行之前定义作者 latex 。使用 latex block (顺便说一句,取决于版本 您正在使用的组织,这些的语法已更改),您将 生成将出现在 开头的 LaTeX 文档。
我想你想把每一行\author 和\affil 放在 header :
#+latex_header: \author[1]{Author One}
#+latex_header: \affil[1]{Guided Therapeutics Centre}
等等
试一试。
关于emacs - 使用包 authblk 在 Orgmode 中自定义多个作者隶属关系以进行 latex 导出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35373447/