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.

THE LETTERSPACING ILLUSTRATION: Document 2219184 \DocInput{<strong>microtype</strong>-lssample.dtx}Now show what we are able to do.9185 \noindent9186 Since a picture is worth a thousand words, probably even more if, in our9187 case, it depicts a couple of letterspaced words, let’s bring one to sum up9188 these somewhat confusing options. Suppose you had the following settings9189 (which I would in no way recommend; they are only for illustrative purposes):9190 \begin{verbatim}9191 \SetTracking9192 [ no ligatures = {"\anchorarrow{nolig}"f},9193 spacing = {60"\anchorarrow{ispace}"0*,"%9194 "-1"\anchorarrow{istretch}"00*, "\anchorarrow{ishrink}"},9195 outer spacing = {4"\anchorarrow{ospace}"50,"%9196 "2"\anchorarrow{ostretch}"50,1"\anchorarrow{oshrink}"50},9197 outer kerning = {"\anchorarrow{okernbegin}"*,"%9198 \anchorarrow{okernend}"*} ]9199 { encoding = * }9200 { 1"\anchorarrow{lsamount}"60 }9201 \end{verbatim}9202 and then write:9203 \begin{verbatim}9204 Stop \textls{stealing sheep}!9205 \end{verbatim}9206 this is the (typographically dubious) outcome:92079208 \lssample92099210 \noindent9211 While the word `Stop’ is not letterspaced, the space between the letters in9212 the other two words is expanded by the \showarrow[tracking]{tracking~amount}{red}9213 of 160/1000\,em\,=\allowbreak\,0.16\,em.9214 <strong>The</strong> \showarrow[ispace]{inner~space}{green} within the letterspaced text is9215 increased by 60\%, while its \showarrow[istretch]{stretch}{green} amount is9216 decreased by 10\% and the \showarrow[ishrink]{shrink}{green} amount is left9217 untouched.9218 <strong>The</strong> \showarrow[ospace]{outer~space}{green} (of 0.45\,em) immediately before the9219 piece of text may \showarrow[ostretch]{stretch}{green} by 0.25\,em and9220 \showarrow[oshrink]{shrink}{green} by 0.15\,em.9221 Note that there is no outer space after the text, since the exclamation mark9222 immediately follows; instead, the default \showarrow[okern]{outer~kern}{red}9223 of half the letterspace amount (0.08\,em) is added.9224 Furthermore, one \showarrow{ligature}{grey} wasn’t broken up, because we9225 neglected to specify the `|s|’ in the |no ligatures| key.92269227 \expandafter\enddocument9228 \fi9229

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

Saved successfully!

Ooh no, something went wrong!