some LaTeX notes

Here are some notes for LaTeX. All from a guy’s blog: 始终.

LaTeX 的中文

曾经 LaTeX 的中文处理非常繁琐,现在日新月异,LaTeX 的中文处理在一般情况下已经很便捷,再也不需要折腾。

要求:安装最新的 TeX Live 2015 / MacTeX 2015 (重点是需要其中的 CTeX 2.0 宏包)。使用 XeLaTeX。


%!TEX program = xelatex


%!TEX program = xelatex
\usepackage[UTF8, heading = false, scheme = plain]{ctex}
This article contains some 中文文字.

全部都使用 xelatex 来进行编译。

LaTeX and Sublime Text

Install Sublime Text, TeX Live 2015 / MacTeX 2015.

Install SumatraPDF on Windows, Skim on OSX, or Evince on Linux.

In Sublime, install Package Control then install LaTeXTools. After Installation, we have to run command “Reconfigure LaTeXTools and migrate settings” before the first time use.

Then use Command + B or Ctrl + B inside Sublime to compile the LaTeX files. If we need Chinese characters, we could add %!TEX program = xelatex as the first line of the source codes.


All notes are copied and/or built upon these links, which are distributed under CC BY-SA 3.0: