Skip to content

Commit

Permalink
exppl2e.sty: fetch experimental code from 'for-tl2020' branch
Browse files Browse the repository at this point in the history
  • Loading branch information
aminophen committed Feb 9, 2020
1 parent 2e2c7a1 commit f8da081
Showing 1 changed file with 85 additions and 1 deletion.
86 changes: 85 additions & 1 deletion exppl2e.sty
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
% case 1: This file must be a normal package
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{exppl2e}
[2020/02/02 v1.1e Experimental pLaTeX2e features]
[2020/02/09 v1.1f Experimental pLaTeX2e features]
\PackageWarningNoLine{exppl2e}{%
This is the unstable, experimental part of pLaTeX2e.\MessageBreak
This package may contain:\MessageBreak
Expand Down Expand Up @@ -352,6 +352,90 @@
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% \section{NFSS$B$N(Bsize function$B$NF|K\8l2=(B}
%
% \begin{macro}{\inlist@}
% |\do@subst@correction|$B$NF|K\8l2=$KI,MW$J$N$G!"(B
% $BHf3S$9$k:]$K0z?t!&%j%9%H$H$b(B\cs{detokenize}$B$K$h$C$FJ8;zNs2=$9$k$h$&$K$7$^$7$?!#(B
% \changes{v1.6x}{2020/02/05}{$B0z?t!&%j%9%H$H$b(B\cs{detokenize}$B$K$h$C$FJ8;zNs2=(B}
% \begin{macrocode}
\def\inlist@#1#2{%
\edef\reserved@a{%
\unexpanded{\def\in@@##1<}%
\detokenize{#1}%
\unexpanded{>##2##3\in@@{\ifx\in@##2\in@false\else\in@true\fi}\in@@}%
\detokenize{#2}%
\unexpanded{<}%
\detokenize{#1}%
\unexpanded{>\in@\in@@}}%
\reserved@a}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\do@subst@correction}
% \begin{macro}{\pltx@do@subst@correction@al}
% \begin{macro}{\pltx@do@subst@correction@yoko}
% \begin{macro}{\pltx@do@subst@correction@tate}
% |\font|$B$O2$J8%U%)%s%H$rJV$9$?$a!"(B\LaTeX{}$B$N85$N(B|\do@subst@correction|$B$O(B
% $BOBJ8%U%)%s%H$KBP$7$F;H$($^$;$s$N$G!"OBJ8$KBP1~$5$;$^$9!#(B
% \changes{v1.6x}{2020/02/05}{\cs{do@subst@correction}$B$NF|K\8l2=(B}
%
% $B%*%j%8%J%k$N(B\LaTeX{}$B$NDj5A$O!"2$J8MQ$H$7$F;H$$$^$9!#(B
% \begin{macrocode}
\def\pltx@do@subst@correction@al{%
\xdef\subst@correction{%
\font@name
\global\expandafter\font
\csname \curr@fontshape/\f@size\endcsname
\noexpand\fontname\font
\relax}%
\aftergroup\subst@correction
}
% \end{macrocode}
% $BOBJ82#AHMQ$HOBJ8=DAHMQ$NDj5A$G$O!"$=$l$>$l(B|\jfont|$B$H(B|\tfont|$B$r;H$$$^$9!#(B
% \begin{macrocode}
\def\pltx@do@subst@correction@yoko{%
\xdef\subst@correction{%
\font@name
\global\expandafter\jfont
\csname \curr@fontshape/\f@size\endcsname
\noexpand\fontname\jfont
\relax}%
\aftergroup\subst@correction
}
\def\pltx@do@subst@correction@tate{%
\xdef\subst@correction{%
\font@name
\global\expandafter\tfont
\csname \curr@fontshape/\f@size\endcsname
\noexpand\fontname\tfont
\relax}%
\aftergroup\subst@correction
}
% \end{macrocode}
% $B$=$7$F!"%(%s%3!<%G%#%s%0$K1~$8$F(B3$B$D$NL?Na$r;H$$J,$1$^$9!#(B
% \begin{macrocode}
\def\do@subst@correction{%
\edef\tmp@item{{\f@encoding}}%
\expandafter\expandafter\expandafter
\inlist@\expandafter\tmp@item\expandafter{\kyenc@list}%
\ifin@\pltx@do@subst@correction@yoko
\else
\expandafter\expandafter\expandafter
\inlist@\expandafter\tmp@item\expandafter{\ktenc@list}%
\ifin@\pltx@do@subst@correction@tate\else
\pltx@do@subst@correction@al
\fi
\fi
}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% \section{$B5SCm$N9g0uD>8e$G$N2~9T$r5v2D(B}
%
% 2016/09/03$B$KF3F~:Q$_!#(B
Expand Down

0 comments on commit f8da081

Please sign in to comment.