Packages luatexja-fontspec and luatexja-preset broken
P. S.: This might already be fixed with today's new commit 2e11cb6ba479036edd36207ecacc81fc7978ca70
Just saw that, seems related.
Not critical for me, so I will wait till the next release on CTAN/Texlive
~Rhodium
Thanks for the report. I uploaded the new version (20190128.0) to CTAN today.
This was a bug initially created by fontspec’s v2.6j update. See https://github.com/wspr/fontspec/issues/346
A short history:
- v2.6j: Some Runaway argument? errors regarding XeTeX.
- v2.6k: Infinite loop if a font does not contain a requested script/language.
- v2.6l: CJK script seemed to be fixed but Latin script was broken.
- v2.7: Script CJK or Script Math may leak into \begin{document}.
- v2.7a: Everything seemed to be fixed.
I have only tested luatex-ja with the ctex document class (which, I know, only uses limited luatex-ja features) but things appeared to be okay. I hope the above brief history is helpful.
With the newest update (luatexja version 20190128.0), I can confirm the bug is fixed (at least my documents compile without error once more). Both "subpackages" luatexja-fontspec and luatexja-preset load as they should.
Thank you very much!
~Rhodium
Thank you very much for your great work.
Since the latest updates for luatexja (not sure since when exactly), the following error appears when loading luatexja-fontspec and/or luatexja-preset:
! Undefined control sequence. <argument> \__fontspec_load_fontname:n {\l__fontspec_sizedfont_tl } l.630 \ltjapplypreset {}Using the commands \setsansjfont and \ltjsetparameter causes further errors ("undefined control sequence"), but the above error seems to be the primary one.
Minimal working example document (no actual \begin{document} needed to trigger the error):
\documentclass{article} \usepackage[no-math, quiet]{fontspec} \usepackage{luatexja} \usepackage{luatexja-fontspec} \usepackage[deluxe,bold]{luatexja-preset}Package versions:
luatexja-fontspec-26h 2018/10/08 fontspec support of LuaTeX-ja
luatexja-preset 2018/10/08 Japanese font presets
~Rhodium