brew cask install mactex
在 dotspacemacs-configuration-layers
中加入git
(latex :variables latex-build-command "LaTeX")
而后 SPC f e R
重启加载配置,spacemacs 就会自动安装 latex 模块github
建立 demo.tex 并写入shell
%!TEX program = xelatex \documentclass{ctexart} \begin{document} English test\\ 中文测试\\ \[E = m c^2\] \end{document} %%% Local Variables: %%% coding: utf-8 %%% mode: latex %%% TeX-master: t %%% TeX-engine: xetex %%% End:
键入 SPC m b
编译成 PDFapp
键入 SPC m v
就能打开编译生成的 PDF测试
咱们以这个简历模板为例子,讲下该如何用 LaTeX 写简历ui
├── LICENSE ├── README.md ├── resume.pdf # 生成的pdf例子 ├── resume.tex # 主文件 └── section ├── education.tex # 教育经历 ├── introduction.tex # 自我介绍 ├── project.tex # 项目经历 ├── skill.tex # 我的技能 ├── userinfo.tex # 我的信息 └── work.tex # 工做经历
根据上面目录给出的,在各个文件中将内容替换成本身的简历信息,而后编译生成 PDF 便可。Happy LaTeXingspa