summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/microtype/microtype.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-01-15 22:21:32 +0000
committerKarl Berry <karl@freefriends.org>2018-01-15 22:21:32 +0000
commitb198b0b1f82978c1347030bf5679b0cf50a48356 (patch)
tree89c6575da372b96d5d4b82f1b1d533c3fb793a85 /Master/texmf-dist/source/latex/microtype/microtype.dtx
parent3327506128837caae25f9a61112667de55078b85 (diff)
microtype (15jan18)
git-svn-id: svn://tug.org/texlive/trunk@46323 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/microtype/microtype.dtx')
-rw-r--r--Master/texmf-dist/source/latex/microtype/microtype.dtx209
1 files changed, 132 insertions, 77 deletions
diff --git a/Master/texmf-dist/source/latex/microtype/microtype.dtx b/Master/texmf-dist/source/latex/microtype/microtype.dtx
index 06ebb509344..cef547d0385 100644
--- a/Master/texmf-dist/source/latex/microtype/microtype.dtx
+++ b/Master/texmf-dist/source/latex/microtype/microtype.dtx
@@ -1,12 +1,11 @@
%\iffalse meta-comment
-% ^^A messages to WinEdt:
% !Mode:: "TeX:DTX:UK"
% !smartQuote:: "English"
-% !DTXversion:: "2.7"
+% !DTXversion:: "2.7a"
% ------------------------------------------------------------------------
% The `microtype' package
% Subliminal refinements towards typographical perfection
-% Copyright (c) 2004--2017 R Schlicht <w.m.l@gmx.net>
+% Copyright (c) 2004--2018 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
@@ -38,7 +37,7 @@
%<luatex-def> {microtype-luatex.def}
%<xetex-def> {microtype-xetex.def}
%<*package|letterspace|m-t|pdftex-def|luatex-def|xetex-def>
- [2017/07/07 v2.7
+ [2018/01/14 v2.7a
%<package> Micro-typographical refinements
%<letterspace> Robust letterspacing
%<m-t> microtype main configuration file
@@ -52,8 +51,8 @@
%<luafile>local microtype = microtype
%<luafile>microtype.module = {
%<luafile> name = "microtype",
-%<luafile> version = "2.7",
-%<luafile> date = "2017/07/07",
+%<luafile> version = "2.7a",
+%<luafile> date = "2018/01/14",
%<luafile> description = "microtype module.",
%<luafile> author = "E. Roux, R. Schlicht and P. Gesang",
%<luafile> copyright = "E. Roux, R. Schlicht and P. Gesang",
@@ -559,7 +558,7 @@
pdfkeywords={TeX, LaTeX, pdfTeX, LuaTeX, XeTeX, typography, micro-typography,
character protrusion, margin kerning, optical alignment, font expansion,
font scaling, hz, kerning, spacing, glue, letterspacing, tracking, ligatures},
- pdfcopyright={\textcopyright\ 2004--2017 R Schlicht\012%
+ pdfcopyright={\textcopyright\ 2004--2018 R Schlicht\012%
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 your option) any later version.\012%
@@ -601,7 +600,7 @@
{\texttt{w.m.l@gmx.net}}}
% the samples in the introduction, utilising nested optional content groups (aka. layers):
\ifnum\pdftexversion<140 \else
- \def\mt@layer#1#2{\pdfliteral direct{/OC/#1 BDC}#2\pdfliteral direct{EMC}}
+ \def\mt@layer#1#2{\pdfliteral page{/OC/#1 BDC}#2\pdfliteral page{EMC}}
\ifx\mt@objects\@undefined\let\mt@objects\@empty\fi
\ifx\mt@order \@undefined\let\mt@order \@empty\fi
\let\mt@resources\@empty
@@ -802,7 +801,7 @@
% other extensions (see section~\ref{sec:lettersp}).
%
%\bigskip\noindent
-% This package is copyright \textcopyright\ 2004\kern.09em--2017 R Schlicht.
+% This package is copyright \textcopyright\ 2004\kern.09em--2018 R Schlicht.
% It may be distributed and/or modified under the conditions of the
% \IfFileExists{lppl.tex}{\hyperref[LPPL:LPPL]}{\href{http://www.latex-project.org/lppl/}}
% {\LaTeX\ Project Public License},
@@ -887,7 +886,7 @@
% typography to add a small space before question mark, exclamation mark and
% semi-colon, and a bigger space before the colon and the guillemets. Until
% now, this could only be achieved by making these characters active (as is done,
-% for example, the \pkg{babel} package), which may not always be a robust
+% for example, by the \pkg{babel} package), which may not always be a robust
% solution. In contrast to the standard kerning built into the fonts
% (which will of course apply as usual), this additional kerning relates to
% single characters, not to character pairs.
@@ -905,7 +904,7 @@
% improvements. I suggest reading the reasoning behind the settings in
% section~\ref{sub:conf-spacing}.
%
-% The possibility, finally, to \emph{disable all ligatures} in a font is
+% The possibility, finally, to \emph{disable all or selected ligatures} is
% particularly useful for typewriter fonts.
%
%\emptypdfpageresources ^^A layers of the sample
@@ -1124,9 +1123,9 @@
% \label{sub:options-expansion}
%
%\Describe{Option}{auto}{*true,false}
-% Beginning with version \pdftex\ 1.20 (and with \luatex), the expanded
+% Beginning with \pdftex\ version 1.20 (inherited by \luatex), the expanded
% instances of the fonts may be calculated automatically and at run-time instead
-% of the user having to prepare the instances in advance. This option is true
+% of the user having to prepare them in advance. This option is true
% by default provided that you are using a \TeX\ engine with this capability
% and the output mode is <PDF>.
% If \opt{auto} is set to false, the font instances for all expansion steps must exist
@@ -1139,7 +1138,6 @@
%
%\changes{v1.9}{2005/08/27}{add remark about Type\,1 fonts required for
% automatic font expansion}
-%\changes{v2.7}{2017/07/06}{add remark about automatic font expansion with \texttt{dvilualatex}}
% With \pdftex, automatic font expansion does not work with bitmap fonts. Therefore, if you
% are using the Computer Modern Roman fonts in <T1> encoding,
%\iffalse
@@ -1148,10 +1146,12 @@
% no other way related than that both start with a `T' and end with a `1'.}
%\fi
% you should either install the \pkg{cm-super} fonts or use the Latin Modern
-% fonts (package \pkg{lmodern}). With \luatex, automatic expansion even works
-% in <DVI> mode, however, because postprocessing programs like |dvips| or
-% |dvipdfmx| are (at the moment of this writing) not capable of dealing with
-% OpenType fonts, only for legacy fonts.
+% fonts (package \pkg{lmodern}).
+%\changes{v2.7}{2017/07/06}{add remark about automatic font expansion with \texttt{dvilualatex}}
+% With \luatex, expansion is always automatic, and also works in <DVI> mode
+% (|dvilualatex|), however, because postprocessing programs like |dvips|
+% or |dvipdfmx| are not (yet) capable of dealing with OpenType fonts,
+% only for legacy fonts.
%
%\medskip
%\Describe{Option}{stretch}{:integer}[20]
@@ -1201,7 +1201,7 @@
% to +1000.
%
%
-%\enlargethispage{2\baselineskip} ^^A layout
+%\enlargethispage{\baselineskip} ^^A layout
%\subsection{Miscellaneous options}\label{sub:options-misc}
%
%\Describe{Option}{DVIoutput}{true,*false}
@@ -1223,7 +1223,7 @@
% -- in the latter case, the \opt{DVIoutput} option is redundant.
%
% When generating <DVI> files, font expansion has to be enabled explicitly.
-% Neither letterspacing nor \emph{automatic} font expansion will work because
+% With \pdftex, neither letterspacing nor \emph{automatic} font expansion will work because
% the postprocessing drivers (|dvips|, |dvipdfm|, etc.) resp. the <DVI> viewer
% are not able to generate the fonts on the fly.
%
@@ -1333,8 +1333,8 @@
%
% \paragraph{The set of fonts} is specified by assigning values to the <NFSS>
% font attributes: encoding, family, series, shape and size (cf.~\cite{fntguide}).
-% Let's start with an example. This package defines a font set called
-% `|basictext|' in the main configuration file as follows:
+% Let's start with an example. In the main configuration file \file{microtype.cfg},
+% a font set called `|basictext|' is defined as follows:
%\begin{verbatim}
%\DeclareMicrotypeSet{basictext}
% { encoding = {OT1,T1,T2A,LY1,OT4,QX,T5,EU1,EU2,TU},
@@ -1936,7 +1936,7 @@
% kerning after the apostrophe, `|l'apos\-trophe|'.
%\changes{v2.7}{2016/10/16}{mention that additional kerning does not work in math mode
% (discovered by `\contributor Daniel <@\at @>')}
-% ^^A http://tex.stackexchange.com/questions/332695/microtype-kerning-in-math-mode-with-mathdesign-charter
+% ^^A https://tex.stackexchange.com/questions/332695/microtype-kerning-in-math-mode-with-mathdesign-charter
% Furthermore, additional kerning will not be applied in math mode.
% These restrictions of \pdftex\ will hopefully be lifted some time.
%
@@ -2470,10 +2470,10 @@
%\paragraph{Don't use font expansion for web documents (with older \pdftex\ versions).}
% With \pdftex\ versions older than 1.40, each expanded instance of the font
% will be embedded in the <PDF> file, hence the file size may increase by quite
-% large a factor (depending on expansion limits and step). Therefore, courtesy
+% a large factor (depending on expansion limits and step). Therefore, courtesy
% and thriftiness of bandwidth command it not to enable font expansion when
-% creating files to be distributed electronically. With \pdftex\ 1.40, which
-% uses a different technique of expansion, the file size increase can be
+% creating files to be distributed electronically. With \pdftex\ 1.40 and \luatex, which
+% use a different technique of expansion, the increase of file size can be
% neglected.
%
%\changes{v2.2}{2007/07/06}{add hint about extra <TOC> leader dot
@@ -2605,7 +2605,7 @@
%\end{verbatim}
% This error message will occur if you are trying to employ font expansion
% while creating <DVI> output. Remember that \emph{automatic} font expansion
-% only works when running \pdftex\ or \luatex\ in <PDF> mode. Although expansion is also
+% only works when running \pdftex\ in <PDF> mode. Although expansion is also
% possible in <DVI> mode, it requires that all instances of the expanded fonts
% exist on your \TeX\ system.
%
@@ -2724,8 +2724,8 @@
% Furthermore, I thank him for helping me to improve this package, and not
% least for promoting it in \cite{ThanhPracTeX}, \cite{ThanhEuroTeX07} and ^^A comma, to avoid the Three Ands Falls
% elsewhere. I also thank him and the rest of the \pdftex\ team, and more
-% recently also the \luatex\ team, for refuting the idea that \TeX\ is dead,
-% and for fixing the bugs I find.
+% recently also the \luatex\ and \xetex\ teams, for refuting the idea that
+% \TeX\ is dead, and for fixing the bugs I find.
%
% \contributor Harald Harders <h.harders\at tu-bs.de>
% has contributed protrusion settings for Adobe Minion. I~would also like to
@@ -2772,7 +2772,7 @@
%
% Additionally, the following people have reported bugs, made suggestions or
% helped otherwise (in chronological order, quotes indicate
-% \href{http://tex.stackexchange.com/users/}{TeX.SX} user names):
+% \href{https://tex.stackexchange.com/users/}{TeX.SX} user names):\linebreak
% \contributor Tom Kink <kink\at hia.rwth-aachen.de>,
% \contributor Herb Schulz <herbs\at wideopenwest.com>,
% \contributor Michael Hoppe <mh\at michael-hoppe.de>,
@@ -2846,8 +2846,9 @@
% `\contributor Daniel <@\at @>', ^^A https://tex.stackexchange.com/users/113787/daniel
% `\contributor ltcomdata <@\at @>', ^^A https://tex.stackexchange.com/users/17061/ltcomdata
% \contributor Reinhard Kotucha <reinhard.kotucha\at web.de>,
+% `\contributor jcr <@\at @>', ^^A https://tex.stackexchange.com/users/56514/jcr
% and
-% `\contributor jcr <@\at @>'. ^^A https://tex.stackexchange.com/users/56514/jcr
+% \contributor Nils Anders Danielsson <nad\at cse.gu.se>.
%
%
%\iffalse
@@ -2937,9 +2938,9 @@
% \newblock (\ctanurl{macros/latex/doc/fntguide.pdf})
%
% \bibitem[\pkg{fontspec}]{fontspec}
-% Will Robertson, Khaled Hosny,
+% Will Robertson,
% \emph{The \pkg{fontspec} package: Font selection for \xe\LaTeX\ and Lua\LaTeX},
-% \newblock 31 March 2017.
+% \newblock 9~September 2017.
% \newblock (\ctanpkgurl{fontspec})
%
% \bibitem[\pkg{luaotfload}]{luaotfload}
@@ -2996,7 +2997,9 @@
%
%\begin{History}
%
-%\Version{\expandafter\@gobble\fileversion}{\filedate}
+%\VersionDate{\expandafter\@gobble\fileversion}{\filedate}
+%
+%\Version{2.7}{2017/07/07}
% \item Allow automatic expansion and letterspacing with \luatex\ in <DVI> mode
% (aka. \texttt{dvilualatex})
% \refsection{\ref{sub:options-microtype}, \ref{sub:options-expansion}, table~\ref{tab:available-features}}
@@ -3165,7 +3168,7 @@
%^^A \refsection{\ref{sec:fine-tuning}}
% \item New command \cs{LoadMicrotypeFile} to load a configuration file manually
% \refsection{\ref{sub:config-file}}
-% \item Hook \cs{Microtype@Hook} for font package authors
+% \item New command \cs{Microtype@Hook} for font package authors
% \refsection{\ref{sub:hook}}
% \item New option `\opt{verbose}|=errors|' to turn all warnings into errors
%^^A \item Disable expansion inside \cmd\showhyphens
@@ -3265,9 +3268,7 @@
% \appendix
% \AppendixSettings
% \fi
-% \typeout{:?1000} ^^A tell WinEdt not to bother about overfull boxes
% \PrintIndex
-% \typeout{:?1111}
% \InputIfFileExists{lppl.tex}\LPPLSettings\relax
%}
%
@@ -5295,7 +5296,7 @@ microtype.do_font = do_font
% and \pkg{mathastext}.
%\changes{v2.5}{2011/07/29}{restore \cmd\% and \cmd\# when \pkg{mathastext} is loaded
% (found by \contributor Seamus Bradley <@\at @>)}
-% ^^A http://tex.stackexchange.com/questions/24248
+% ^^A https://tex.stackexchange.com/questions/24248
% ^^A (beta:07)
% \begin{macrocode}
\MT@if@false
@@ -5337,7 +5338,7 @@ time will almost certainly lead to undesired results. Have your choice!}%
%\changes{v2.6}{2014/03/17}{redefine \cs{MT@setupfont@hook} globally
% for problem with \pkg{tikzposter}
% (reported by \contributor Sam Mason <sam\at samason.me.uk>)}
-% ^^A http://tex.stackexchange.com/questions/165846/
+% ^^A https://tex.stackexchange.com/questions/165846/
% \begin{macrocode}
\MT@glet\MT@setupfont@hook\@empty
\ifMT@fontspec
@@ -5545,6 +5546,7 @@ time will almost certainly lead to undesired results. Have your choice!}%
%<debug>\MT@show@pdfannot2%
\else
\MT@vinfo{Setting up font `\MT@@font'\on@line}%
+ \MT@info@notracking
% \end{macrocode}
% Now we can begin setting up the font for all features that the current
% \pdftex\ provides. The following commands are \cmd\let\ to \cmd\relax\ if the
@@ -5779,13 +5781,25 @@ time will almost certainly lead to undesired results. Have your choice!}%
\def\MT@feat{#1}%
\csname MT@set@#1@codes\endcsname
\else
- \MT@vinfo{... No \@nameuse{MT@abbr@#1}}%
+ \MT@ifstreq{#1}{tr}%
+ {\let\MT@info@notracking\MT@info@notracking@}%
+ {\MT@vinfo{... No \@nameuse{MT@abbr@#1}}}%
\fi
}
% \end{macrocode}
%\end{macro}
%\end{macro}
%\end{macro}
+%\begin{macro}{\MT@info@notracking}
+%\begin{macro}{\MT@info@notracking@}
+%\changes{v2.7a}{2017/11/17}{defer `No tracking' message}
+% To defer the message to after the font has actually been logged.
+% \begin{macrocode}
+\let\MT@info@notracking\relax
+\def\MT@info@notracking@{\MT@vinfo{... No tracking}}
+% \end{macrocode}
+%\end{macro}
+%\end{macro}
%\begin{macro}{\MT@dinfo@list}
% \begin{macrocode}
%<debug>\def\MT@dinfo@list#1#2#3{\MT@dinfo@nl{1}{\@nameuse{MT@abbr@#1}: #2
@@ -6014,7 +6028,7 @@ time will almost certainly lead to undesired results. Have your choice!}%
%\changes{v2.5}{2011/08/19}{fix: remove space
% (found by \contributor Meho~R <meho.2005\at gmail.com>)}
% ^^A MID: <b3c1627e-192f-4004-ab46-4ea86925e298@dc3g2000vbb.googlegroups.com>
-% ^^A http://tex.stackexchange.com/questions/25036/microtype-package-v-2-5-beta-06-and-footnote-protrusion
+% ^^A https://tex.stackexchange.com/questions/25036/microtype-package-v-2-5-beta-06-and-footnote-protrusion
% ^^A (beta:08)
% \begin{macrocode}
\def\MT@set@all@pr#1#2{%
@@ -6589,7 +6603,7 @@ time will almost certainly lead to undesired results. Have your choice!}%
\let\MT@stretch@ \MT@stretch
\let\MT@shrink@ \MT@shrink
\let\MT@step@ \MT@step
- \let\MT@auto@ \MT@auto
+%<pdftex-def> \let\MT@auto@ \MT@auto
\let\MT@ex@factor@\MT@ex@factor
}%
\MT@reset@ef@codes
@@ -6709,8 +6723,8 @@ time will almost certainly lead to undesired results. Have your choice!}%
\MT@get@ex@opt@{stretch}{Setting stretch limit to \number\MT@stretch@}%
\MT@get@ex@opt@{shrink} {Setting shrink limit to \number\MT@shrink@}%
\MT@get@ex@opt@{step} {Setting expansion step to \number\MT@step@}%
- \def\@tempa{autoexpand}%
- \MT@get@ex@opt@{auto}{\ifx\@tempa\MT@auto@ En\else Dis\fi abling automatic expansion}%
+%<pdftex-def> \def\@tempa{autoexpand}%
+%<pdftex-def> \MT@get@ex@opt@{auto}{\ifx\@tempa\MT@auto@ En\else Dis\fi abling automatic expansion}%
\MT@ifdefined@n@T{MT@ex@c@\MT@ex@c@name @preset}{%
\MT@preset@ex
\let\MT@reset@ef@codes\relax
@@ -7222,7 +7236,7 @@ time will almost certainly lead to undesired results. Have your choice!}%
%\begin{macro}{\MT@afteraftergroup}
% This helper macro carries stuff outside of the current group to the end of
% the next group, but will then respect grouping, which is crucial for nested
-% letterspacing. (Following an idea of Will Robertson.)^^A http://tex.stackexchange.com/a/56319
+% letterspacing. (Following an idea of Will Robertson.)^^A https://tex.stackexchange.com/a/56319
%\changes{v2.5a}{2013/05/15}{fix: get outer kerning and spacing of nested letterspacing right}
% \begin{macrocode}
\def\MT@afteraftergroup#1{%
@@ -7341,9 +7355,9 @@ time will almost certainly lead to undesired results. Have your choice!}%
% Only \cs{textls} can be used in math mode (\cs{lsstyle} may be used inside
% another text switch, of course).
%\changes{v2.5}{2012/11/14}{fix: ensure to set up math fonts (reported by \contributor RazorXsr <@\at @>)}
-% ^^A http://tex.stackexchange.com/questions/82686/settracking-in-the-math-environment
+% ^^A https://tex.stackexchange.com/questions/82686/settracking-in-the-math-environment
%\changes{v2.6}{2014/09/07}{fix: ensure to set up math fonts (reported by \contributor kleenstar <@\at @>)}
-% ^^A http://tex.stackexchange.com/questions/187655/microtype-gives-wrong-letterspacing-in-math-mode
+% ^^A https://tex.stackexchange.com/questions/187655/microtype-gives-wrong-letterspacing-in-math-mode
% Still, we have to ensure that math fonts are set up again.
%\changes{v2.7}{2016/08/03}{fix: prevent infinite loop with \pkg{psnfss} and \pkg{exscale} packages
% (reported by \contributor user11126 <@\at @>,
@@ -7723,11 +7737,11 @@ time will almost certainly lead to undesired results. Have your choice!}%
%\begin{macro}{\MT@xspace}
%\changes{v2.5a}{2013/05/15}{fix \texttt{outer spacing} problem with \pkg{xspace}
% (reported by \contributor Dave <@\at @>)}
-% ^^A http://tex.stackexchange.com/questions/59655
+% ^^A https://tex.stackexchange.com/questions/59655
%\changes{v2.6}{2014/11/22}{fix \texttt{outer spacing} problem with (not only) \pkg{algorithm}
% (reported by \contributor Henning <@\at @>
% and \contributor Ronnie Marksch <Ronnie.Marksch\at yahoo.de>)}
-% ^^A http://tex.stackexchange.com/questions/213164
+% ^^A https://tex.stackexchange.com/questions/213164
% ^^A MID: <mk1sqc$jve$1@speranza.aioe.org>
%\begin{macro}{\MT@xspace@}
% If the group is followed by \cmd\xspace, we first feed \cmd\xspace\ with the
@@ -8460,6 +8474,13 @@ end
% \begin{macrocode}
\MT@toks=\expandafter{\@tempa}%
% \end{macrocode}
+%\changes{v1.8}{2005/03/30}{fix: expand active characters}
+%\changes{v2.7a}{2018/01/12}{expand active characters earlier}
+% \item It might be an active character, \ie, an 8-bit character defined by
+% \pkg{inputenc}. If so, we will expand it here to its <LICR> form.
+% \begin{macrocode}
+ \MT@exp@two@c\MT@is@active\string\@tempa\@nil
+% \end{macrocode}
% Now, let's walk through (hopefully) all possible cases.
%\begin{itemize}
% \item It's a letter, a character or a number.
@@ -8467,12 +8488,6 @@ end
\expandafter\MT@is@letter\@tempa\relax\relax
\ifnum\MT@char@ < \z@
% \end{macrocode}
-%\changes{v1.8}{2005/03/30}{fix: expand active characters}
-% \item It might be an active character, \ie, an 8-bit character defined by
-% \pkg{inputenc}. If so, we will expand it here to its <LICR> form.
-% \begin{macrocode}
- \MT@exp@two@c\MT@is@active\string\@tempa\@nil
-% \end{macrocode}
% \item OK, so it must be a macro. We do not allow random commands but only
% those defined in \LaTeX's idiosyncratic font encoding scheme:
%
@@ -8823,13 +8838,20 @@ end
% \begin{macrocode}
\MT@ifdefined@c@T\PrerenderUnicode
{\PrerenderUnicode{\@tempa}\let\unicode@charfilter\@firstofone}%
+% \end{macrocode}
+% The \cmd\expandafter\ hocus-pocus should please \pkg{newunicodechar}.
+%\changes{v2.7a}{2017/11/25}{compatibility with \pkg{newunicodechar}
+% (reported by \contributor Nils Anders Danielsson <nad\at cse.gu.se>)}
+% ^^A private mail, 2017/09/05
+% \begin{macrocode}
\edef\x{\endgroup
- \def\noexpand\@tempa{\@tempa}%
+ \def\noexpand\@tempa{\expandafter\expandafter\expandafter\@empty\@tempa}%
% \end{macrocode}
% Append what we think the translation is to the token register we use for the
% log.
% \begin{macrocode}
- \MT@toks={\the\MT@toks\space(= \@tempa)}%
+ \MT@toks={\the\MT@toks\space(=
+ \expandafter\expandafter\expandafter\@empty\@tempa)}%
}%
\x
\fi
@@ -9172,13 +9194,13 @@ end
% commands but only (Unicode) letters.
%\changes{v2.6}{2015/12/05}{(in)compatibility with \pkg{luatexja}: disable unknown slots warnings
% (reported by \contributor Max <@\at @>)}
-% ^^A http://tex.stackexchange.com/questions/272102/luatexja-with-microtype-generates-lots-of-warnings
+% ^^A https://tex.stackexchange.com/questions/272102/luatexja-with-microtype-generates-lots-of-warnings
% The \pkg{xeCJK} package, or rather its \pkg{xunicode-addon}, also modifies the way
% text symbols are defined (like \pkg{luatexja} but in a different way).
% Again, we only issue a warning.
%\changes{v2.6}{2015/11/03}{(in)compatibility with \pkg{xeCJK}: disable unknown slots warnings
% (reported by \contributor HcN <@\at @>)}
-% ^^A http://tex.stackexchange.com/questions/275653/warning-using-microtype-and-excjk-packages
+% ^^A https://tex.stackexchange.com/questions/275653/warning-using-microtype-and-excjk-packages
% \begin{macrocode}
%<package> \MT@with@package@T{luatexja}{\MT@warn@unknown@once{luatexja}}%
%<package> \MT@with@package@T{xeCJK} {\MT@warn@unknown@once{xeCJK}}%
@@ -9482,7 +9504,7 @@ end
% \end{macrocode}
% We need to ensure that math fonts are set up anew.
%\changes{v2.5}{2012/11/13}{fix: ensure to set up math fonts (reported by \contributor RazorXsr <@\at @>)}
-% ^^A http://tex.stackexchange.com/questions/82556/pdftex-font-expansion-error-setexpansion-in-microtype-package
+% ^^A https://tex.stackexchange.com/questions/82556/pdftex-font-expansion-error-setexpansion-in-microtype-package
% \begin{macrocode}
\MT@glet\glb@currsize\@empty
\setkeys{MTC}{#1}%
@@ -9727,7 +9749,15 @@ end
% And `|family = *|' will become \cmd\familydefault.
% \begin{macrocode}
\MT@ifempty\@tempa{\def\@tempa{#1}}\relax
- \edef\MT@val{\expandafter\noexpand\csname \@tempa default\endcsname}%
+% \end{macrocode}
+% Test whether the command is actually defined.
+%\changes{v2.7a}{2017/11/17}{test whether \cs{\dots default} is defined}
+% \begin{macrocode}
+ \MT@ifdefined@n@TF{\@tempa default}%
+ {\edef\MT@val{\expandafter\noexpand\csname \@tempa default\endcsname}}%
+ {\MT@warning{`\@backslashchar\@tempa default' is not a defined command.\MessageBreak
+ Ignoring `#1 = {\@tempa*}' in font set\MessageBreak`\MT@curr@set@name'}%
+ \let\MT@val\@empty}%
% \end{macrocode}
% In contrast to earlier version, these values will not be expanded immediately
% but at the end of the preamble.
@@ -9793,8 +9823,8 @@ end
% Font sizes may also be specified as ranges. This has been requested by Andreas
% B\"uhmann, who has also offered valuable help in implementing this. Now, it
% is for instance possible to set up different lists for fonts with optical
-% sizes. (The MinionPro project is trying to do this for the OpenType version
-% of Adobe's Minion. See \url{http://developer.berlios.de/projects/minionpro/}.)
+% sizes. (The \pkg{MinionPro} project does this for the OpenType version
+% of Adobe's Minion. (\ctanpkgurl{minionpro}))
%
%\begin{macro}{\MT@get@range}
%\begin{macro}{\MT@upper}
@@ -10817,18 +10847,25 @@ end
% Don't use |autoexpand| for \pdftex\ version older than 1.20.
%\changes{v1.7}{2005/03/07}{fix: remove space after \texttt{autoexpand}}
%\changes{v1.7}{2005/03/07}{disallow automatic expansion if \pdftex\ too old}
+%\changes{v2.7a}{2017/08/08}{disallow non-automatic expansion with \luatex}
% \begin{macrocode}
-%<pdftex-def> \MT@requires@pdftex4{%
- \MT@gdef@n{MT@ex@c@\MT@curr@set@name @auto}{autoexpand}%
%<*pdftex-def>
+ \MT@requires@pdftex4{%
+ \MT@gdef@n{MT@ex@c@\MT@curr@set@name @auto}{autoexpand}%
}{%
\MT@warning{pdftex too old for automatic font expansion}%
}
%</pdftex-def>
\else
-%<pdftex-def> \MT@requires@pdftex4{%
+%<*pdftex-def>
+ \MT@requires@pdftex4{%
\MT@glet@nc{MT@ex@c@\MT@curr@set@name @auto}\@empty
-%<pdftex-def> }\relax
+ }\relax
+%</pdftex-def>
+%<*luatex-def>
+ \MT@warning{Non-automatic font expansion doesn't work with\MessageBreak
+ luatex}%
+%</luatex-def>
\fi
}
% \end{macrocode}
@@ -11117,9 +11154,9 @@ end
{\csname MT@\MT@permutelist @\csname MT@\MT@permutelist @name\endcsname @load\endcsname}%
\relax{%
\MT@warning{\@nameuse{MT@abbr@\MT@permutelist} list
- `\@nameuse{MT@\MT@permutelist @name}' will override list\MessageBreak
- `\@nameuse{MT@\MT@permutelist @\@tempa\MT@extra@context}'
- for font `\@tempa'}%
+ `\@nameuse{MT@\MT@permutelist @name}' will\MessageBreak override
+ list `\@nameuse{MT@\MT@permutelist @\@tempa\MT@extra@context}'
+ for \MessageBreak font `\@tempa'}%
}%
}%
%<debug>\MT@dinfo@nl{1}{initialising: use list for font \@tempa
@@ -11626,9 +11663,10 @@ end
% \begin{macrocode}
%<pdftex-def> \MT@requires@pdftex4{
\MT@expansiontrue
- \MT@autotrue
+%<pdftex-def> \MT@autotrue
%<pdftex-def> }\relax
\fi
+%<luatex-def>\MT@autotrue
%</pdftex-def|luatex-def>
% \end{macrocode}
% The main configuration file will be loaded before processing the package
@@ -12140,8 +12178,19 @@ end
% \textit{\fontfamily{pzc}\selectfont hz}~programme really usable.
% It must be either `|autoexpand|' or empty (or `|1000|' for older versions of
% \pdftex).
+%\changes{v2.7a}{2017/07/18}{with \luatex, font expansion is always automatic
+% (as confirmed by \contributor Hans Hagen <pragma\at wxs.nl>)}
+% ^^A http://tug.org/pipermail/luatex/2017-July/006579.html and following
+% With \luatex, we just leave it empty, as there's actually no difference --
+% non-automatic font expansion doesn't work anymore.
+%\changes{v2.7a}{2017/11/01}{remove `\texttt{autoexpand}' for \luatex\ 1.0.6
+% (reported by \contributor Ulrike Fischer <news3\at nililand.de>)}
+% ^^A private mail, 2017/10/29
+% In \luatex\ 1.0.6, the `|autoexpand|' option seems to have been removed altogether
+% and would trigger an error.
% \begin{macrocode}
- \let\MT@auto\@empty
+%<luatex-def> \let\MT@auto@\@empty
+%<pdftex-def> \let\MT@auto\@empty
\ifMT@auto
% \end{macrocode}
%\end{macro}
@@ -12162,9 +12211,7 @@ end
\fi
\MT@autofalse
\else
-%</pdftex-def>
\def\MT@auto{autoexpand}%
-%<*pdftex-def>
\fi
% \end{macrocode}
% Also, if \pdftex\ is too old.
@@ -12182,7 +12229,9 @@ end
\MT@autofalse
\def\MT@auto{1000 }%
}%
+%</pdftex-def>
\else
+%<*pdftex-def>
% \end{macrocode}
% No automatic expansion.
% \begin{macrocode}
@@ -12190,6 +12239,12 @@ end
\def\MT@auto{1000 }%
}%
%</pdftex-def>
+%<*luatex-def>
+ \ifMT@opt@auto
+ \MT@error{Non-automatic font expansion does not work with\MessageBreak
+ luatex}{Remove `auto=false' from the package options, or use pdftex.}%
+ \fi
+%</luatex-def>
\fi
% \end{macrocode}
% Choose the appropriate macro for selected expansion.
@@ -12694,7 +12749,7 @@ end
%\changes{v2.3e}{2009/06/01}{\texttt{sc*} instead of \texttt{sc} in \texttt{smallcaps} set}
%\changes{v2.6}{2014/02/18}{add \texttt{si} and \texttt{scit} to \texttt{smallcaps} set
% (reported by \contributor uli <@\at @>)}
-% ^^A http://tex.stackexchange.com/questions/157397
+% ^^A https://tex.stackexchange.com/questions/157397
% \begin{macrocode}
\DeclareMicrotypeSet{smallcaps}
{ encoding = {OT1,T1,T2A,LY1,OT4,QX,T5,TS1,EU1,EU2,TU},
@@ -12787,7 +12842,7 @@ end
%\changes{v2.5}{2012/07/17}{declare \texttt{lmsy} and \texttt{lmm} as aliases
% of \texttt{cmsy} resp. \texttt{cmm}
% (reported by \contributor Jonas Hogstrom <hjb981\at gmail.com>)}
-% ^^A http://tex.stackexchange.com/questions/63558/how-to-get-microtype-to-work-with-mathematical-minus-sign-and-package-lmodern
+% ^^A https://tex.stackexchange.com/questions/63558/how-to-get-microtype-to-work-with-mathematical-minus-sign-and-package-lmodern
% \begin{macrocode}
\DeclareMicrotypeAlias{lmsy}{cmsy}
\DeclareMicrotypeAlias{lmm} {cmm}
@@ -16933,7 +16988,7 @@ normal, and shrunk by 5\%:
% Grave accent \` Left brace \{ Vertical bar \|
% Right brace \} Tilde \~}
%
-% \CheckSum{10549}
+% \CheckSum{10591}
%
% \Finale
%