2016-02-12 72 views
1

我在我的Orgmode文檔中安裝了此設置,並且它沒有將作者關聯導出到latex或pdf。 取而代之的是代替作者的啓發式'即時' 我在.emacs中添加了Latex到Org -babel-Load語言 必須做些什麼才能讓babel評估Latex代碼塊? 是否有必須更改的hyperef設置?在Orgmode中使用軟件包authblk定製乳膠導出中的多個作者附屬關係

#+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

回答

2

我得到這個答覆今天從有正確的解決方案 週四,組織模式的郵件列表,2016年2月18日10:05,普拉卡什納亞克說:

我有這個安裝在我的org-模式文檔,它不出口作者 隸屬關係到乳膠或PDF格式。

我從來沒有用過authblk但我想你,預計 定義作者前\ {開始}文件中產生 乳膠管線。使用乳膠塊(順便說一句,取決於您使用的org版本 ,這些語法的語法已更改),您將在 文檔的開始之後生成LaTeX,該文件將出現

我想你想要把每個\作者和\ affil線在 頭:

+ latex_header:\作者[1] {作者之一}

+ latex_header:\ affil [ 1] {指導治療中心}

試試這個。