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: Font setup 57\ifMT@do\MT@feat\MT@maybe@do\MT@dinfo@list\MT@checklist@989 \MT@scrubfeatures#3\relax990 \fi991 }We check all features of the current font against the lists of the currently activefont set, and set \ifMT@do accordingly.992 \newif\ifMT@do993 \def\MT@maybe@do#1{%(but only if the feature isn’t globally set to false)994 \csname ifMT@\csname MT@abbr@#1\endcsname\endcsnameBegin with setting micro-typography to true for this font. <strong>The</strong> \MT@checklist@...tests will set it to false if the property is not in the list. <strong>The</strong> first non-empty list thatdoes not contain a match will stop us (except for font).995 \MT@dotrue996 \edef\@tempa{\csname MT@#1@setname\endcsname}%997 \MT@map@clist@n{font,encoding,family,series,shape,size}{%998 \MT@ifdefined@n@TF{MT@checklist@##1}%999 {\csname MT@checklist@##1\endcsname}%1000 {\MT@checklist@{##1}}%1001 {#1}%1002 }%1003 \else1004 \MT@dofalse1005 \fi1006 \ifMT@do\MT@feat stores the current feature.1007 \def\MT@feat{#1}%1008 \csname MT@set@#1@codes\endcsname1009 \else1010 \MT@vinfo{... No \@nameuse{MT@abbr@#1}}%1011 \fi1012 }1013 \def\MT@dinfo@list#1#2#3{\MT@dinfo@nl{1}{\@nameuse{MT@abbr@#1}: #21014 \ifx\\#3\\list empty\else `\@nameuse{MT@#2}’ #3 list\fi}}<strong>The</strong> generic test (〈#1〉 is the axis, 〈#2〉 the feature, \@tempa contains the set name).1015 \def\MT@checklist@#1#2{%1016 \MT@ifdefined@n@T1017 \MT@ifdefined@n@TF1018 {MT@#2list@#1@\@tempa}{%Begin a (neatly masqueraded) \expandafter orgy to test whether the font attributeis in the list.1019 \expandafter\MT@exp@one@n\expandafter\MT@in@clist1020 \csname MT@#1\expandafter\endcsname1021 \csname MT@#2list@#1@\@tempa\endcsname1022 \ifMT@inlist@1023 \MT@dinfo@list{#2}{#1}{in}%1024 \MT@dotrue1025 \else1026 \MT@dinfo@list{#2}{#1}{not in}%1027 \MT@dofalse1028 \expandafter\MT@clist@break1029 \fi1030 }%If no limitations have been specified, i.e., the list for a font attribute has not beendefined at all, the font should be set up.

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

Saved successfully!

Ooh no, something went wrong!