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.

AUXILIARY FILE FOR MICRO FINE TUNING 21017 Auxiliary file for micro fine tuningThis file can be used to test protrusion and expansion settings.8628 8629 \documentclass{article}86308631 %% Here you can specify the font you want to test, using8632 %% the commands \fontfamily, \fontseries and \fontshape.8633 %% Make sure to end all lines with a comment character!8634 \newcommand*\TestFont{%8635 \fontfamily{ppl}%8636 %% \fontseries{b}%8637 %% \fontshape{it}% sc, sl8638 }86398640 \use<strong>package</strong>{ifthen}8641 \use<strong>package</strong>[T1]{fontenc}8642 \use<strong>package</strong>[latin1]{inputenc}8643 \use<strong>package</strong>[verbose,expansion=alltext,stretch=50]{<strong>microtype</strong>}86448645 \pagestyle{empty}8646 \setlength{\parindent}{0pt}8647 \newcommand*\crulefill{\cleaders\hbox{$\mkern-2mu\smash-\mkern-2mu$}\hfill}8648 \newcommand*\testprotrusion[2][]{%8649 \ifthenelse{\equal{#1}{r}}{}{#2}%8650 lorem ipsum dolor sit amet,8651 \ifthenelse{\equal{#1}{r}}{\crulefill}{\leftarrowfill} #28652 \ifthenelse{\equal{#1}{l}}{\crulefill}{\rightarrowfill}8653 you know the rest%8654 \ifthenelse{\equal{#1}{l}}{}{#2}%8655 \linebreak8656 {\fontencoding{\encodingdefault}%8657 \fontseries{\seriesdefault}%8658 \fontshape{\shapedefault}%8659 \selectfont8660 Here is the beginning of a line, \dotfill and here is its end}\linebreak8661 }8662 \newcommand*\showTestFont{\expandafter\stripprefix\meaning\TestFont}8663 \def\stripprefix#1>{}8664 \newcount\charcount8665 \begin{document}86668667 \<strong>microtype</strong>setup{expansion=false}86688669 {\centering <strong>The</strong> font in this document is called by:\\8670 \texttt{\showTestFont}\par}\bigskip86718672 \TestFont\selectfont8673 This line intentionally left empty\linebreak8674 %% A -- Z8675 \charcount=658676 \loop8677 \testprotrusion{\char\charcount}8678 \advance\charcount 18679 \ifnum\charcount < 91 \repeat8680 %% a -- z8681 \charcount=978682 \loop8683 \testprotrusion{\char\charcount}8684 \advance\charcount 18685 \ifnum\charcount < 123 \repeat8686 %% 0 -- 98687 \charcount=488688 \loop

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

Saved successfully!

Ooh no, something went wrong!