Using the CTeX Package on Overleaf (在Overleaf平台上使用CTeX)
Author:
LianTze Lim
Last Updated:
4年前
License:
Creative Commons CC BY 4.0
Abstract:
The CTeX package (http://ctan.org/pkg/ctex) provides a style common in Chinese typsetting. However, many CTeX-based templates uses fonts bundled with Windows, which are unavailable on Overleaf.
This example shows how the CTeX package can be configured to use fonts installed on Overleaf. The default Fandol font works if you compile with XeLaTeX or LuaLaTeX. You may upload your own OTF/TTF fonts and use those also, but do be aware that Chinese font files are usually quite large!
应该有很多 CTeX 用户把自己的文件上载到 Overleaf 后,才发现由于没有 Windows 默认字体,文件不能编译而抓狂吧。不过这是可以改正的。在这个范例里,我们挪用了 Overleaf 伺服器上已有的字体,CTeX 文件就可以编译了。
\begin
Discover why 18 million people worldwide trust Overleaf with their work.