「LaTeX」中文支持
支持中文的 recipe
支持中文的 recipe 有 xelatex
和 lualatex
。如要在 macOS 中使用 lualatex
需要先在终端中输入以下指令:
1 | sudo tlmgr conf texmf OSFONTDIR /System/Library/AssetsV2/com_apple_MobileAsset_Font7 |
1 | title: 重要 |
图表目录 caption
需引入 caption
包并进行设置。
1 | \usepackage[center]{caption} |
Koma-Script
当使用 koma-script 时,可用 \defcaptionname
替代上述代码。
1 | \documentclass{scrartcl} |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment