CTAN Comprehensive TeX Archive Network

Directory macros/luatex/latex/luacjk

README.md

CTAN Version GitHub Release GitHub Last Commit Actions Status GitHub Repo stars

LuaCJK

LuaCJK is a Lua package for Chinese typesetting.

The package provides a CJK font family layer, CJK/CJK and CJK/Latin spacing, the quanjiao, plain, banjiao, kaiming, CCT, and hangmobanjiao punctuation styles with line-breaking prohibitions, and fallback fonts, all on top of Lua node callbacks. The companion package LuaCJKfntef adds underlining, emphasis dots, and strike-through through lua-ul. LuaCJK-listings keeps CJK text in place and two columns wide inside a listings block.

Loading

\usepackage{LuaCJK}
\setCJKmainfont{FandolSong-Regular.otf}

LuaCJK requires the Lua engine. It must not be loaded together with luatexja.

Tagged PDF

Declare \DocumentMetadata{tagging = on} before \documentclass to produce a tagged PDF. The ink of a decoration is an artifact, a decoration symbol is left out of the text a reader copies, and LuaCJKfntef's selectable key keeps a symbol as text. Under l3doc, load latex-lab-testphase-l3doc as well. The manual is built with tagging enabled.

Using it with ctex

Pass engine = luacjk to the ctex class or package:

\documentclass[engine = luacjk]{ctexart}

ctex then inputs ctex-engine-luacjk.def instead of its own Lua backend, and that file loads LuaCJK, so the package is not loaded separately.

License

This work may be distributed and/or modified under the conditions of the Project Public License, version 1.3c or later.

Download the contents of this package in one zip archive (1.9M).

LuaCJK – A Lua CJK typesetting package

This package provides Chinese typesetting for the Lua engine.

PackageLuaCJK
Bug tracker
Repository
Version0.0.1 2026-11-11
LicensesThe Project Public License 1.3c
Copyright2026 Mingyu Xia
MaintainerMingyu Xia
Contained inTeX Live as luacjk
TopicsLua
Chinese
...
Guest Book Sitemap Contact Contact Author