-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 3/18/15 6:34 PM, Hironori KITAGAWA wrote: > Hello, > > On Wed, 18 Mar 2015 18:20:46 -0500 Rembrandt Wolpert > <[email protected]> wrote: > >> Updating texlive to fontspec 2015/03/14 v2.4c seems to have >> broken the use of \newjfontfamily; \setmainjfont works (as far as >> I can tell -- I get kanji etc.), but newjfontfamily (I need both >> Chinese and Japanese fonts in the same document) throws a >> "missing \begin{document}" error. >> >> Reverting to the earlier fontspec "solves" the problem >> temporarily. > > Thanks for reporting. The following patch of > addons/luatexja-fontspec-24.sty seems to work in my environment: > > --- a/src/addons/luatexja-fontspec-24.sty +++ > b/src/addons/luatexja-fontspec-24.sty @@ -207,7 +207,7 @@ > > \DeclareDocumentCommand \newjfontfamily { m O{} m O{} } { > \cs_set_eq:NN \fontspec_set_family:Nnn > \ltj_fontspec_set_family:Nnn - \newfontfamily #1 [#2] {#3} [#4] + > \newfontfamily #1 [#2,#4] {#3} \cs_set_eq:NN > \fontspec_set_family:Nnn \__ltj_orig_fontspec_set_family:Nnn } > > > Regards Hironori KITAGAWA <[email protected]> >
Dear Kitagawa-sensei, yes, that solves it! Thank you so much for such rapid solution! as ever, Rembrandt - -- 人生䘮亂世 無君欲誰仕 - 劉因 (1249-1293) -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 Comment: GPGTools - http://gpgtools.org iQEcBAEBAgAGBQJVCiBTAAoJEFWqP1hIXLxaaP0H/ie6aYym8sdrkPJgd1Q5/SBs 6Q9uzTtn9qLEz9xUxF+GA3TqKFCiii0QBhY9AddKyJG0MlIDFkOZs/XCyLWivfk2 g7A01WR9O2Nrw7+SfB90Fn3/8qqX71GkSy9CKhAHVN8eHjxI2yG7Mu4UGMoq4Zti IcZWpNDMDKorjap+O263bNjPC1hq2SlniRgcmiG52TrTtsuacfsfZB2YwAkZfkbc wrtbumcBkDMlAUA/o79MmWxelkKikndzn+aBNBf+PlBpK3x7Nrp+zZHqg7TvEO9P fR3PoATawozVr0tbjDwvovpfCXjptONkrJFEIoevh2hTJFz4R5dx3YvIT2X5Kps= =BQ/B -----END PGP SIGNATURE-----
