-
Notifications
You must be signed in to change notification settings - Fork 10
EN:Installation
English | 中文版
This page describes how to install the luatex-cn package.
Install using your TeX distribution's package manager:
# TeX Live (Windows/Linux)
tlmgr install luatex-cn
# MiKTeX
# Open MiKTeX Console → Packages → Search for luatex-cn
⚠️ Note: The CTAN version may lag behind GitHub. We recommend using GitHub Release. When installed via CTAN/package manager, the documentation lands in the texmf doc tree automatically, sotexdoc luatex-cnopens the PDF manual out of the box.
-
Download: Go to GitHub Releases and download the latest
luatex-cn-tex-v*.zip -
Locate texmf directory:
-
Windows:
C:\Users\<username>\texmf -
macOS/Linux:
~/texmf
-
Windows:
-
Place files: Put the contents of
tex/into:texmf/tex/latex/luatex-cn/ -
Refresh database:
texhash
-
(Optional) Install the PDF manuals: put the contents of
doc/(luatex-cn-wiki-zh.pdf/luatex-cn-wiki-en.pdf, etc.) into:texmf/doc/latex/luatex-cn/After that,
texdoc luatex-cnopens the PDF manual directly (the release zip shipsdoc/since v0.4.0).
Place the contents of tex/ in the same directory as your .tex file and compile directly.
Create a test file test.tex:
\documentclass[四库全书]{ltc-guji}
\begin{document}
\begin{正文}
天地玄黄,宇宙洪荒。
\end{正文}
\end{document}Run:
lualatex test.texIf compilation succeeds, installation is complete.
- LuaTeX (TeX Live 2024+ recommended)
-
luaotfloadandfontspec
We recommend installing these fonts for best results:
- Noto Serif CJK SC (Source Han Serif)
- FangSong or KaiTi (for traditional book effects)
📜 LuaTeX-CN | Licensed under Apache License 2.0