如何使用org-mode为科学期刊编写LaTeX?

时间:2015-12-10 14:18:51

标签: latex org-mode

我现在使用org-mode写大部分文本,我经常用它来通过LaTeX生成PDF(特别是xelatex)。但现在我想用它来撰写科学文章,期刊经常要我使用特定的风格。这包括一个.cls文件,这很容易使用org-latex-classes,但很多时候,它们需要在\ begin {document}后面的特定设置(即一个特定的抽象部分,时髦的作者和联盟等,以及我我不知道如何做到这一点。也就是说,我现在在#+ begin / end_latex部分执行此操作 - 但如果我切换样式,则需要完全重写。

我意识到我可能需要在某些时候使用LaTeX代码,但我希望尽量减少这种摆弄,并且我希望能够从一个期刊切换到另一个最小的问题,并尽可能保持我的组织模式源。

3 个答案:

答案 0 :(得分:8)

http://kitchingroup.cheme.cmu.edu/blog/2014/08/08/What-we-are-using-org-mode-for/

的第3项

我们用org-mode编写了一份文件清单,然后输出到LaTeX。自那篇文章以来我们可能还有8个。

在SI中你可以找到嵌入在PDF中的组织源,在这里:Spencer D. Miller,Vladimir V. Pushkarev,Andrew J. Gellman和John R. Kitchin,模拟温度程序化解吸Pt上的氧( 111)使用DFT衍生的覆盖依赖性解吸障碍,主题在催化,57(1),106-117(2013)。 http://link.springer.com/article/10.1007%2Fs11244-013-0166-3你甚至可以找到我们的手稿。

您可能还想结帐https://github.com/jkitchin/org-ref进行引文管理,并https://github.com/jkitchin/jmax/blob/master/ox-manuscript.el了解我们的出口方式。

答案 1 :(得分:1)

根据您需要做的乳胶抛光量,您可能会发现将一些东西添加到您的组织文件中更简单,并直接使用一些babel。这是我的文件的开头可能看起来的片段。有些事情在那里,因为我还将在组织文件中使用R代码进行统计分析,以便能够获得更可重复的工作流程:

# -*- mode: org; org-export-babel-evaluate: nil -*-
#+Title: This is my title 
#+Author: An Author, Another Author, and Last Author
#+Options: toc:nil ':t *:nil -:nil ::nil <:nil ^:t author:t d:t H:5 |:t
#+Property: header-args:R :session *myarticlessection* :results output :exports both :cache yes
#+Latex_Class: article
#+Latex_Class_Options: [12pt]
#+Latex_Header: \usepackage{amsmath}
#+Latex_Header: \usepackage[T1]{fontenc}
#+Latex_Header: \usepackage{mathptmx}
#+Latex_Header_Extra: \linespread{1.5} 
#+LATEX_HEADER: \usepackage[citestyle=authoryear-icomp,bibstyle=authoryear, hyperref=true,backref=true,maxcitenames=3,url=true,backend=biber,natbib=true] {biblatex}
#+Latex_header: \addbibresource{myarticles.bib}

#+BEGIN_SRC latex :results output
\begin{abstract}
Here is where I put the abstract.
\end{abstract}
#+END_SRC

#+RESULTS:
#+BEGIN_LaTeX
\begin{abstract}
And this is where it ended up after evaluating the babel block.
\end{abstract}
#+END_LaTeX

答案 2 :(得分:0)

我用org-mode写了几篇论文,包括我的博士论文。它帮助我很好地跟踪开放问题,优先级,注释等。

我使用一个小custom converter来读取.org文件并将其部分导出到.tex文件。注意&#34;正常&#34;组织模式文本(包括标题,文本,优先级,关键字等)不会导出,只是#BEGIN_LaTeX和#END_LaTeX标记之间的东西。这样,您可以根据需要制作注释,这些注释不会出现在已发布的文本中。