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 98\MT@pr@context\MT@ex@context\MT@tr@context\MT@sp@context\MT@kn@context\MT@pr@doc@contexts\MT@ex@doc@contexts\MT@tr@doc@contexts\MT@sp@doc@contexts\MT@kn@doc@contexts\DeclareMicrotypeSet\MT@extra@context\DeclareMicrotypeSet*\MT@DeclareSet2822 \ifMT@inlist@Using an empty context is only asking for trouble, therefore we choose the ‘@’instead (hoping for the L A TEX users’ natural awe of this character).2823 \MT@ifempty{##1}{\def\MT@val{@}}{\def\MT@val{##1}}%2824 \MT@exp@cs\ifx{MT@\@tempb @context}\MT@val2825 \MT@dinfo{1}{>>> no change of #1 context: `\MT@val’}%2826 \else2827 \MT@vinfo{>>> Changing #1 context to `\MT@val’\MessageBreak\on@line2828 \space(previous: `\@nameuse{MT@\@tempb @context}’)%2829 }%2830 \def\MT@reset@context{\aftergroup\MT@reset@context@}%<strong>The</strong> next time we see the font, we have to reset all factors.2831 \MT@glet@nn{MT@reset@\@tempb @codes}{MT@reset@\@tempb @codes@}%We must also keep track of all contexts in the document.2832 \expandafter\MT@exp@one@n\expandafter\MT@in@tlist\expandafter2833 \MT@val \csname MT@\@tempb @doc@contexts\endcsname2834 \ifMT@inlist@ \else2835 \MT@exp@cs\MT@xadd{MT@\@tempb @doc@contexts}{{\MT@val}}%2836 \MT@dinfo{1}{||| added #1 context: \@nameuse{MT@\@tempb @doc@contexts}}%2837 \fi2838 \MT@edef@n{MT@\@tempb @context}{\MT@val}%2839 \fi2840 \fi2841 }%2842 }Initialise the contexts.2843 \MT@exp@one@n\MT@map@clist@n{\MT@features,nl}{%2844 \MT@def@n{MT@#1@context}{@}%2845 \MT@def@n{MT@#1@doc@contexts}{{@}}%2846 }2847 \let\MT@extra@context\@empty14.3 Configuration14.3.1 Font setsCalling this macro will create a comma list for every font attribute of the form:\MT〈feature〉list@〈attribute〉@〈set name〉. If the optional argument is empty, lists forall available features will be created.<strong>The</strong> third argument must be a list of key=value pairs. If a font attribute is notspecified, we define the corresponding list to \relax, so that it does not constitutea constraint.2848 \def\DeclareMicrotypeSet{%2849 \@ifstar2850 \MT@DeclareSetAndUseIt2851 \MT@DeclareSet2852 }2853 \newcommand\MT@DeclareSet[3][]{%2854 \KV@@sp@def\@tempa{#1}%2855 \MT@ifempty\@tempa{%2856 \MT@map@clist@c\MT@features{{\MT@declare@sets{##1}{#2}{#3}}}%2857 }{%2858 \MT@map@clist@c\@tempa{{%2859 \KV@@sp@def\@tempa{##1}%2860 \MT@ifempty\@tempa\relax{%2861 \MT@is@feature{set declaration `#2’}{%

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

Saved successfully!

Ooh no, something went wrong!