10.07.2015 Views

The microtype package

The microtype package

The microtype package

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

IMPLEMENTATION: Configuration 106\MT@SetProtrusion\MT@pr@c@name\MT@extra@context\MT@permutelist\SetExpansion\MT@SetExpansion\MT@ex@c@name\MT@extra@context\MT@permutelist\SetTrackingA new macro called \MT@pr@c@〈name〉 will be defined to be 〈#3〉 (i.e., the list ofcharacters, not expanded).3190 3191 \def\SetProtrusion{%3192 \MT@begin@catcodes3193 \MT@SetProtrusion3194 }We want the catcodes to be correct even if this is called in the preamble.3195 \newcommand*\MT@SetProtrusion[3][]{%3196 \let\MT@extra@context\@emptyParse the optional first argument. We first have to know the name before we candeal with the extra options.3197 \MT@set@named@keys{MT@pr@c}{#1}%3198 \MT@dinfo{1}{creating protrusion list `\MT@pr@c@name’}%3199 \def\MT@permutelist{pr@c}%3200 \setkeys{MT@cfg}{#2}%We have parsed the second argument, and can now define macros for all permutationsof the font attributes to point to \MT@pr@c@〈name〉, . . .3201 \MT@permute. . . which we can now define to be 〈#3〉. Here, as elsewhere, we have to make thedefinitions global, since they will occur inside a group.3202 \MT@gdef@n{MT@pr@c@\MT@pr@c@name}{#3}%3203 \MT@end@catcodes3204 }3205 \SetExpansion only differs in that it allows some extra options (stretch, shrink,step, auto).3206 3207 \def\SetExpansion{%3208 \MT@begin@catcodes3209 \MT@SetExpansion3210 }3211 \newcommand*\MT@SetExpansion[3][]{%3212 \let\MT@extra@context\@empty3213 \MT@set@named@keys{MT@ex@c}{#1}%3214 \MT@ifdefined@n@T{MT@ex@c@\MT@ex@c@name @factor}{%3215 \ifnum\csname MT@ex@c@\MT@ex@c@name @factor\endcsname > \@m3216 \MT@warning@nl{Expansion factor \number\@nameuse{MT@ex@c@\MT@ex@c@name @factor}3217 too large in list\MessageBreak `\MT@ex@c@name’. Setting it to the3218 maximum of 1000}%3219 \MT@glet@nc{MT@ex@c@\MT@ex@c@name @factor}\@m3220 \fi3221 }%3222 \MT@dinfo{1}{creating expansion list `\MT@ex@c@name’}%3223 \def\MT@permutelist{ex@c}%3224 \setkeys{MT@cfg}{#2}%3225 \MT@permute3226 \MT@gdef@n{MT@ex@c@\MT@ex@c@name}{#3}%3227 \MT@end@catcodes3228 }3229 \def\SetTracking{%3230 \MT@begin@catcodes3231 \MT@SetTracking3232 }

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

Saved successfully!

Ooh no, something went wrong!