summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/microtype/microtype.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/microtype/microtype.sty')
-rw-r--r--Master/texmf-dist/tex/latex/microtype/microtype.sty36
1 files changed, 26 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/microtype/microtype.sty b/Master/texmf-dist/tex/latex/microtype/microtype.sty
index 31464240eed..f40ef5ecd60 100644
--- a/Master/texmf-dist/tex/latex/microtype/microtype.sty
+++ b/Master/texmf-dist/tex/latex/microtype/microtype.sty
@@ -29,7 +29,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage
{microtype}
- [2021/02/25 v2.8b
+ [2021/03/14 v2.8c
Micro-typographical refinements
(RS)]
\def\MT@MT
@@ -426,10 +426,12 @@
}\@gobble
}
\def\MT@restore@p@h{\chardef\%`\% \chardef\#`\# }
-\newif\ifMT@xunicode
-\MT@with@package@T{xunicode}\MT@xunicodetrue
\newif\ifMT@fontspec
\MT@with@package@T{fontspec}\MT@fontspectrue
+\newif\ifMT@xunicode
+\MT@with@package@T{xunicode}\MT@xunicodetrue
+\@ifl@t@r\fmtversion{2020/10/01}
+ {\AddToHook{package/after/fontspec}{\MT@fontspectrue}}\relax
\let\MT@maybe@gobble@with@tikz\@firstofone
\def\MT@tikz@setup{%
\def\MT@maybe@gobble@with@tikz{%
@@ -1093,8 +1095,10 @@ time will almost certainly lead to undesired results. Have your choice!}%
\def\MT@is@symbol{%
\expandafter\def\expandafter\MT@char\expandafter
{\csname\MT@encoding\MT@detokenize@c\@tempa\endcsname}%
+ \expandafter\expandafter\expandafter
+ \MT@is@opt@char\MT@char\iffontchar\char\else\fi\relax
\expandafter\MT@exp@two@c\expandafter\MT@is@char\expandafter
- \meaning\expandafter\MT@char\MT@charstring\relax\relax\relax
+ \meaning\expandafter\MT@char\MT@charstring\relax\relax\relax
\ifnum\MT@char@ < \z@
\expandafter\expandafter\expandafter\MT@is@tlig\MT@char\relax\relax
\ifnum\MT@char@ < \z@
@@ -1102,6 +1106,14 @@ time will almost certainly lead to undesired results. Have your choice!}%
\fi
\fi
}
+\def\MT@is@opt@char#1\iffontchar#2\char#3\else#4\fi\relax{%
+ \ifx\\#1\\%
+ \iffontchar#2%
+ \expandafter\chardef
+ \csname\MT@encoding\MT@detokenize@c\@tempa\endcsname=#3\relax
+ \fi
+ \fi
+}
\begingroup
\catcode`\/=\z@
/MT@map@tlist@n{/\CHARLEX}/@makeother
@@ -1144,11 +1156,15 @@ time will almost certainly lead to undesired results. Have your choice!}%
}%
}
/x
-\def\MT@is@tlig#1#2{%
- \ifx#1\remove@tlig
- \MT@is@number #2\relax\relax
+\def\MT@is@tlig#1#2\relax{%
+ \ifx\remove@tlig#1%
+ \MT@remove@tlig
\fi
}
+\def\MT@remove@tlig{%
+ \expandafter\MT@exp@two@c\expandafter\MT@is@number
+ \expandafter\@secondoftwo\MT@char\relax\relax
+}
\def\MT@is@composite#1#2\relax{%
\ifx\\#2\\\else
\expandafter\def\expandafter\MT@char\expandafter{\csname\expandafter
@@ -1169,7 +1185,7 @@ time will almost certainly lead to undesired results. Have your choice!}%
\fi
}
\def\MT@is@uni@comp#1\iffontchar#2\else#3\fi\relax{%
- \ifx\\#2\\\else\edef\MT@char{\iffontchar#2\fi}\fi
+ \ifx\\#1\\\edef\MT@char{\iffontchar#2\fi}\fi
}
\def\MT@set@listname{%
\edef\MT@curr@list@name{\@nameuse{MT@abbr@\MT@feat} list\noexpand\MessageBreak
@@ -1557,10 +1573,10 @@ time will almost certainly lead to undesired results. Have your choice!}%
^^X \def\MT@get@size@{%
^^X \@tempcnta=\currentiflevel
^^X \MT@get@size@@
-^^X \loop
+^^X \MT@loop
^^X \ifnum\numexpr\currentiflevel-1>\@tempcnta
^^X \csname fi\endcsname
-^^X \repeat
+^^X \MT@repeat
^^X }%
^^X}{%
\let\MT@get@size@\MT@get@size@@