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: Configuration 99\MT@DeclareSetAndUseIt\MT@curr@set@name\MT@declare@sets\MT@define@set@key@\MT@get@highlevel2862 \MT@exp@one@n\MT@declare@sets2863 {\csname MT@rbba@\@tempa\endcsname}{#2}{#3}%2864 }%2865 }%2866 }}%2867 }%2868 }2869 \newcommand\MT@DeclareSetAndUseIt[3][]{%2870 \MT@DeclareSet[#1]{#2}{#3}%2871 \UseMicrotypeSet[#1]{#2}%2872 }We need to remember the name of the set currently being declared.2873 \let\MT@curr@set@name\@emptyDefine the current set name and parse the keys.2874 \def\MT@declare@sets#1#2#3{%2875 \KV@@sp@def\MT@curr@set@name{#2}%2876 \MT@ifdefined@n@T{MT@#1@set@@\MT@curr@set@name}{%2877 \MT@warning{Redefining \@nameuse{MT@abbr@#1} set `\MT@curr@set@name’}%2878 \MT@glet@nc{MT@#1list@size@\MT@curr@set@name}\@empty2879 }%2880 \MT@glet@nc{MT@#1@set@@\MT@curr@set@name}\@empty2881 \MT@dinfo{1}{declaring \@nameuse{MT@abbr@#1} set `\MT@curr@set@name’}%2882 \setkeys{MT@#1@set}{#3}%2883 }〈#1〉 = font axis, 〈#2〉 = feature.2884 \def\MT@define@set@key@#1#2{%2885 \define@key{MT@#2@set}{#1}[]{%2886 \MT@glet@nc{MT@#2list@#1@\MT@curr@set@name}\@empty2887 \MT@map@clist@n{##1}{%2888 \KV@@sp@def\MT@val{####1}%2889 \MT@get@highlevel{#1}%We do not add the expanded value to the list . . .2890 \MT@exp@two@n\g@addto@macro2891 {\csname MT@#2list@#1@\MT@curr@set@name\expandafter\endcsname}%2892 {\MT@val,}%2893 }%. . . but keep in mind that the list has to be expanded at the end of the preamble.2894 \expandafter\g@addto@macro\expandafter\MT@font@sets2895 \csname MT@#2list@#1@\MT@curr@set@name\endcsname2896 \MT@dinfo@nl{1}{-- #1: \@nameuse{MT@#2list@#1@\MT@curr@set@name}}%2897 }%2898 }Saying, for instance, ‘family=rm*’ or ‘shape=bf*’ will expand to \rmdefault resp.\bfdefault.2899 \def\MT@get@highlevel#1{%2900 \expandafter\MT@test@ast\MT@val*\@nil\relax{%And ‘family = *’ will become \familydefault.2901 \MT@ifempty\@tempa{\def\@tempa{#1}}\relax2902 \edef\MT@val{\expandafter\noexpand\csname \@tempa default\endcsname}%In contrast to earlier version, these values will not be expanded immediately but atthe end of the preamble.2903 }%2904 }

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

Saved successfully!

Ooh no, something went wrong!