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: Package options 126\MT@getkey\MT@setup@PDF4141 }%4142 }%4143 \edef\MT@temp{\noexpand\setkeys{#1}%4144 {\MT@temp\@ptionlist{\@currname.\@currext}}}%eplain can handle <strong>package</strong> options.4145 4146 }{\edef\MT@temp{\noexpand\setkeys{#1}%4147 {\csname usepkg@options@\usepkg@pkg\endcsname}}}4148 4149 \MT@temp4150 \MT@clear@options4151 }For key=val in class options.4152 \def\MT@getkey#1=#2\@nil{#1}4153 \MT@ProcessOptionsWithKV{MT}4154 }\relax4155 4156 Now we can take the appropriate actions. We also tell the log file which optionsthe user has chosen (in case it’s interested).4157 \MT@addto@setup{%4158 \ifMT@draftWe disable most of what we’ve just defined in the 4158 lines above if we arerunning in draft mode.4159 \MT@warning@nl{`draft’ option active.\MessageBreak4160 Disabling all micro-typographic extensions.\MessageBreak4161 This might lead to different line and page breaks}%4162 \let\MT@setupfont\relax4163 \renewcommand*\LoadMicrotypeFile[1]{}%4164 \renewcommand*\<strong>microtype</strong>setup[1]{}%4165 \renewcommand*\<strong>microtype</strong>context[1]{}%4166 \renewcommand*\lsstyle{}%4167 \else4168 \MT@setup@PDF4169 \MT@setup@copiesFix the font sets.4170 \MT@map@tlist@c\MT@font@sets\MT@fix@font@set4171 \MT@setup@protrusion4172 \MT@setup@expansion4173 \MT@setup@tracking4174 \MT@setup@warntracking4175 \MT@setup@spacing4176 \MT@setup@kerning4177 \MT@setup@noligatures4178 }4179 pdfTEX can create DVI output, too. However, both the DVI viewer and dvips needto find actual fonts. <strong>The</strong>refore, expansion will only work if the fonts for differentdegrees of expansion are readily available.Some <strong>package</strong>s depend on the value of \pdfoutput and will get confused if it ischanged after they have been loaded. <strong>The</strong>se <strong>package</strong>s are, among others: color,graphics, hyperref, crop, contour, pstricks and, as a matter of course, ifpdf.Instead of testing for each <strong>package</strong> (that’s not our job), we only say that it was<strong>microtype</strong> that changed it. This must be sufficient!4180 4181 \def\MT@setup@PDF{%

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

Saved successfully!

Ooh no, something went wrong!