summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/microtype/microtype-luatex.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/microtype/microtype-luatex.def')
-rw-r--r--Master/texmf-dist/tex/latex/microtype/microtype-luatex.def30
1 files changed, 20 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/microtype/microtype-luatex.def b/Master/texmf-dist/tex/latex/microtype/microtype-luatex.def
index 968ba9fd7ca..08daa2166eb 100644
--- a/Master/texmf-dist/tex/latex/microtype/microtype-luatex.def
+++ b/Master/texmf-dist/tex/latex/microtype/microtype-luatex.def
@@ -10,7 +10,7 @@
%%
%% The `microtype' package
%% Subliminal refinements towards typographical perfection
-%% Copyright (c) 2004--2018 R Schlicht <w.m.l@gmx.net>
+%% Copyright (c) 2004--2019 R Schlicht <w.m.l@gmx.net>
%%
%% This work may be distributed and/or modified under the conditions of the
%% LaTeX Project Public License, either version 1.3c of this license or (at
@@ -30,7 +30,7 @@
%%
\ProvidesFile
{microtype-luatex.def}
- [2019/02/28 v2.7b
+ [2019/10/10 v2.7c
Definitions specific to
luatex
(RS)]
@@ -1152,14 +1152,24 @@
\MT@check@step{stretch}%
\MT@check@step{shrink}%
\MT@check@active@set{ex}%
- \CheckCommand*\showhyphens[1]{\setbox0\vbox{%
- \color@begingroup\everypar{}\parfillskip\z@skip
- \hsize\maxdimen\normalfont\pretolerance\m@ne\tolerance\m@ne
- \hbadness\z@\showboxdepth\z@\ ##1\color@endgroup}}%
- \gdef\showhyphens##1{\setbox0\vbox{%
- \color@begingroup\pdfadjustspacing\z@\everypar{}\parfillskip\z@skip
- \hsize\maxdimen\normalfont\pretolerance\m@ne\tolerance\m@ne
- \hbadness\z@\showboxdepth\z@\ ##1\color@endgroup}}%
+ \MT@ifdefined@n@TF{showhyphens }{%
+ \def\MT@temp##1##2{%
+ \expandafter\CheckCommand\csname showhyphens \endcsname[1]{##1}%
+ \DeclareRobustCommand\showhyphens[1]{##2}}%
+ }{%
+ \def\MT@temp##1##2{%
+ \CheckCommand*\showhyphens[1]{##1}%
+ \gdef\showhyphens####1{##2}}%
+ }%
+ \MT@temp
+ {\setbox0\vbox{\color@begingroup
+ \everypar{}\parfillskip\z@skip
+ \hsize\maxdimen\normalfont\pretolerance\m@ne\tolerance\m@ne
+ \hbadness\z@\showboxdepth\z@\ ##1\color@endgroup}}
+ {\setbox0\vbox{\color@begingroup\pdfadjustspacing\z@
+ \everypar{}\parfillskip\z@skip
+ \hsize\maxdimen\normalfont\pretolerance\m@ne\tolerance\m@ne
+ \hbadness\z@\showboxdepth\z@\ ##1\color@endgroup}}%
\else
\let\MT@expansion\relax
\MT@info@nl{No font expansion}%