diff options
Diffstat (limited to 'macros/latex/contrib/microtype/microtype.dtx')
-rw-r--r-- | macros/latex/contrib/microtype/microtype.dtx | 43 |
1 files changed, 32 insertions, 11 deletions
diff --git a/macros/latex/contrib/microtype/microtype.dtx b/macros/latex/contrib/microtype/microtype.dtx index db89547894..cfa8994833 100644 --- a/macros/latex/contrib/microtype/microtype.dtx +++ b/macros/latex/contrib/microtype/microtype.dtx @@ -37,7 +37,7 @@ %<lua-> {microtype-luatex.def} %<xe-> {microtype-xetex.def} %<*package|letterspace|m-t|pdf-|lua-|xe-|show> - [2023/03/06 v3.1 + [2023/03/13 v3.1a %<package> Micro-typographical refinements %<letterspace> Robust letterspacing %<show> Visual debugging for the microtype package @@ -52,8 +52,8 @@ %<luafile>local microtype = microtype %<luafile>microtype.module = { %<luafile> name = "microtype", -%<luafile> version = "3.1", -%<luafile> date = "2023/03/06", +%<luafile> version = "3.1a", +%<luafile> date = "2023/03/13", %<luafile> description = "microtype module.", %<luafile> author = "E. Roux, R. Schlicht and P. Gesang", %<luafile> copyright = "E. Roux, R. Schlicht and P. Gesang", @@ -3086,7 +3086,7 @@ %\microtypesetup{nopatch={eqnum}} %\end{verbatim} % -%% \item +% \item %\begin{verbatim} %! Font csnameendcsname=<cmr10+20 at 10.0pt> not loadable: Metric (TFM) file not found. %\end{verbatim} @@ -3510,6 +3510,8 @@ %\begin{History} % %\Version{\expandafter\@gobble\fileversion}{\filedate} +% +%\Version{3.1}{2023/03/06} % \item New command \cs{DeclareMicrotypeFilePrefix} to change the prefix of the % configuration files \refsection{\ref{sub:config-file}} % \item New protrusion patch |verbatim| to switch off protrusion @@ -8553,6 +8555,7 @@ time will almost certainly lead to undesired results. Have your choice!}% % and which we trial-typeset without any contents. % \begin{macrocode} \def\MT@prot@check@E{% + \the\MT@toks \def\MT@temp*##1{\MT@prot@l{##1}}% } % \end{macrocode} @@ -8563,6 +8566,7 @@ time will almost certainly lead to undesired results. Have your choice!}% % Same for starred commands (the main candidate here is \pkg{csquotes}'s \cmd\enquote). % \begin{macrocode} \def\MT@prot@check@e{% + \the\MT@toks \def\MT@temp*##1{\@ifstar{\MT@prot@l{##1*}}{\MT@prot@l{##1}}}% } % \end{macrocode} @@ -8573,9 +8577,11 @@ time will almost certainly lead to undesired results. Have your choice!}% % Here we replace the `integrated interface' (\pkg{csquotes}) with the regular one. % \begin{macrocode} \def\MT@prot@check@eX#1{% + \the\MT@toks \def\MT@temp*##1{\@ifstar {\MT@get@prot{#1*}{left}##1*} - {\MT@get@prot{#1}{left}##1}}} + {\MT@get@prot{#1}{left}##1}}% +} % \end{macrocode} %\end{macro} % \item @@ -8587,8 +8593,12 @@ time will almost certainly lead to undesired results. Have your choice!}% % (the language) we also have to evaluate before trial typesetting. % \begin{macrocode} \def\MT@prot@check@l{% - \def\MT@temp*##1{\@ifstar{\MT@prot@check@l@{##1*}}{\MT@prot@check@l@{##1}}}} -\def\MT@prot@check@l@#1#2{\MT@prot@l{#1{#2}}} + \def\MT@temp*##1{\@ifstar{\MT@prot@check@l@{##1*}}{\MT@prot@check@l@{##1}}}% +} +\def\MT@prot@check@l@#1#2{% + \the\MT@toks + \MT@prot@l{#1{#2}}% +} % \end{macrocode} %\end{macro} %\end{macro} @@ -8602,19 +8612,27 @@ time will almost certainly lead to undesired results. Have your choice!}% \def\MT@prot@check@lX#1{% \def\MT@temp*##1{\@ifstar {\def\MT@temp{##1*}\MT@prot@check@lX@{#1*}} - {\def\MT@temp{##1}\MT@prot@check@lX@{#1}}}} + {\def\MT@temp{##1}\MT@prot@check@lX@{#1}}}% +} \def\MT@prot@check@lX@#1#2{% - \MT@get@prot{#1{#2}}{left}\MT@temp{#2}} + \the\MT@toks + \MT@get@prot{#1{#2}}{left}\MT@temp{#2}% +} % \end{macrocode} %\end{macro} %\end{macro} % \item %\begin{macro}{\MT@prot@check@F} %\changes{v3.1}{2022/03/06}{new macro: for text commands} +%\changes{v3.1a}{2022/03/12}{fix: execute (and empty) \cs{MT@toks} +% (reported by \contributor Artur A. Marczok <marczok\at t-online.de>)} +% ^^A private mail, 2023/03/12 % Here we deal with \textbf{F}ont switching commands (\ie, text commands, % which take an argument). % We (a) remember the text command, (b) save the full text, % and then (c) continue inspecting the contents of the argument. +% We also have to execute (and empty) \cs{MT@toks}, because it might +% already contain other commands. % Nested text commands still don't work. % \begin{macrocode} \def\MT@prot@check@F{% @@ -8624,8 +8642,11 @@ time will almost certainly lead to undesired results. Have your choice!}% \let\MT@prot@l\MT@prot@l@tc \def\MT@temp*##1##2{% \let\MT@maybe@textcmd##1% + \the\MT@toks + \MT@toks{}% \MT@prot@toks{##1{##2}}% - \MT@prot@get@firstgroup@tc##2\MT@nil}% + \MT@prot@get@firstgroup@tc##2\MT@nil + }% \fi } % \end{macrocode} @@ -20326,7 +20347,7 @@ This is the current font stretched by 5\%, normal, and shrunk by 5\%: % Grave accent \` Left brace \{ Vertical bar \| % Right brace \} Tilde \~} % -% \CheckSum{12962} +% \CheckSum{12975} % % \Finale % |