3

我在我的 Orgmode 文档中有这个设置,它不会将作者从属关系导出到乳胶或 pdf。相反,我得到了一个启发式的“立即”来代替作者我在 .emacs 中将 Latex 添加到 Org -babel-Load 语言中必须做什么才能让 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

pdf输出

4

1 回答 1

5

我今天从 org-mode 邮件列表中收到了这个回复,该列表有正确的解决方案 2016 年 2 月 18 日星期四 10:05,Prakash Nayak 写道:

我在我的 Orgmode 文档中有此设置,它不会将作者从属关系导出为乳胶或 pdf。

我从未使用过 authblk,但我想您应该在生成的 LaTeX 中的 \begin{document} 行之前定义作者。使用乳胶块(顺便说一下,根据您使用的 org 版本,这些语法已更改),您将生成将出现在文档开头之后的 LaTeX。

我想你想把每一行 \author 和 \affil 行放在标题中:

#+latex_header: \author[1]{Author One}
#+latex_header: \affil[1]{Guided Therapeutics Centre}

等等

试试这个。

于 2016-02-18T16:08:38.690 回答