emacs - 使用包 authblk 在 Orgmode 中自定义多个作者隶属关系以进行 latex 导出

标签 emacs latex org-mode hyperref

我在我的 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

pdfoutput

最佳答案

我今天从 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/

相关文章:

emacs - 如何获取组织表中某个点的列名和字段名

在 LSF 上的 emacs 中运行 R

emacs - .dir-locals.el 中的错误类型参数 : listp, eval-after-load

c++ - 从 C++ 源代码打开一个 emacs org-mode 文件并自动创建一个项目

regex - vim 在多行上查找和替换,排除多个字符

emacs - 自定义组织模式导出

emacs - Emacs org-agenda-list破坏了我的Windows拆分

latex - 创建自己的BibTeX样式还是自定义现有样式?

charts - Tikz 轴图外列被切断

emacs - 使用 emacs 中的组织模式表使用 calc 转换单位