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.

IMPLEMENTATION: Font setup 80\MT@textls\MT@letterspace@\MT@ls@adjust\MT@ls@adjust@empty\MT@ls@adjust@relax\MT@ls@set@ls\MT@ls@too@large\MT@outer@kern\MT@tr@set@okern\MT@tr@set@okern@2061 2062 \DeclareRobustCommand\textls{%2063 \@ifstar{\let\MT@ls@adjust@\MT@ls@adjust@empty\MT@textls}%2064 {\let\MT@ls@adjust@\MT@ls@adjust@relax\MT@textls}%2065 }This is now almost L A TEX’s \DeclareTextFontCommand, with the difference that weadjust the outer spacing and kerning also for \lsstyle, while L A TEX’s text switchesdon’t bother about italic correction.2066 \newcommand\MT@textls[2][]{%2067 \ifmmode2068 \nfss@text{\MT@ls@set@ls{#1}\lsstyle#2}%2069 \else2070 \hmode@bgroup2071 \MT@ls@set@ls{#1}%2072 \lsstyle #2%2073 \expandafter2074 \egroup2075 \fi2076 }Set current letterspacing amount and outer kerning. This has to be done inside thesame group as the letterspacing command.2077 \def\MT@ls@adjust@empty{\let\MT@ls@adjust\@empty}2078 \def\MT@ls@adjust@relax{\let\MT@ls@adjust\relax}2079 \def\MT@ls@set@ls#1{%2080 \MT@ifempty{#1}%2081 {\let\MT@letterspace@\@undefined}%2082 {\KV@@sp@def\MT@letterspace@{#1}%2083 \edef\MT@letterspace@{\number\MT@letterspace@}%2084 \MT@ls@too@large\MT@letterspace@}%2085 \MT@ls@adjust@2086 }Test whether letterspacing amount is too large.2087 \def\MT@ls@too@large#1{%2088 \ifnum#1>\MT@tr@max2089 \MT@warning{Maximum for option `letterspace’ is \number\MT@tr@max}%2090 \let#1\MT@tr@max2091 \else2092 \ifnum#1

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

Saved successfully!

Ooh no, something went wrong!