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 73\MT@set@curr@ls\MT@curr@ls\MT@set@curr@os\MT@set@curr@ok1746 \let\MT@the@pr@code\MT@the@pr@code@tr1747 \fiFinally, let the letterspaced font propagate. With LuaTEX, we also need to load.1748 \aftergroup\MT@set@lsfont1749 \let\MT@font\MT@lsfont1750 \ifMT@fontspec\MT@font\fiWe need to remember the current letterspacing amount (for \lslig).1751 \xdef\MT@set@curr@ls{\def\noexpand\MT@curr@ls{\MT@letterspace@}}%1752 \aftergroup\MT@set@curr@lsAdjust surrounding spacing and kerning.We get the current outer spacing and adjust it, then, after the end of the currentouter group, set the current outer spacing, again, and adjust.1753 1754 \MT@outer@space=\csname MT@outer@space\expandafter\string\font@name\endcsname\relax1755 \xdef\MT@set@curr@os{\MT@outer@space=\the\MT@outer@space\relax}%1756 \MT@tr@outer@l1757 If \MT@ls@adjust is empty, it’s the starred version of \textls. Use scaling to avoida ‘Dimension too large’.1758 \ifx\MT@ls@adjust\@empty1759 % \textls : outer kerning = {*,*} ; \textls* : outer kerning = {0,0}1760 \MT@outer@kern=-\dimexpr\MT@letterspace@ sp * \fontdimen6\font@name/2000\relax1761 \MT@ls@outer@kOtherwise, get the current outer kerning and adjust it, for left and right side(<strong>microtype</strong> only).1762 1763 \else1764 \MT@outer@kern=\expandafter\expandafter\expandafter\@firstoftwo1765 \csname MT@outer@kern\expandafter\string\font@name\endcsname\relax1766 \ifdim\MT@outer@kern=\z@\else \MT@ls@outer@k \fi1767 \MT@outer@kern=\expandafter\expandafter\expandafter\@secondoftwo1768 \csname MT@outer@kern\expandafter\string\font@name\endcsname\relax1769 1770 1771 \xdef\MT@set@curr@ok{\MT@outer@kern=\the\MT@outer@kern\relax}%1772 \MT@afteraftergroup{%1773 \MT@set@curr@ok1774 \noexpand\MT@ls@outer@k1775 }%1776 1777 \fi1778 Carry the outer kerning amount to outside the next group, then set outer spacing(which will set kerning, if no space follows).1779 \xdef\MT@set@curr@ok{\MT@outer@kern=\the\MT@outer@kern\relax}%Stuff to be done after the letterspace group. <strong>The</strong> letterspace <strong>package</strong> only adjuststhe kerning.1780 \MT@afteraftergroup{%1781 \MT@set@curr@os1782 \MT@set@curr@ok1783 \noexpand\MT@tr@outer@r1784 }%1785 1786 \fiSince protrusion values are inherited in LuaTEX, we switch off the setup for this

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

Saved successfully!

Ooh no, something went wrong!