Document Chinese input on the Windows desktop beta
This commit is contained in:
1 parent
311fd203e2
commit
38a2a4a958
1 file changed
+20
@@ -17,6 +17,26 @@ GNU 扩展中的反向引用待适配。
|
|||||||
卸载和升级保留项目。Windows 原生版和 WSL 版各自使用自己的项目
|
卸载和升级保留项目。Windows 原生版和 WSL 版各自使用自己的项目
|
||||||
目录。
|
目录。
|
||||||
|
|
||||||
|
### 中文与 Unicode
|
||||||
|
|
||||||
|
0.1.9 桌面版使用 pdfLaTeX 兼容格式,随包资源没有 ctex、
|
||||||
|
xeCJK 或中文字体。导言区加载 ctex 时,第一条错误是找不到
|
||||||
|
ctex.sty。随后出现的 terminal read 提示来自 LaTeX 询问替代
|
||||||
|
文件名。直接输入汉字会触发当前格式的 Unicode 字符映射错误。
|
||||||
|
|
||||||
|
需要中文时,可在本机 TeX 发行版或 Overleaf 使用 XeLaTeX。
|
||||||
|
现有项目可以保留文档类,在导言区添加:
|
||||||
|
|
||||||
|
```tex
|
||||||
|
\usepackage[UTF8,scheme=plain,fontset=fandol]{ctex}
|
||||||
|
```
|
||||||
|
|
||||||
|
本机编译需要安装 ctex、xeCJK 和 Fandol。保存源文件时选 UTF-8。
|
||||||
|
对于桌面版中的个别符号,可使用对应的 LaTeX 命令。例如正文中的
|
||||||
|
右箭头可用 `$\to$`,也可在导言区用
|
||||||
|
`\DeclareUnicodeCharacter{2192}{\ensuremath{\to}}` 映射字符本身。
|
||||||
|
[CTeX 宏集手册](https://tug.ctan.org/language/chinese/ctex/ctex.pdf)
|
||||||
|
|
||||||
### 准备 Windows 原生版资源
|
### 准备 Windows 原生版资源
|
||||||
|
|
||||||
构建 x64 原生引擎。可以在 Windows 使用 MSVC,或在 Fedora WSL
|
构建 x64 原生引擎。可以在 Windows 使用 MSVC,或在 Fedora WSL
|
||||||
|
|||||||
Reference in new issue
Block a user