% luatexja-preset.sty
-\ProvidesPackage{luatexja-preset}[2020-09-14 Japanese font presets]
+\ProvidesPackage{luatexja-preset}[2022-06-19 Japanese font presets]
\RequirePackage{expl3,l3keys2e}
\RequirePackage{luatexja}
mc = A-OTF-RyuminPr6N-Light.otf, mc-b = A-OTF-FutoMinA101Pr6N-Bold.otf,
gt-d = A-OTF-GothicBBBPr6N-Medium.otf , gt-b = A-OTF-FutoGoB101Pr6N-Bold.otf,
gt-u = A-OTF-GothicBBBPr6N-Medium.otf , gt-eb = A-OTF-MidashiGoPr6N-MB31.otf,
- mg-m = A-OTF-Jun101Pr6N-Light.otf,
+ mg-m = A-OTF-ShinMGoPr6N-Light.otf,
__custom = false, __office = false, __noembed = false,
}
mc-l = Noto~Serif~CJK~JP~Light,
__custom = false, __office = false, __noembed = false,
}
+\ltjpreset_declare_preset:nx{noto}{
+ noto-otf,
+}
+\ltjpreset_declare_preset:nx{noto-jp}{
+ mc-m = Noto~Serif~JP~Regular,
+ mc-b = Noto~Serif~JP~Bold,
+ gt-d = Noto~Sans~JP~Regular,
+ gt-b = Noto~Sans~JP~Bold,
+ gt-u = Noto~Sans~JP~Medium,
+ gt-eb = Noto~Sans~JP~Black,
+ mg-m = Noto~Sans~JP~Medium,
+ mc-l = Noto~Serif~JP~Light,
+ __custom = false, __office = false, __noembed = false,
+}
% HaranoAji {Mincho, Gothic}
\ltjpreset_declare_preset:nx{haranoaji}{
\advance\leftskip 3\zw
\parindent 1\zw
\noindent
- \llap{\@makefnmark\hskip0.3\zw}#1}
+ \hb@xt@\z@{\hss\@makefnmark\hskip0.3\zw}#1}
\let\@inhibitglue=\ltjfakeparbegin
\def\@item[#1]{%
\if@noparitem
\advance\leftskip 3\zw
\parindent 1\zw
\noindent
- \llap{\@makefnmark\hskip0.3\zw}#1}
+ \hb@xt@\z@{\hss\@makefnmark\hskip0.3\zw}#1}
\let\@inhibitglue=\ltjfakeparbegin
\def\@item[#1]{%
\if@noparitem
% |\@makefnmark| は脚注の番号を出力する命令です。
% ここでは脚注が左端から一定距離に来るようにしてあります。
%
+%
% \begin{macrocode}
\newcommand\@makefntext[1]{%
\advance\leftskip 3\zw
\parindent 1\zw
\noindent
- \llap{\@makefnmark\hskip0.3\zw}#1}
+ \hb@xt@\z@{\hss\@makefnmark\hskip0.3\zw}#1}
% \end{macrocode}
% \end{macro}
%
\advance\leftskip 3\zw
\parindent 1\zw
\noindent
- \llap{\@makefnmark\hskip0.3\zw}#1}
+ \hb@xt@\z@{\hss\@makefnmark\hskip0.3\zw}#1}
\let\@inhibitglue=\ltjfakeparbegin
\def\@item[#1]{%
\if@noparitem
\advance\leftskip 3\zw
\parindent 1\zw
\noindent
- \llap{\@makefnmark\hskip0.3\zw}#1}
+ \hb@xt@\z@{\hss\@makefnmark\hskip0.3\zw}#1}
\let\@inhibitglue=\ltjfakeparbegin
\def\@item[#1]{%
\if@noparitem
\advance\leftskip 3\zw
\parindent 1\zw
\noindent
- \llap{\@makefnmark\hskip0.3\zw}#1}
+ \hb@xt@\z@{\hss\@makefnmark\hskip0.3\zw}#1}
\let\@inhibitglue=\ltjfakeparbegin
\def\@item[#1]{%
\if@noparitem
\newif\ifltj@disablejfam
%%%% VERSION
-\def\LuaTeXjaversion{20220411.0}
+\def\LuaTeXjaversion{20220530.0}
%% Check if LaTeX is used.
\begingroup\expandafter\expandafter\expandafter\endgroup
%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{lltjcore}[2022-01-17 Patch to LaTeX2e Kernel for LuaTeX-ja]
+\ProvidesPackage{lltjcore}[2022-05-30 Patch to LaTeX2e Kernel for LuaTeX-ja]
\RequirePackage{etoolbox}
%%% expl3
\hskip\@tempskipa\color@endgroup\egroup}
\pretocmd{\footnote}{\inhibitglue}{}{}
\pretocmd{\footnotemark}{\inhibitglue}{}{}
-\patchcmd{\@footnotemark}{\@makefnmark}{%
- \unless\ifnum\ltjgetparameter{direction}=3 \@makefnmark%
- \else\hbox to\z@{\hskip-.25\zw\raise.9\zh\@makefnmark\hss}\fi%
-}{}{}
-\let\@parboxto\@empty
+\def\@ltj@process@makefnmark#1{%
+ \unless\ifnum\ltjgetparameter{direction}=3 #1%
+ \else\hbox to\z@{\hskip-.25\zw\raise.9\zh#1\hss}\fi%
+}%
+\ifdefined\@kernel@process@makefnmark %% 2022-06-01 latex-lab?
+ \let\ltj@orig@kernel@process@makefnmark=\@kernel@process@makefnmark
+ \def\@kernel@process@makefnmark#1{\ltj@orig@kernel@process@makefnmark{\@ltj@process@makefnmark#1}}
+\else
+ \patchcmd{\@footnotemark}{\@makefnmark}{\@ltj@process@makefnmark\@makefnmark}{}{}
+\fi
\long\def\@iiiparbox#1#2[#3]#4#5{%
\leavevmode
\@pboxswfalse