Download The microtype package
Transcript
IMPLEMENTATION: Package options
123
Also, if pdfTeX is too old.
}{%
\MT@error{%
The pdftex version you are using is too old for\MessageBreak
automatic font expansion}%
{If you have created expanded fonts instances, remove `auto’ from\MessageBreak
the package options. Otherwise, you have to switch off expansion\MessageBreak
completely, or upgrade pdftex to version 1.20 or newer.}
\MT@autofalse
\def\MT@auto{1000 }
}
\else
No automatic expansion.
\MT@requires@pdftex4\relax{
\def\MT@auto{1000 }
}
\fi
Choose the appropriate macro for selected expansion.
\ifMT@selected
\let\MT@set@ex@codes\MT@set@ex@codes@s
\else
\let\MT@set@ex@codes\MT@set@ex@codes@n
\fi
Filter out stretch=0,shrink=0, since it would result in a pdfTeX error.
\ifnum\MT@stretch=\z@
\ifnum\MT@shrink=\z@
\MT@warning@nl{%
Both the stretch and shrink limit are set to zero.\MessageBreak
Disabling font expansion}
\MT@expansionfalse
\fi
\fi
\fi
\ifMT@expansion
\edef\MT@active@features{\MT@active@features,ex}%
\pdfadjustspacing\MT@ex@level
\MT@info@nl{\ifMT@auto A\else Non-a\fi utomatic font expansion enabled
(level \number\MT@ex@level),\MessageBreak
stretch: \number\MT@stretch, shrink: \number\MT@shrink,
step: \number\MT@step, \ifMT@selected\else non-\fi selected}
\MT@check@step
Check whether stretch and shrink are multiples of step.
\def\MT@check@step#1{%
\@tempcnta=\csname MT@#1\endcsname
\divide\@tempcnta \MT@step
\multiply\@tempcnta \MT@step
\ifnum\@tempcnta=\csname MT@#1\endcsname\else
\MT@warning@nl{The #1 amount is not a multiple of step.\MessageBreak
The effective maximum #1 is \the\@tempcnta\space
(step \number\MT@step)}
\fi
}
\MT@check@step{stretch}
\MT@check@step{shrink}
\MT@check@active@set{ex}
Inside \showhyphens, font expansion should be disabled.
\CheckCommand*\showhyphens[1]{\setbox0\vbox{%
\color@begingroup\everypar{}\parfillskip\z@skip