Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo in language-01 #21

Open
wants to merge 1 commit into
base: zh-Hans
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions zh-Hans/language-01.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
layout: "lesson"
lang: "zh-Hans"
title: "排版中文"
description: "本教程将展示在 LaTeX 中排版中文的基本方法,主要使用 `ctex` 宏包或文档类。"
description: "本教程将展示在 LaTeX 中排版中文的基本方法,主要使用 ctex 宏包或文档类。"
toc-anchor-text: "排版中文"
toc-description: "如何优雅地在 LaTeX 中使用中文?"
---

# 排版中文

如需排版中文文档,可使用 `ctexart`、`ctexrep`、`ctexbook` 分别代替标准文档类 `article`、`report`、`book`;如果使用其他文档类,则可额外调用 `ctex` 宏包。它们会添加对中文字体的支持,同时还会处理中文排版中的一些细节,包括行距调整、段落缩进、标点符号禁则(如句号、逗号不允许出现在行首)等。文档需要以 UTF-8 编码保存,并建议使用 `xelatex` 或 `lualatex` 编译:

```latex
Expand Down Expand Up @@ -67,7 +69,7 @@ toc-description: "如何优雅地在 LaTeX 中使用中文?"
\begin{document}
\begin{itemize}
\item 正文(宋体)
\item \textsc{无衬线(黑体)}
\item \textsf{无衬线(黑体)}
\item \textit{楷体}
\item \texttt{仿宋}
\end{itemize}
Expand Down