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.

MICRO FINE TUNING: Tracking 17Since a picture is worth a thousand words, probably even more if, in our case, itdepicts a couple of letterspaced words, let’s bring one to sum up these somewhatconfusing options. Suppose you had the following settings (which I would in noway recommend; they are only for illustrative purposes):\SetTracking[ no ligatures = {f},spacing = {600*,-100*, },outer spacing = {450,250,150},outer kerning = {*,*} ]{ encoding = * }{ 160 }and then write:Stop \textls{stealing sheep}!Click If youonhad theaimage PDF viewer to showthatthekerns understands spacings PDF 1.5, involved. youClick couldon hide emphasised the arrows words selectively.text below to reveal theinStoptherelation of image and code.this would be the (typographically dubious) outcome:st e a l i n g s h e e p!While the word ‘Stop’ is not letterspaced, the space between the letters in the othertwo words is expanded by the tracking amount of 160/1000em = 0.16em. <strong>The</strong>inner space within the letterspaced text is increased by 60%, while its stretch amountis decreased by 10% and the shrink amount is left untouched. <strong>The</strong> outer space (of0.45em) immediately before the piece of text may stretch by 0.25em and shrinkby 0.15em. Note that there is no outer space after the text, since the exclamationmark immediately follows; instead, the default outer kern of half the letterspaceamount (0.08em) is added. Furthermore, one ligature wasn’t broken up, becausewe neglected to specify the ‘s’ in the no ligatures key.As another, more realistic example, suppose you want to space out all small capitalsby 50/1000em, fonts smaller than \small by 0.02em, and to decrease the trackingof large type by 0.02em. You can achieve this with the following settings:\use<strong>package</strong>[tracking=true]{<strong>microtype</strong>}\DeclareMicrotypeSet*[tracking]{my}{ encoding = * ,size = {-small,Large-},font = * /*/*/sc/* }\SetTracking[ no ligatures = f ]{ encoding = * , shape = sc}{ 50 }\SetTracking{ encoding = * , size = -small }{ 20 }\SetTracking{ encoding = * , size = Large- }{ -20 }Letterspaced fonts for which settings don’t exist will be spaced out by the default of0.1em (adjustable with the <strong>package</strong> option letterspace, see section 3.5). Supposeyour editor wants you to shorten your 1000-pages chef-d’œuvre by a handful ofpages, you could load <strong>microtype</strong> with (fingers crossed):\use<strong>package</strong>[tracking=alltext,letterspace=-40]{<strong>microtype</strong>}

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

Saved successfully!

Ooh no, something went wrong!