org-mode导出pdf文件

来源:互联网 发布:windows添加或删除组件 编辑:程序博客网 时间:2024/06/05 19:38

安装texlive 2010,中文支持需要ctex和xeCJk,直接把包全部装上就行了。

1.将org文件导出为tex文件(C-c C-e l)

2.在导出的tex文件中添加

/usepackage{xeCJK}
/setCJKmainfont{宋体}

/usepackage[unicode=true,colorlinks=no,pdfborder=no]{hyperref} %让生成的目录没有红色边框

/begin{center}
/renewcommand{/contentsname}{目录} %将Contents改成目录并居中
/tableofcontents
/end{center}

3.用xelatex filename.tex即可输出pdf文件。

要生成目录需运行两遍xelatex

 

 

用ctex处理中文

 

用xeCJK处理中文


可阅读texlive 2010 文档中的xelatex 、ctex、xeCJK部份获得更多信息