编译中文 LaTeX

Sep 22, 2017·
Shenghui (Samuel) Gu
Shenghui (Samuel) Gu
· 1 min read
posts

之前想用中文写 LaTeX,查了几次总是忘记,在此记录。

只要在文件开头加入以下代码:

% !TEX program = xelatex
\documentclass{ctexart}
Shenghui (Samuel) Gu
Authors
Postdoctoral Researcher
Postdoctoral Researcher at the University of Ottawa specializing in Trustworthy AI and Software Engineering, holding a Ph.D. from Nanjing University. Research lies at the intersection of AI Safety and System Reliability, with deep expertise spanning LLM-driven testing, search-based software engineering for autonomous systems, and AIOps for distributed architectures. Dedicated to developing rigorous, interpretable, and scalable methodologies that leverage generative AI to solve complex validation challenges in safety-critical and large-scale industrial systems.