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: Font setup 84Table 4:Order for matching fontattributes1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16.Encoding • • • • • • • • • • • • • • • •Family • • • • • • • • - - - - - - - -Series • • • • - - - - • • • • - - - -Shape • • - - • • - - • • - - • • - -Size • - • - • - • - • - • - • - • -\MT@get@basefamily@\MT@listname\MT@get@listname\MT@get@listname@\MT@try@order\MT@next@listname2253 \ifx\@empty#4%2254 \def\@tempa{#1#2#3}%2255 \else2256 \let\@tempa\@empty2257 \edef\@tempb{#1#2#3#4}%2258 \expandafter\MT@get@basefamily@\@tempb\@nil2259 \fi2260 }This will only remove one suffix (the longest match), so that combinations of suffixeswould have be to added manually (e.g., \DeclareMicrotypeVariants*{aw}). Butotherwise, something like ‘padx’ would be truncated to ‘p’.2261 \def\MT@get@basefamily@#1#2\@nil{%2262 \edef\@tempa{\@tempa#1}%2263 \ifx\\#2\\\expandafter\@gobble\else\expandafter\@firstofone\fi2264 {\MT@in@tlist{#2}\MT@variants2265 \ifMT@inlist@\else\MT@get@basefamily@#2\@nil\fi}%2266 }Try all combinations of font family, series, shape and size to get a list for the currentfont.2267 \def\MT@get@listname#1{%2268 \MT@dinfo@nl{1}{trying to find \@nameuse{MT@abbr@#1} list for font `\MT@@font’}%2269 \let\MT@listname\@undefined2270 \def\@tempb{#1}%2271 \MT@map@tlist@c\MT@try@order\MT@get@listname@2272 }2273 \def\MT@get@listname@#1{%2274 \expandafter\MT@next@listname#1%2275 \ifx\MT@listname\@undefined \else2276 \expandafter\MT@tlist@break2277 \fi2278 }Beginning with version 1.7, we always check for the font size. Since the matchingorder has become more logical now, it can be described in words, so that we don’tneed table 4 in the documentation part any longer and can cast it off here.2279 \def\MT@try@order{%2280 {1111}{1110}{1101}{1100}{1011}{1010}{1001}{1000}%2281 {0111}{0110}{0101}{0100}{0011}{0010}{0001}{0000}%2282 }<strong>The</strong> current context is added to the font attributes. That is, the context must match.2283 \def\MT@next@listname#1#2#3#4{%2284 \ifnum#1=\z@\MT@nofamilytrue\fi2285 \edef\@tempa{\MT@encoding2286 /\ifnum#1=\@ne \MT@family \fi2287 /\ifnum#2=\@ne \MT@series \fi2288 /\ifnum#3=\@ne \MT@shape \fi2289 /\ifnum#4=\@ne *\fi2290 \MT@context}%2291 \MT@dinfo@nl{1}{trying \@tempa}%

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

Saved successfully!

Ooh no, something went wrong!