emacs org export pdf
1. 生成 tex
在 org 文件中按键 C-c C-e l l 这样能够生成 tex 文件
参考: http://tieba.baidu.com/p/3522363035
https://www.dazhuanlan.com/2019/10/16/5da60df92dd09/
https://blog.csdn.net/sinat_41104353/article/details/86763490 https://blog.csdn.net/yivanus/article/details/8689651 https://blog.csdn.net/sinat_41104353/article/details/86763490 https://sunyour.org/post/20160327-emacs-org-to-pdf-with-latex/
2. 报错处理。
当提示 "pdf was not produced. See "Org PDF LaTEx Output" for details" , 具体信息在 buffer 里面,通过 C-x b , 然后输入 *org ,自动补全后打开,即可看到错误信息。 解决方法: texlive 选择全部安装。
3. 在 org 的文件头部添加
#+LATEX_HEADER: \usepackage[UTF8]{ctex}
使用 xelatex 来输出有两种方法,
#+LATEX_CMD: xelatex
或者
(setq org-latex-pdf-process '("xelatex -interaction nonstopmode %f"
"xelatex -interaction nonstopmode %f"))
参考: https://sunyour.org/post/20160327-emacs-org-to-pdf-with-latex/