CTAN update: LuaCJK
Date: November 25, 2026 2:20:17 PM CET
Mingyu Xia submitted an update to the
LuaCJK
package.
Version: 0.1.0 2026-11-25
License: lppl1.3c
Summary description: A LuaTeX CJK typesetting package
Announcement text:
LuaCJK v0.1.0: A LuaTeX CJK typesetting package - `Baseline` moves the characters of the family in force where they are written, and the marks of the family `PunctFamily` names, so a family selected inside a group moves only thatgroup and two declarations of one font keep their values in the same paragraph. - The punctuation group `latin-close` can be declared and removed like the others, so the spacing of the ASCII closing marks is a setting of the document and not only a default. - The two- and three-em dashes `U+2E3A` and `U+2E3B` are CJK characters of the dash group, so a font that joins a pair of em dashes into one glyph keeps the prohibition of `NoBreakLongPunct`. - `\LuaCJKnobreak` forbids the breaks inside its argument alone: a break at either edge of the argument is the business of the text around it, and the glue the package inserts behind the last character no longer carries the prohibition. - `\CJKfontspec` switches the text to its font even when `PunctFamily` names a family, which used to replace the family name the command was about to select. - The initial list holds the two characters it documents, the slash and the hyphen: the list is read as a sequence of characters, so the commas that separated them used to be normal-spaced as well, and so did the space between two of them. A backslash is not in it, because beside a CJK character it usually begins a printed command name, which takes the glue on both of its sides like any other Latin character. - `LoadLXGW` replaces `LoadFandol` and supplies the LXGW family when the document declares no CJK font. - A CJK--Latin boundary takes the settings of the CJK character it touches, so `CJKecglue` follows the size of the CJK text: a Latin run set with `\scriptsize` or `\large` keeps thespace of the surrounding text on both of its sides. - The ASCII closing marks are a punctuation group of their own: a `!`, `,`, `.`, `:`, `;`, `?`, `%`, `"`, or `'` takes the zero-width boundary glue beside a CJK character and may not start a line, and it keeps the advance the Latin font gave it, which no compression style, no hang, and no `PunctWidth` touches. - A box takes the class of the text nearest its edge, so a kern, a spacing glue, or a rule inside it no longer hides that text: `\mbox` around an italic `\textit` keeps the `CJKecglue` beside its last letter, a box that holds no text takes the glue on both sides, and a filling glue still leaves the edge empty, which keeps the titles of a table of contents aligned. - A vertical box reads its edges by the same rule, so the rule that underlines a `\underline` no longer hides the text above it: the underlined Latin run takes the `CJKecglue` on both of its sides, like the run a `\mbox` or `\CJKunderline` holds. - A box the edge holds does not hide the text behind it when that box has no class of its own, and a paragraph line is read past its `local_par` marker: `\parbox` takes the `CJKecglue` at the edge its first character reaches, while its last edge stays empty, because `\parfillskip` does not let the text reach it. - A box that holds nothing on its own baseline, only raised or lowered boxes, is attached like a shifted box: the mark of `\footnote` and `\raisebox` therefore take no glue on either side, as the box `\textsuperscript` builds already did. - A framed box is an object of the line and not a mark: `\fbox`, `\framebox` and `\fcolorbox` lower a vertical box around their content, so they take the `CJKecglue` on both sides like any other box, while the mark of `\raisebox` or a `\footnote` still takes none. - A node inserted at a CJK--Latin boundary keeps only the attributes both characters carry, so a decoration ends at the last character it covers: the `CJKecglue` behind `\CJKunderline`'s argument no longer takes the rule past it. - A suspended run takes the glue its two classes give at its edge: `\verb` beside a CJK character is spaced as the same characters in a text font are, while the material itself is left alone. - A source space beside a box that occupies no advance belongs to the boundary of the two characters the box stands between: the space in front of the box becomes the inter-character glue, so an `\mbox` between two CJK characters takes no `CJKglue` of its own, and two spaces on either side of it are one space. - The gap between two adjacent marks is the blank between their ink: the length `\LuaCJKsetkern` gives is that blank, so `0pt` makes the two marks meet instead of widening the gap, and a compression takes at most the blank the compressed mark carries on its right. - A formula that sets one opening or closing delimiter alone is that bracket: the CJK--Latin glue stands outside the pair and not between the delimiter and the text it encloses, so the angle brackets of a `\meta` argument hug their Chinese characters. - A half-width closing bracket keeps the `CJKecglue` between itself and the CJK character that follows it, so the outside of a pair of brackets is spaced on both sides while the pair still hugs the text it encloses. - The glue stands in front of the background a colour box draws: the highlight of `\colorbox` covers the box it was asked to colour and not the space between the two characters, so it stops the same distance from the text on both sides. - A ratio style never cuts into the ink: a mark keeps its ink and the smaller of its two blanks, so the fullwidth percent sign and the fullwidth currency signs keep their advance under `banjiao` and no longer overlap the character after them. - The advance a ratio style gives a mark and the place of its ink come from the outline, so a mark whose ink is not against the edge of its box keeps a blank on both sides instead of losing part of the ink. - The ink of a glyph is measured at the extremum of its curves rather than at their control points, and the alternating curve operators read the abscissa of their third point from the operand that carries it, so the blank a mark hangs is the blank its outline paints. - The blank of a glyph on each side is read from its outline, so the gap `\LuaCJKsetkern` gives and the amount a compression takes are the blanks the font carries. - The last line of a centered or flush-right paragraph hangs the mark it ends with as well, so every line of it stops at the same edge instead of the last one standing the width of that blank further in. - The cell of a repeated symbol starts at the left edge of the decorated span, so `\CJKunderanysymbol` keeps the symbol of a single character whose span begins in the middle of a cell; `\CJKunderanyline` and the `symbol` of `\CJKunderdot` and `\CJKunderwave` follow the same rule. - The body of `CJKfilltwosides` is set as a `minipage`, so a paragraph after a paragraph break starts at the left edge of the box and is filled like the first one, and the leading between the lines is the leading of the document instead of whatever an enclosing alignment left behind. - A `\footnote` inside `CJKfilltwosides` is set at the bottom of the box and numbered with the box's own counter, instead of being lost with the insert that a plain vertical box cannot hold.
This package is located at https://mirrors.ctan.org/macros/luatex/latex/luacjk More information is at https://ctan.org/pkg/luacjk
Thanks for the upload. For the CTAN Team Erik Braun CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs .
LuaCJK v0.1.0: A LuaTeX CJK typesetting package - `Baseline` moves the characters of the family in force where they are written, and the marks of the family `PunctFamily` names, so a family selected inside a group moves only thatgroup and two declarations of one font keep their values in the same paragraph. - The punctuation group `latin-close` can be declared and removed like the others, so the spacing of the ASCII closing marks is a setting of the document and not only a default. - The two- and three-em dashes `U+2E3A` and `U+2E3B` are CJK characters of the dash group, so a font that joins a pair of em dashes into one glyph keeps the prohibition of `NoBreakLongPunct`. - `\LuaCJKnobreak` forbids the breaks inside its argument alone: a break at either edge of the argument is the business of the text around it, and the glue the package inserts behind the last character no longer carries the prohibition. - `\CJKfontspec` switches the text to its font even when `PunctFamily` names a family, which used to replace the family name the command was about to select. - The initial list holds the two characters it documents, the slash and the hyphen: the list is read as a sequence of characters, so the commas that separated them used to be normal-spaced as well, and so did the space between two of them. A backslash is not in it, because beside a CJK character it usually begins a printed command name, which takes the glue on both of its sides like any other Latin character. - `LoadLXGW` replaces `LoadFandol` and supplies the LXGW family when the document declares no CJK font. - A CJK--Latin boundary takes the settings of the CJK character it touches, so `CJKecglue` follows the size of the CJK text: a Latin run set with `\scriptsize` or `\large` keeps thespace of the surrounding text on both of its sides. - The ASCII closing marks are a punctuation group of their own: a `!`, `,`, `.`, `:`, `;`, `?`, `%`, `"`, or `'` takes the zero-width boundary glue beside a CJK character and may not start a line, and it keeps the advance the Latin font gave it, which no compression style, no hang, and no `PunctWidth` touches. - A box takes the class of the text nearest its edge, so a kern, a spacing glue, or a rule inside it no longer hides that text: `\mbox` around an italic `\textit` keeps the `CJKecglue` beside its last letter, a box that holds no text takes the glue on both sides, and a filling glue still leaves the edge empty, which keeps the titles of a table of contents aligned. - A vertical box reads its edges by the same rule, so the rule that underlines a `\underline` no longer hides the text above it: the underlined Latin run takes the `CJKecglue` on both of its sides, like the run a `\mbox` or `\CJKunderline` holds. - A box the edge holds does not hide the text behind it when that box has no class of its own, and a paragraph line is read past its `local_par` marker: `\parbox` takes the `CJKecglue` at the edge its first character reaches, while its last edge stays empty, because `\parfillskip` does not let the text reach it. - A box that holds nothing on its own baseline, only raised or lowered boxes, is attached like a shifted box: the mark of `\footnote` and `\raisebox` therefore take no glue on either side, as the box `\textsuperscript` builds already did. - A framed box is an object of the line and not a mark: `\fbox`, `\framebox` and `\fcolorbox` lower a vertical box around their content, so they take the `CJKecglue` on both sides like any other box, while the mark of `\raisebox` or a `\footnote` still takes none. - A node inserted at a CJK--Latin boundary keeps only the attributes both characters carry, so a decoration ends at the last character it covers: the `CJKecglue` behind `\CJKunderline`'s argument no longer takes the rule past it. - A suspended run takes the glue its two classes give at its edge: `\verb` beside a CJK character is spaced as the same characters in a text font are, while the material itself is left alone. - A source space beside a box that occupies no advance belongs to the boundary of the two characters the box stands between: the space in front of the box becomes the inter-character glue, so an `\mbox` between two CJK characters takes no `CJKglue` of its own, and two spaces on either side of it are one space. - The gap between two adjacent marks is the blank between their ink: the length `\LuaCJKsetkern` gives is that blank, so `0pt` makes the two marks meet instead of widening the gap, and a compression takes at most the blank the compressed mark carries on its right. - A formula that sets one opening or closing delimiter alone is that bracket: the CJK--Latin glue stands outside the pair and not between the delimiter and the text it encloses, so the angle brackets of a `\meta` argument hug their Chinese characters. - A half-width closing bracket keeps the `CJKecglue` between itself and the CJK character that follows it, so the outside of a pair of brackets is spaced on both sides while the pair still hugs the text it encloses. - The glue stands in front of the background a colour box draws: the highlight of `\colorbox` covers the box it was asked to colour and not the space between the two characters, so it stops the same distance from the text on both sides. - A ratio style never cuts into the ink: a mark keeps its ink and the smaller of its two blanks, so the fullwidth percent sign and the fullwidth currency signs keep their advance under `banjiao` and no longer overlap the character after them. - The advance a ratio style gives a mark and the place of its ink come from the outline, so a mark whose ink is not against the edge of its box keeps a blank on both sides instead of losing part of the ink. - The ink of a glyph is measured at the extremum of its curves rather than at their control points, and the alternating curve operators read the abscissa of their third point from the operand that carries it, so the blank a mark hangs is the blank its outline paints. - The blank of a glyph on each side is read from its outline, so the gap `\LuaCJKsetkern` gives and the amount a compression takes are the blanks the font carries. - The last line of a centered or flush-right paragraph hangs the mark it ends with as well, so every line of it stops at the same edge instead of the last one standing the width of that blank further in. - The cell of a repeated symbol starts at the left edge of the decorated span, so `\CJKunderanysymbol` keeps the symbol of a single character whose span begins in the middle of a cell; `\CJKunderanyline` and the `symbol` of `\CJKunderdot` and `\CJKunderwave` follow the same rule. - The body of `CJKfilltwosides` is set as a `minipage`, so a paragraph after a paragraph break starts at the left edge of the box and is filled like the first one, and the leading between the lines is the leading of the document instead of whatever an enclosing alignment left behind. - A `\footnote` inside `CJKfilltwosides` is set at the bottom of the box and numbered with the box's own counter, instead of being lost with the insert that a plain vertical box cannot hold.
This package is located at https://mirrors.ctan.org/macros/luatex/latex/luacjk More information is at https://ctan.org/pkg/luacjk
Thanks for the upload. For the CTAN Team Erik Braun CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs .
LuaCJK – A LuaTeX CJK typesetting package
LuaCJK is a package for typesetting documents in Chinese, Japanese or Korean with LuaTeX. It provides separate font families for CJK and Latin scripts, CJK-specific glue, punctuation compression and line-breaking prohibitions, and tagged-PDF output.
| Package | LuaCJK |
| Version | 0.1.0 2026-11-25 |
| Copyright | 2026 Mingyu Xia |
| Maintainer | Mingyu Xia |