10.07.2015 Views

The microtype package

The microtype package

The microtype package

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

IMPLEMENTATION: Preliminaries 49\MT@rbba@protrusion\MT@rbba@expansion\MT@rbba@spacing\MT@rbba@kerning\MT@rbba@tracking\MT@features\MT@features@long\MT@is@feature692 \def\MT@abbr@ex{expansion}693 \def\MT@abbr@pr@c{protrusion codes}694 \def\MT@abbr@ex@c{expansion codes}695 \def\MT@abbr@pr@inh{protrusion inheritance}696 \def\MT@abbr@ex@inh{expansion inheritance}697 \def\MT@abbr@nl{noligatures}698 \def\MT@abbr@sp{spacing}699 \def\MT@abbr@sp@c{interword spacing codes}700 \def\MT@abbr@sp@inh{interword spacing inheritance}701 \def\MT@abbr@kn{kerning}702 \def\MT@abbr@kn@c{kerning codes}703 \def\MT@abbr@kn@inh{kerning inheritance}704 \def\MT@abbr@tr{tracking}705 \def\MT@abbr@tr@c{tracking amount}<strong>The</strong>se we also need the other way round.706 \def\MT@rbba@protrusion{pr}707 \def\MT@rbba@expansion{ex}708 \def\MT@rbba@spacing{sp}709 \def\MT@rbba@kerning{kn}710 \def\MT@rbba@tracking{tr}We can work on these lists to save some guards in the dtx file.711 \def\MT@features{pr,ex,sp,kn,tr}712 \def\MT@features@long{protrusion,expansion,spacing,kerning,tracking}Whenever an optional argument accepts a list of features, we can use this commandto check whether a feature exists in order to prevent a rather confusing‘Missing \endcsname inserted’ error message. <strong>The</strong> feature (long form) must be in\@tempa, the type of list to ignore in 〈#1〉, then comes the action.713 \def\MT@is@feature#1{%714 \MT@exp@one@n\MT@in@clist\@tempa\MT@features@long715 \ifMT@inlist@716 \expandafter\@firstofone717 \else718 \MT@error{`\@tempa’ is not an available micro-typographic\MessageBreak719 feature. Ignoring #1}{Available features are: `\MT@features@long’.}%720 \expandafter\@gobble721 \fi722 }14.1.5 CompatibilityFor the record, the following L A TEX kernel commands will be modified by <strong>microtype</strong>:• \pickup@font• \do@subst@correction• \add@accent (all in section 14.2.9)• \showhyphens (in section 14.4.6)\MT@setup@<strong>The</strong> wordcount <strong>package</strong> redefines the font-switching commands, which willbreak <strong>microtype</strong>. Since <strong>microtype</strong> doesn’t have an effect on the number of wordsin the document anyway, we will simply disable ourselves.723 \@ifl@aded{tex}{wordcount}{%724 \MT@warning@nl{Detected the `wordcount’ utility.\MessageBreak725 Disabling `\MT@MT’, since it wouldn’t work}%726 \MT@clear@options\endinput}\relax<strong>The</strong> setup is deferred until the end of the preamble. This has a couple of advantages:\<strong>microtype</strong>setup can be used to change options later on in the preamble, and fonts

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!