Qing Lee

Results 34 comments of Qing Lee

Indeedly, `cctab` is more elegant. I used it in https://github.com/CTeX-org/ctex-kit/commit/bd9cc7ddd1c2baac288e7763976b11bec113a079 last year. But I found that `cctab` is not fully compatible with the current LaTeX package loading mechanism (see #544...

英文文档可以作为一个单独的文档,现阶段比较省事一些。如果要塞进 `.dtx` 里,我倾向于 `luatexja` 的处理方式。 `ctexpatch` 和 `ctexhook` 只是减少外部依赖自己造的轮子,都有传统宏包可供使用,并且使用的是 LaTeX3 语法,并不鼓励外部使用,不提也罢。

这部分应该是 @clerkma 维护,你也可以直接报告给 LuaTeX-ja: https://osdn.net/projects/luatex-ja/ticket/

这种最保险的办法是一个一个单独处理。我们也可以像 LuaTeX-ja 一样对 `\char` 打补丁,使得用 `\char` 输出的字符总是使用西文字体。 ```LaTeX \documentclass{article} \usepackage{xeCJK} \usepackage[lite]{mtpro2} \makeatletter \ExplSyntaxOn \cs_new_protected:Npn \xeCJK_default_char:w { \int_compare:nNnTF \tex_XeTeXinterchartokenstate:D > \c_zero_int { \c_group_begin_token \tex_afterassignment:D \@@_default_char_aux: \l_@@_default_char_int = } { \tex_char:D }...

现在有一个新宏包 lua-ul 提供了比较基础的下划线支持:https://github.com/zauguin/luaul 可以把 xeCJKfntef 的大部分用户接口都移植到 lua-ul 上,这是一个体力活。

思源字体可以通过设置 `CharacterWidth=Full` 来获得全角间隔号,但是 xeCJK 内部用于获取标点度量信息的 `\fontcharwd` 和 `\XeTeXglyphbounds` 返回的还是半角的信息。可以设置 `\xeCJKsetwidth{·}{1em}` 手动校正信息。

与 #320 类似,目前暂时将 U+FF5E 等归入 FullRight 类。

这是老问题了。第一行的间距是自动加上的,默认是一个空格。空格的具体长度跟字体有关,并且这个空格是在 `\texttt` 的分组内加入的,所以第一行的空格长度取 `lmtt` 的值,为 ``` TeX .\glue 5.53317 plus 2.76659 minus 1.84439 .\EU1/lmtt/m/n/10.53937 name ``` 第二行的空格就是 `lmr` 中的空格长度,为 ``` TeX .\glue 3.50961 plus 1.7548 minus 1.16986 .\EU1/lmtt/m/n/10.53937 name ```...

There is a way to show CJK characters in URLs with the option `CJKmath` and the help of package `url`. In your example, we can say: ```TeX \documentclass{article} \usepackage[english]{babel} \usepackage{biblatex}...

`\ttfamily` is applied to non-CJK characters in URLs instead of CJK font. It is the default setting of the url package. We can customize the font via `\urlstyle{rm}`, ` \urlstyle{sf}`,...