From: Hironori Kitagawa Date: Wed, 14 May 2014 09:44:49 +0000 (+0900) Subject: try to reduce "Command \selectfont has changed." warning message X-Git-Tag: 20140621.0~10 X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=829222c5858dc5c1789f8c04aef72d5d447ff9c7;p=luatex-ja%2Fluatexja.git try to reduce "Command \selectfont has changed." warning message But still that warning is produced when scrartcl.cls is used. --- diff --git a/src/patches/lltjfont.sty b/src/patches/lltjfont.sty index 2a87153..0adf522 100644 --- a/src/patches/lltjfont.sty +++ b/src/patches/lltjfont.sty @@ -259,7 +259,14 @@ \RequirePackage{everysel} +\let\ltj@@EverySelectfont@Init=\@EverySelectfont@Init +\expandafter\expandafter\expandafter\let +\expandafter\expandafter\csname ltj@@orig@selectfont\endcsname\csname selectfont\space\endcsname \@EverySelectfont@Init +\def\@EverySelectfont@Init{% + \expandafter\let\csname selectfont\space \endcsname \ltj@@orig@selectfont + \ltj@@EverySelectfont@Init +} \def\ltj@selectfont@patch{% \let\tmp@error@fontshape\error@fontshape \let\error@fontshape\error@kfontshape