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 100\MT@test@ast\MT@font@sets\MT@fix@font@set\MT@define@set@key@size\MT@get@range\MT@upper\MT@lowerIt the last character is an asterisk, execute the second argument, otherwise the firstone.2905 \def\MT@test@ast#1*#2\@nil{%2906 \def\@tempa{#1}%2907 \MT@ifempty{#2}%2908 }Fully expand the font specification and fix catcodes for all font sets. Also removefontspec’s counters.2909 \let\MT@font@sets\@empty2910 \def\MT@fix@font@set#1{%2911 \xdef#1{#1}%2912 \ifMT@fontspec2913 \xdef#1{\expandafter\MT@scrubfeatures#1()\relax}%2914 \fi2915 \global\@onelevel@sanitize#1%2916 }size requires special treatment.2917 \def\MT@define@set@key@size#1{%2918 \define@key{MT@#1@set}{size}[]{%2919 \MT@map@clist@n{##1}{%2920 \KV@@sp@def\MT@val{####1}%2921 \expandafter\MT@get@range\MT@val--\@nil2922 \ifx\MT@val\relax \else2923 \MT@exp@cs\MT@xadd2924 {MT@#1list@size@\MT@curr@set@name}%2925 {{{\MT@lower}{\MT@upper}\relax}}%2926 \fi2927 }%2928 \MT@dinfo@nl{1}{-- size: \@nameuse{MT@#1list@size@\MT@curr@set@name}}%2929 }%2930 }Font sizes may also be specified as ranges. This has been requested by AndreasBühmann, who has also offered valuable help in implementing this. Now, it isfor instance possible to set up different lists for fonts with optical sizes. (<strong>The</strong>MinionPro project is trying to do this for the OpenType version of Adobe’s Minion.See http://developer.berlios.de/projects/minionpro/.)Ranges will be stored as triplets of {〈lower bound〉}{〈upper bound〉}{〈list name〉}.For simple sizes, the upper boundary is −1.2931 \def\MT@get@range#1-#2-#3\@nil{%2932 \MT@ifempty{#1}{%2933 \MT@ifempty{#2}{%2934 \let\MT@val\relax2935 }{%2936 \def\MT@lower{0}%2937 \def\MT@val{#2}%2938 \MT@get@size2939 \edef\MT@upper{\MT@val}%2940 }%2941 }{%2942 \def\MT@val{#1}%2943 \MT@get@size2944 \ifx\MT@val\relax \else2945 \edef\MT@lower{\MT@val}%2946 \MT@ifempty{#2}{%2947 \MT@ifempty{#3}%2948 {\def\MT@upper{-1}}%2048 pt is TEX’s maximum font size.2949 {\def\MT@upper{2048}}%

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

Saved successfully!

Ooh no, something went wrong!