【发布时间】:2012-02-09 19:38:19
【问题描述】:
当我执行 C-c C-e l 将 Org 文件导出到 LaTeX 时,它会生成一个带有特定序言的文档。而不是这个特定的序言,我希望它使用我选择的序言。假设我希望它使用以下序言:
% Don't forget to qpdf --linearize the final copy
\RequirePackage[l2tabu,orthodox]{nag}% Old habits die hard. All the same, there are commands, classes and packages which are outdated and superseded. nag provides routines to warn the user about the use of those.
\immediate\write18{sh ./vc}
\input{vc}% Version control macros (for \VCDateISO in \date) http://www.ctan.org/pkg/vc
\documentclass[a4paper,12pt]{article}% pt? doublepage?
%\usepackage{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}% Latin Modern (derivate of Knuth's CM)
\usepackage{fixltx2e}% \textsubscript and bugfixes for LaTeX
\usepackage{microtype}
\usepackage[strict=true]{csquotes}% Context-sensistive quotes. \enquote "" \enquote* ''. Use the integrated commands \textcquote and \blockcquote rather than biblatex internal commands to get contex sensistive quotes for them too. s/babel/autostyle in new version.
\usepackage[bookmarks,pdfborder={0 0 0}]{hyperref}% links and pdfinfo. MUST BE LOADED LAST!
\hypersetup{% Setup for hyperref
pdftitle = {[Title from #+TITLE]},
pdfauthor = {[Author from #+AUTHOR]}
}
我知道您可以根据每个文件操作使用哪些包as described in the manual,但我希望此序言用于所有文件,除非)另有说明。我要使用的序言包括以下内容:
- 停用的包(如上面的
geometry) -
RequirePackage加载的包 -
input宏 -
\immediate\write18宏 -
usepackage宏之后的 cmets - 一个
hypersetup宏,可从组织模式文件中识别#+TITLE和#+AUTHOR
【问题讨论】: