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 83\MT@cfg@catcodes\MT@begin@catcodes\MT@end@catcodes\MT@get@basefamily2211 \MT@vinfo{... Loading configuration file \MT@curr@file}%2212 \MT@xadd\MT@file@list{#1,}%2213 }{%2214 \MT@get@basefamily#1\@empty\@empty\@empty\@nil2215 \MT@exp@one@n\MT@in@clist\@tempa\MT@file@list2216 \ifMT@inlist@2217 \MT@xadd\MT@file@list{#1,}%2218 \else2219 \InputIfFileExists{mt-\@tempa.cfg}{%2220 \edef\MT@curr@file{mt-\@tempa.cfg}%2221 \MT@vinfo{... Loading configuration file \MT@curr@file}%2222 \MT@xadd\MT@file@list{\@tempa,#1,}%2223 }{%2224 \MT@vinfo{... No configuration file mt-#1.cfg}%2225 \MT@xadd\MT@file@list{#1,}%2226 }%2227 \fi2228 }%2229 \endgroup2230 \fi2231 }We have to make sure that all characters have the correct category code. Especially,new lines and spaces should be ignored, since files might be loaded in the middleof the document. This is basically \nfss@catcodes (from the L A TEX kernel). I’veadded: & (in tabulars), !, ?, ;, : (french), ,, $, _ , ~, and = (Turkish babel).OK, now all printable characters up to 127 are ‘other’. We hope that letters arealways letters and numbers other. (listings makes them active, see section 14.1.5.)We leave ^ at catcode 7, so that stuff like ‘^^ff’ remains possible.2232 \def\MT@cfg@catcodes{%2233 \makeatletter2234 \catcode`\^7%2235 \catcode`\ 9%2236 \catcode`\^^I9%2237 \catcode`\^^M9%2238 \catcode`\\\z@2239 \catcode`\{\@ne2240 \catcode`\}\tw@2241 \catcode`\#6%2242 \catcode`\%14%2243 \MT@map@tlist@n2244 {\!\"\$\&\’\(\)\*\+\,\-\.\/\:\;\\?\[\]\ _ \`\|\~}%2245 \@makeother2246 }This will be used before reading the files as well as in the configuration commands\Set..., and \DeclareCharacterInheritance, so that the catcodes are alsoharmless when these commands are used outside the configuration files.2247 \def\MT@begin@catcodes{%2248 \begingroup2249 \MT@cfg@catcodes2250 }End group if outside configuration file (otherwise relax).2251 \let\MT@end@catcodes\endgroup<strong>The</strong> family name might have a suffix e.g., for expert set (x), old style numbers (j)swash capitals (w) etc. We mustn’t simply remove the last letter, as this would makefor instance cms out of cmss and cmsy (OK, cmex will still become cme . . . ).We only work on the font name if it is longer than three characters.2252 \def\MT@get@basefamily#1#2#3#4\@nil{%

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

Saved successfully!

Ooh no, something went wrong!