| 1 |
%% |
| 2 |
%% This is file `microtype-xetex.def', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% microtype.dtx (with options: `xe-') |
| 8 |
%% |
| 9 |
%% ------------------------------------------------------------------------ |
| 10 |
%% |
| 11 |
%% The `microtype' package |
| 12 |
%% Subliminal refinements towards typographical perfection |
| 13 |
%% Copyright (c) 2004--2026 R Schlicht <[email protected]> |
| 14 |
%% |
| 15 |
%% This work may be distributed and/or modified under the conditions of the |
| 16 |
%% LaTeX Project Public License, either version 1.3c of this license or (at |
| 17 |
%% your option) any later version. The latest version of this license is in: |
| 18 |
%% https://www.latex-project.org/lppl.txt, and version 1.3c or later is part |
| 19 |
%% of all distributions of LaTeX version 2005/12/01 or later. |
| 20 |
%% |
| 21 |
%% This work has the LPPL maintenance status `maintained'. |
| 22 |
%% |
| 23 |
%% This work consists of the files microtype.dtx, microtype-utf.dtx and |
| 24 |
%% microtype.ins and the derived files microtype.sty, microtype-pdftex.def, |
| 25 |
%% microtype-luatex.def, microtype-xetex.def, microtype.lua, letterspace.sty |
| 26 |
%% and microtype-show.sty. |
| 27 |
%% |
| 28 |
%% ------------------------------------------------------------------------ |
| 29 |
%% This file contains enginge-specific definitions. |
| 30 |
%% ------------------------------------------------------------------------ |
| 31 |
%% |
| 32 |
\ProvidesFile |
| 33 |
{microtype-xetex.def} |
| 34 |
[2026/03/01 v3.2d |
| 35 |
Definitions specific to |
| 36 |
xetex |
| 37 |
(RS)] |
| 38 |
\def\MT@ifint#1{% |
| 39 |
\if!\ifnum9<1#1!\else?\fi |
| 40 |
\expandafter\@firstoftwo |
| 41 |
\else |
| 42 |
\expandafter\@secondoftwo |
| 43 |
\fi |
| 44 |
} |
| 45 |
\def\MT@ifdimen#1{% |
| 46 |
\setbox\z@=\hbox{% |
| 47 |
\MT@count=1#1\relax |
| 48 |
\ifnum\MT@count=\@ne |
| 49 |
\aftergroup\@secondoftwo |
| 50 |
\else |
| 51 |
\aftergroup\@firstoftwo |
| 52 |
\fi |
| 53 |
}% |
| 54 |
} |
| 55 |
\def\MT@ifstreq#1#2{% |
| 56 |
\ifnum |
| 57 |
\strcmp |
| 58 |
{#1}{#2}=\z@ |
| 59 |
\expandafter\@firstoftwo |
| 60 |
\else |
| 61 |
\expandafter\@secondoftwo |
| 62 |
\fi |
| 63 |
} |
| 64 |
\def\MT@if@opentype@font{% |
| 65 |
\ifnum\XeTeXfonttype\font@name=\z@ |
| 66 |
\expandafter\@secondoftwo |
| 67 |
\else |
| 68 |
\expandafter\@firstoftwo |
| 69 |
\fi |
| 70 |
} |
| 71 |
\def\MT@do@font#1{% |
| 72 |
\@tempcnta=\z@ |
| 73 |
\MT@loop |
| 74 |
\iffontchar\MT@font\@tempcnta #1\fi |
| 75 |
\advance\@tempcnta\@ne |
| 76 |
\ifnum\@tempcnta < \XeTeXlastfontchar\MT@font \MT@repeat |
| 77 |
} |
| 78 |
\def\MT@ledmac@setup{% |
| 79 |
\ifMT@protrusion |
| 80 |
\MT@ifdefined@c@TF\l@dunhbox@line{% |
| 81 |
\MT@info@nl{Patching ((r)e)ledmac to enable character protrusion}% |
| 82 |
\let\MT@led@unhbox@line\l@dunhbox@line |
| 83 |
\renewcommand*{\l@dunhbox@line}[1]{% |
| 84 |
\ifhbox##1% |
| 85 |
\kern\leftmarginkern##1% |
| 86 |
\expandafter\MT@led@unhbox@line\expandafter##1\expandafter |
| 87 |
\kern\rightmarginkern##1% |
| 88 |
\fi |
| 89 |
}% |
| 90 |
}{% |
| 91 |
\MT@warning@nl{% |
| 92 |
Character protrusion in paragraphs with line\MessageBreak |
| 93 |
numbering will only work if you update ledmac,\MessageBreak |
| 94 |
or use one of its successors, eledmac or reledmac}% |
| 95 |
}% |
| 96 |
\fi |
| 97 |
} |
| 98 |
\def\MT@varwidth@setup{% |
| 99 |
\ifMT@protrusion |
| 100 |
^^Q \MT@warning@nl{Cannot patch varwidth without etex extensions}% |
| 101 |
^^X \MT@info@nl{Patching varwidth to enable character protrusion}% |
| 102 |
^^X \newdimen\MT@vwid@leftmargin |
| 103 |
^^X \newdimen\MT@vwid@rightmargin |
| 104 |
^^X \patchcmd\@vwid@sift{\sift@deathcycles\z@} |
| 105 |
^^X {\ifhbox\z@ \MT@vwid@leftmargin\leftmarginkern\z@ |
| 106 |
^^X \MT@vwid@rightmargin\rightmarginkern\z@\fi \sift@deathcycles\z@}{}{}% |
| 107 |
^^X \patchcmd\@vwid@resetb{\kern\@vwid@loff \unhbox\z@} |
| 108 |
^^X {\kern\@vwid@loff \ifdim\MT@vwid@leftmargin=\z@\else\kern\MT@vwid@leftmargin\fi |
| 109 |
^^X \unhbox\z@ \ifdim\MT@vwid@rightmargin=\z@\else\kern\MT@vwid@rightmargin\fi}{}{}% |
| 110 |
^^X \patchcmd\@vwid@measure{\kern\@vwid@loff \unhbox\z@} |
| 111 |
^^X {\kern\@vwid@loff \ifdim\MT@vwid@leftmargin=\z@\else\kern\MT@vwid@leftmargin\fi |
| 112 |
^^X \unhbox\z@ \ifdim\MT@vwid@rightmargin=\z@\else\kern\MT@vwid@rightmargin\fi}{}{}% |
| 113 |
\fi |
| 114 |
} |
| 115 |
\def\MT@setupfont{% |
| 116 |
\MT@font |
| 117 |
\MT@setupfont@hook} |
| 118 |
\g@addto@macro\MT@setupfont{% |
| 119 |
\MT@exp@two@c\MT@split@name\string\MT@font/\@nil |
| 120 |
\MT@exp@one@n\MT@find@file\MT@family |
| 121 |
\ifx\MT@familyalias\@empty \else |
| 122 |
\MT@exp@one@n\MT@find@file\MT@familyalias\fi |
| 123 |
} |
| 124 |
\g@addto@macro\MT@setupfont\MT@tracking |
| 125 |
\g@addto@macro\MT@setupfont{% |
| 126 |
\MT@check@font |
| 127 |
\ifMT@inlist@ |
| 128 |
\else |
| 129 |
\MT@vinfo{Setting up font `\MT@@font'\on@line}% |
| 130 |
\MT@info@notracking |
| 131 |
\MT@protrusion |
| 132 |
} |
| 133 |
\g@addto@macro\MT@setupfont{% |
| 134 |
\MT@register@font |
| 135 |
\fi |
| 136 |
} |
| 137 |
\def\MT@fix@fontdimen@six{% |
| 138 |
\ifnum\fontdimen6\MT@font=\z@ |
| 139 |
\fontdimen6\MT@font=% |
| 140 |
\MT@size pt% |
| 141 |
\MT@info{Fixing zero \@backslashchar fontdimen 6 for font `\MT@@font'\MessageBreak |
| 142 |
(new value: \the\fontdimen6\MT@font)}% |
| 143 |
\fi |
| 144 |
\edef\MT@dimen@six{\number\fontdimen6\MT@font}% |
| 145 |
} |
| 146 |
\def\MT@set@pr@codes |
| 147 |
{% |
| 148 |
\MT@nofamilyfalse |
| 149 |
\MT@if@list@exists{% |
| 150 |
\ifMT@nofamily |
| 151 |
\MT@ifdefined@n@TF{\MT@encoding-\MT@family-settings}\relax{% |
| 152 |
\MT@info@nl{Loading generic protrusion settings for font family\MessageBreak |
| 153 |
`\MT@family' (encoding: \MT@encoding).\MessageBreak |
| 154 |
For optimal results, create family-specific settings.\MessageBreak |
| 155 |
See the microtype manual for details}% |
| 156 |
\MT@glet@nc{\MT@encoding-\MT@family-settings}\@empty |
| 157 |
}% |
| 158 |
\fi |
| 159 |
\MT@get@opt |
| 160 |
\MT@reset@pr@codes |
| 161 |
\MT@get@inh@list |
| 162 |
\MT@set@inputenc{c}% |
| 163 |
\MT@load@list\MT@pr@c@name |
| 164 |
\MT@set@listname |
| 165 |
\MT@let@cn\@tempc{MT@pr@c@\MT@pr@c@name}% |
| 166 |
\expandafter\MT@set@codes\@tempc,\relax,% |
| 167 |
\MT@set@pr@prefixheirs |
| 168 |
}% |
| 169 |
\MT@reset@pr@codes |
| 170 |
} |
| 171 |
\def\MT@set@all@pr#1#2{% |
| 172 |
\let\MT@temp\@empty |
| 173 |
\MT@ifempty{#1}\relax{\g@addto@macro\MT@temp{\lpcode\MT@font\@tempcnta=#1}}% |
| 174 |
\MT@ifempty{#2}\relax{\g@addto@macro\MT@temp{\rpcode\MT@font\@tempcnta=#2}}% |
| 175 |
\MT@do@font\MT@temp |
| 176 |
} |
| 177 |
\def\MT@reset@pr@codes@{\MT@set@all@pr\z@\z@} |
| 178 |
\let\MT@reset@pr@codes\relax |
| 179 |
\def\MT@the@pr@code{\@tempcntb} |
| 180 |
\def\MT@set@codes#1,{% |
| 181 |
\ifx\relax#1\@empty\else |
| 182 |
\MT@split@codes #1==\relax |
| 183 |
\expandafter\MT@set@codes |
| 184 |
\fi |
| 185 |
} |
| 186 |
\def\MT@split@codes#1=#2=#3\relax{% |
| 187 |
\def\@tempa{#1}% |
| 188 |
\ifx\@tempa\@empty \else |
| 189 |
\MT@get@slot |
| 190 |
\ifx\MT@char\@empty \else |
| 191 |
\MT@get@char@unit |
| 192 |
\csname MT@\MT@feat @split@val\endcsname#2\relax |
| 193 |
\fi |
| 194 |
\fi |
| 195 |
} |
| 196 |
\def\MT@pr@split@val#1,#2\relax |
| 197 |
{\def\@tempb{#1}% |
| 198 |
\MT@ifempty\@tempb |
| 199 |
\relax |
| 200 |
{\MT@scale@to@em |
| 201 |
\lpcode\MT@font\MT@char=\MT@the@pr@code |
| 202 |
}% |
| 203 |
\def\@tempb{#2}% |
| 204 |
\MT@ifempty\@tempb |
| 205 |
\relax |
| 206 |
{\MT@scale@to@em |
| 207 |
\rpcode\MT@font\MT@char=\MT@the@pr@code |
| 208 |
}% |
| 209 |
\MT@ifdefined@c@T\MT@pr@inh@name{% |
| 210 |
\MT@ifdefined@n@T{MT@inh@\MT@pr@inh@name @\MT@char @}{% |
| 211 |
\MT@exp@cs\MT@map@tlist@c |
| 212 |
{MT@inh@\MT@pr@inh@name @\MT@char @}% |
| 213 |
\MT@set@pr@heirs |
| 214 |
}% |
| 215 |
}% |
| 216 |
} |
| 217 |
\def\MT@scale@to@em{% |
| 218 |
\@tempcntb=\MT@count\relax |
| 219 |
\MT@scale\@tempcntb \@tempb \MT@dimen@six |
| 220 |
\ifnum\@tempcntb=\z@ \else |
| 221 |
\MT@scale@factor |
| 222 |
\fi |
| 223 |
} |
| 224 |
\def\MT@get@charwd{% |
| 225 |
\ifnum\MT@char@<\z@ |
| 226 |
\setbox\z@=\hbox{\MT@font \XeTeXglyph-\MT@char@}% |
| 227 |
\MT@count=\wd\z@ |
| 228 |
\else |
| 229 |
\MT@count=\fontcharwd\MT@font\MT@char@\relax |
| 230 |
\fi |
| 231 |
\ifnum\MT@count=\z@ \MT@info@missing@char \fi |
| 232 |
} |
| 233 |
\def\MT@set@pr@prefixes#1{\MT@set@pr@prefixes@#1} |
| 234 |
\def\MT@set@pr@prefixes@#1#2#3#4% |
| 235 |
{% |
| 236 |
\edef\@tempa{\expandafter\ifx\@car#1\@nil U\@gobble#1\else\number\XeTeXglyphindex"#1" \fi}% |
| 237 |
\edef\@tempb{\expandafter\ifx\@car#2\@nil U\@gobble#2\else\number\XeTeXglyphindex"#2" \fi}% |
| 238 |
\@tempcnta=\z@ |
| 239 |
\ifnum#3>\z@ |
| 240 |
\@tempcnta=\numexpr |
| 241 |
(\fontcharwd\MT@font\@tempb-\fontcharwd\MT@font\@tempa)% |
| 242 |
*#3/\MT@dimen@six\relax |
| 243 |
\fi |
| 244 |
\lpcode\MT@font #2=\numexpr\lpcode\MT@font#1+\@tempcnta\relax |
| 245 |
\@tempcnta=\z@ |
| 246 |
\ifnum#4>\z@ |
| 247 |
\@tempcnta=\numexpr |
| 248 |
(\fontcharwd\MT@font\@tempb-\fontcharwd\MT@font\@tempa)% |
| 249 |
*#4/\MT@dimen@six\relax |
| 250 |
\fi |
| 251 |
\rpcode\MT@font #2=\numexpr\rpcode\MT@font#1+\@tempcnta\relax |
| 252 |
} |
| 253 |
\def\MT@prot@addtoken@next#1{% |
| 254 |
\MT@toks\expandafter{\the\MT@toks#1}% |
| 255 |
\setbox\MT@tempbox\hbox{% |
| 256 |
\begingroup |
| 257 |
\let\maybe@ic\relax |
| 258 |
\MT@exp@one@n\MT@maybe@textcmd{\the\MT@toks}% |
| 259 |
\relax |
| 260 |
\endgroup |
| 261 |
\ifnum\lastnodetype=7 \aftergroup\@firstoftwo\else\aftergroup\@secondoftwo\fi}% |
| 262 |
\MT@prot@get@nexttoken |
| 263 |
{\MT@exp@one@n\MT@prot@l{\the\MT@toks}}% |
| 264 |
} |
| 265 |
\let\MT@tr@font@list\@empty |
| 266 |
\def\MT@tracking@{% |
| 267 |
\MT@exp@one@n\MT@in@clist\MT@font\MT@tr@font@list |
| 268 |
\ifMT@inlist@\else |
| 269 |
\MT@maybe@do{tr}% |
| 270 |
\ifMT@do\else |
| 271 |
\xdef\MT@tr@font@list{\MT@tr@font@list\MT@font,}% |
| 272 |
\fi |
| 273 |
\fi |
| 274 |
} |
| 275 |
\let\MT@tracking |
| 276 |
\MT@tracking@ |
| 277 |
\def\MT@set@tr@codes{% |
| 278 |
\MT@vinfo{Tracking font `\MT@@font'\on@line}% |
| 279 |
\MT@if@list@exists |
| 280 |
\MT@get@tr@opt |
| 281 |
\relax |
| 282 |
\MT@ifdefined@c@TF\MT@letterspace@\relax{\let\MT@letterspace@\MT@letterspace}% |
| 283 |
\ifnum\MT@letterspace@=\z@ |
| 284 |
\MT@set@tr@zero |
| 285 |
\else |
| 286 |
\MT@vinfo{... Tracking by \number\MT@letterspace@}% |
| 287 |
\xdef\MT@lsfont{\csname\expandafter\string\font@name |
| 288 |
/\number\MT@letterspace@ ls\endcsname}% |
| 289 |
\expandafter\ifx\MT@lsfont\relax |
| 290 |
\MT@get@ls@basefont |
| 291 |
\MT@if@opentype@font{% |
| 292 |
\let\MT@tr@features\@empty |
| 293 |
\MT@ifdefined@c@T\MT@tr@feat\MT@tr@set@features |
| 294 |
\global\expandafter\font\MT@lsfont=\MT@ls@fontspec@font |
| 295 |
}{% |
| 296 |
\MT@warning{\MT@@font\space is a legacy font.\MessageBreak |
| 297 |
Cannot letterspace it}% |
| 298 |
\MT@glet\MT@lsfont\font@name |
| 299 |
}% |
| 300 |
\MT@ifdefined@c@TF\MT@tr@ispace |
| 301 |
{\let\@tempa\MT@tr@ispace}% |
| 302 |
{\edef\@tempa{\MT@letterspace@*,,}}% |
| 303 |
\MT@ifdefined@c@TF\MT@tr@ospace |
| 304 |
{\edef\@tempa{\@tempa,\MT@tr@ospace}}% |
| 305 |
{\edef\@tempa{\@tempa,,,}}% |
| 306 |
\expandafter\MT@tr@set@space\@tempa,% |
| 307 |
\MT@ifdefined@c@TF\MT@tr@okern{\let\@tempa\MT@tr@okern}{\def\@tempa{*,*}}% |
| 308 |
\expandafter\MT@tr@set@okern\@tempa,% |
| 309 |
\MT@ifdefined@c@T\MT@tr@ligatures\MT@tr@noligatures |
| 310 |
\fi |
| 311 |
\aftergroup\MT@set@lsfont |
| 312 |
\let\MT@font\MT@lsfont |
| 313 |
\MT@if@opentype@font\MT@font\relax |
| 314 |
\xdef\MT@set@curr@ls{\def\noexpand\MT@curr@ls{\MT@letterspace@}}% |
| 315 |
\aftergroup\MT@set@curr@ls |
| 316 |
\MT@outer@space=\csname MT@outer@space\expandafter\string\font@name\endcsname\relax |
| 317 |
\xdef\MT@set@curr@os{\MT@outer@space=\the\MT@outer@space\relax}% |
| 318 |
\MT@tr@outer@l |
| 319 |
\ifx\MT@ls@adjust\@empty |
| 320 |
\MT@outer@kern=-\dimexpr\MT@letterspace@ sp * \fontdimen6\font@name/2000\relax |
| 321 |
\MT@ls@outer@k |
| 322 |
\else |
| 323 |
\MT@outer@kern=\expandafter\expandafter\expandafter\@firstoftwo |
| 324 |
\csname MT@outer@kern\expandafter\string\font@name\endcsname\relax |
| 325 |
\ifdim\MT@outer@kern=\z@\else \MT@ls@outer@k \fi |
| 326 |
\MT@outer@kern=\expandafter\expandafter\expandafter\@secondoftwo |
| 327 |
\csname MT@outer@kern\expandafter\string\font@name\endcsname\relax |
| 328 |
\fi |
| 329 |
\xdef\MT@set@curr@ok{\MT@outer@kern=\the\MT@outer@kern\relax}% |
| 330 |
\MT@afteraftergroup{% |
| 331 |
\MT@set@curr@os |
| 332 |
\MT@set@curr@ok |
| 333 |
\noexpand\MT@tr@outer@r |
| 334 |
}% |
| 335 |
\fi |
| 336 |
} |
| 337 |
\def\MT@afteraftergroup#1{% |
| 338 |
\MT@maybe@gobble@with@tikz{% |
| 339 |
\MT@ifdefined@n@TF{MT@aftergroup@\number\currentgrouplevel}\relax{% |
| 340 |
\MT@exp@cs\xdef{MT@aftergroup@\number\currentgrouplevel}% |
| 341 |
{\MT@exp@cs\MT@glet{MT@aftergroup@\number\currentgrouplevel}\noexpand\@undefined#1}% |
| 342 |
\expandafter\aftergroup\expandafter\aftergroup\MT@exp@cs\aftergroup |
| 343 |
{MT@aftergroup@\number\currentgrouplevel}% |
| 344 |
}% |
| 345 |
}% |
| 346 |
} |
| 347 |
\def\MT@ls@fontspec@font{\MT@exp@two@c\MT@ls@fontspec@font@\fontname\font@name\MT@nil} |
| 348 |
\def\MT@ls@fontspec@font@"#1"#2\MT@nil{\MT@ls@fontspec@font@@#1::\MT@nil#2} |
| 349 |
\def\MT@ls@fontspec@font@@#1:#2:#3\MT@nil{% |
| 350 |
"#1:#2letterspace=\strip@pt\dimexpr\MT@letterspace@ pt/10\relax |
| 351 |
;\MT@tr@features"% |
| 352 |
} |
| 353 |
\def\MT@get@tr@opt{% |
| 354 |
\MT@set@listname |
| 355 |
\let\MT@tr@factor@\@m |
| 356 |
\MT@ifdefined@n@T{MT@tr@c@\MT@tr@c@name @unit}{% |
| 357 |
\MT@let@cn\MT@tr@unit@{MT@tr@c@\MT@tr@c@name @unit}% |
| 358 |
\ifdim\MT@tr@unit@=1em |
| 359 |
\let\MT@tr@unit@\@undefined |
| 360 |
\else |
| 361 |
\MT@get@unit\MT@tr@unit@ |
| 362 |
\fi |
| 363 |
}% |
| 364 |
\MT@ifdefined@n@T{MT@tr@c@\MT@tr@c@name}{% |
| 365 |
\MT@let@cn\MT@letterspace{MT@tr@c@\MT@tr@c@name}% |
| 366 |
\MT@ifdefined@c@T\MT@tr@unit@{% |
| 367 |
\let\@tempb\MT@letterspace |
| 368 |
\MT@scale@to@em |
| 369 |
\edef\MT@letterspace{\number\@tempcntb}% |
| 370 |
}% |
| 371 |
}% |
| 372 |
\MT@get@tr@opt@{spacing} {ispace}% |
| 373 |
\MT@get@tr@opt@{outerspacing}{ospace}% |
| 374 |
\MT@get@tr@opt@{outerkerning}{okern}% |
| 375 |
\MT@get@tr@opt@{noligatures} {ligatures}% |
| 376 |
\MT@get@tr@opt@{features} {feat}% |
| 377 |
} |
| 378 |
\def\MT@get@tr@opt@#1#2{% |
| 379 |
\MT@ifdefined@n@T{MT@tr@c@\MT@tr@c@name @#1}% |
| 380 |
{\MT@let@nn{MT@tr@#2}{MT@tr@c@\MT@tr@c@name @#1}}% |
| 381 |
} |
| 382 |
\def\MT@tr@set@features{% |
| 383 |
\MT@map@clist@c\MT@tr@feat{% |
| 384 |
\MT@ifempty{##1}\relax{% |
| 385 |
\MT@if@false |
| 386 |
\lowercase{\edef\@tempa{##1}}% |
| 387 |
\MT@map@tlist@n{{{required} {rlig}} |
| 388 |
{{common} {liga}} |
| 389 |
{{contextual} {clig}} |
| 390 |
{{rare} {dlig}} |
| 391 |
{{discretionary}{dlig}} |
| 392 |
{{historic} {hlig}} |
| 393 |
}\MT@tr@set@feature@ |
| 394 |
\ifMT@if@\else |
| 395 |
\MT@ifstreq{\@tempa}{tex}{% |
| 396 |
\MT@xadd\MT@tr@features{mapping=tex-text;}% |
| 397 |
}{% |
| 398 |
\MT@ifstreq{\@tempa}{texoff}{% |
| 399 |
\MT@xadd\MT@tr@features{mapping=;}% |
| 400 |
}{% |
| 401 |
\MT@ifstreq{\@tempa}{notex}{% |
| 402 |
\MT@xadd\MT@tr@features{mapping=;}% |
| 403 |
}{% |
| 404 |
\MT@ifstreq{\@tempa}{resetall}{% |
| 405 |
\MT@xadd\MT@tr@features{+dlig;-dlig;+rlig;-rlig;+liga;-liga;+clig;-clig;+hlig;-hlig;% |
| 406 |
mapping=tex-text;% |
| 407 |
}% |
| 408 |
}{% |
| 409 |
\MT@warning@nl{Unknown Ligatures feature `##1' in \MT@curr@list@name. |
| 410 |
Ignoring it}% |
| 411 |
}% |
| 412 |
}}}% |
| 413 |
\fi |
| 414 |
}% |
| 415 |
}% |
| 416 |
} |
| 417 |
\def\MT@tr@set@feature@#1{% |
| 418 |
\MT@tr@set@feature@@#1% |
| 419 |
} |
| 420 |
\def\MT@tr@set@feature@@#1#2{% |
| 421 |
\MT@ifstreq\@tempa{#1}{% |
| 422 |
\MT@tr@set@feature@@@{+#2}% |
| 423 |
}{% |
| 424 |
\MT@ifstreq\@tempa{#1off}{% |
| 425 |
\MT@tr@set@feature@@@{-#2}% |
| 426 |
}{% |
| 427 |
\MT@ifstreq\@tempa{no#1}{% |
| 428 |
\MT@tr@set@feature@@@{-#2}% |
| 429 |
}{% |
| 430 |
\MT@ifstreq\@tempa{#1reset}{% |
| 431 |
\MT@tr@set@feature@@@{+#2;-#2}% |
| 432 |
}\relax |
| 433 |
}% |
| 434 |
}% |
| 435 |
}% |
| 436 |
} |
| 437 |
\def\MT@tr@set@feature@@@#1{% |
| 438 |
\MT@xadd\MT@tr@features{#1;}% |
| 439 |
\MT@if@true |
| 440 |
\MT@tlist@break |
| 441 |
} |
| 442 |
\def\MT@set@lsfont{\MT@exp@two@c\let\font@name\MT@lsfont} |
| 443 |
\DeclareRobustCommand\lsstyle{% |
| 444 |
\not@math@alphabet\lsstyle\textls |
| 445 |
\let\glb@currsize\@empty |
| 446 |
\MT@maybe@gobble@with@tikz{\aftergroup\glb@settings}% |
| 447 |
\def\MT@feat{tr}% |
| 448 |
\let\MT@tracking\MT@set@tr@codes |
| 449 |
\selectfont |
| 450 |
} |
| 451 |
\DeclareRobustCommand\lslig[1]{% |
| 452 |
{\MT@ifdefined@c@TF\MT@curr@ls{% |
| 453 |
\escapechar\m@ne |
| 454 |
\xdef\font@name{\csname\curr@fontshape/\f@size\endcsname}% |
| 455 |
\MT@get@ls@basefont |
| 456 |
\MT@outer@kern=\dimexpr\MT@curr@ls sp * \fontdimen6\font@name/2000\relax |
| 457 |
\kern\MT@outer@kern |
| 458 |
\font@name #1% |
| 459 |
\kern\MT@outer@kern |
| 460 |
}{#1}}% |
| 461 |
} |
| 462 |
\def\MT@get@ls@basefont{% |
| 463 |
\xdef\MT@ls@basefont{\csname\expandafter\string\font@name @base\endcsname}% |
| 464 |
\expandafter\ifx\MT@ls@basefont\relax |
| 465 |
\MT@exp@two@c\MT@glet\MT@ls@basefont\font@name |
| 466 |
\else |
| 467 |
\MT@set@lsbasefont |
| 468 |
\fi |
| 469 |
} |
| 470 |
\def\MT@set@lsbasefont{\MT@exp@two@c\let\font@name\MT@ls@basefont} |
| 471 |
\def\MT@set@tr@zero{% |
| 472 |
\xdef\MT@ls@basefont{\csname\expandafter\string\font@name @base\endcsname}% |
| 473 |
\expandafter\ifx\MT@ls@basefont\relax \else |
| 474 |
\aftergroup\MT@set@lsbasefont |
| 475 |
\fi |
| 476 |
} |
| 477 |
\def\MT@tr@noligatures{% |
| 478 |
\MT@ifstreq\MT@tr@ligatures{all}\relax{% |
| 479 |
\MT@warning@nl{% |
| 480 |
Disabling (selected) ligatures is |
| 481 |
not possible with\MessageBreak xetex. |
| 482 |
Ignoring `no ligatures' key in \MT@curr@list@name |
| 483 |
}% |
| 484 |
\MT@glet\MT@tr@noligatures\relax |
| 485 |
}% |
| 486 |
} |
| 487 |
\newskip\MT@outer@space |
| 488 |
\def\MT@tr@set@space#1,#2,#3,#4,#5,#6,{% |
| 489 |
\let\MT@temp\@empty |
| 490 |
\MT@tr@set@space@{#1}{#4}{2}\@empty |
| 491 |
\MT@tr@set@space@{#2}{#5}{3}\@plus |
| 492 |
\MT@tr@set@space@{#3}{#6}{4}\@minus |
| 493 |
\MT@glet@nc{MT@outer@space\expandafter\string\font@name}\MT@temp |
| 494 |
} |
| 495 |
\def\MT@tr@set@space@#1#2#3#4{% |
| 496 |
\MT@ifempty{#2}{% |
| 497 |
\MT@ifempty{#1}\relax{% |
| 498 |
\MT@tr@set@space@@{#1}{#3}{1000}% |
| 499 |
\fontdimen#3\MT@lsfont=\@tempdima |
| 500 |
}% |
| 501 |
\edef\MT@temp{\MT@temp#4\the\fontdimen#3\MT@lsfont}% |
| 502 |
}{% |
| 503 |
\MT@tr@set@space@@{#2}{#3}{2000}% |
| 504 |
\edef\MT@temp{\MT@temp#4\the\@tempdima}% |
| 505 |
\MT@ifempty{#1}\relax{% |
| 506 |
\MT@tr@set@space@@{#1}{#3}{1000}% |
| 507 |
\fontdimen#3\MT@lsfont=\@tempdima |
| 508 |
}% |
| 509 |
}% |
| 510 |
} |
| 511 |
\def\MT@tr@set@space@@#1#2#3{% |
| 512 |
\MT@test@ast#1*\@nil{% |
| 513 |
\MT@ifdefined@c@TF\MT@tr@unit@ |
| 514 |
{\edef\@tempb{#1}\MT@scale@to@em} |
| 515 |
{\@tempcntb=#1\relax}% |
| 516 |
\@tempdima=\dimexpr\@tempcntb sp*\MT@dimen@six/1000\relax |
| 517 |
}{% |
| 518 |
\MT@ifempty\@tempa{\let\@tempa\MT@letterspace@}\relax |
| 519 |
\@tempdima=\dimexpr \numexpr1000+\@tempa sp *\fontdimen#2\MT@lsfont/1000\relax |
| 520 |
}% |
| 521 |
} |
| 522 |
\def\MT@tr@outer@l{% |
| 523 |
\ifhmode |
| 524 |
\ifdim\lastskip>5sp |
| 525 |
\edef\x{\the\lastskip minus 0pt}% |
| 526 |
\setbox\z@\hbox{\MT@outer@space=\x}% |
| 527 |
\ifdim\wd\z@>\z@ |
| 528 |
\unskip \hskip\MT@outer@space\relax |
| 529 |
\let\MT@ls@outer@k\relax |
| 530 |
\else |
| 531 |
\ifdim\lastskip=% |
| 532 |
\ifnum\spacefactor<2000 |
| 533 |
\spaceskip |
| 534 |
\else |
| 535 |
\ifdim\xspaceskip=\z@ |
| 536 |
\dimexpr\spaceskip+\fontdimen7\font@name\relax |
| 537 |
\else |
| 538 |
\xspaceskip |
| 539 |
\fi |
| 540 |
\fi |
| 541 |
\unskip \hskip\MT@outer@space\relax |
| 542 |
\let\MT@ls@outer@k\relax |
| 543 |
\fi |
| 544 |
\fi |
| 545 |
\fi |
| 546 |
\fi |
| 547 |
} |
| 548 |
\def\MT@tr@outer@r{% |
| 549 |
\futurelet\MT@tr@outer@next\MT@tr@outer@r@ |
| 550 |
} |
| 551 |
\def\MT@if@outer@next#1{% |
| 552 |
\ifx\MT@tr@outer@next#1\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi |
| 553 |
} |
| 554 |
\def\MT@tr@outer@r@{% |
| 555 |
\def\MT@temp*{}% |
| 556 |
\ifmmode \else |
| 557 |
\ifnum\currentgrouptype=10 \else |
| 558 |
\def\MT@temp*##1{\ifhmode\hskip\MT@outer@space |
| 559 |
\fi}% |
| 560 |
\expandafter\ifcat\expandafter\noexpand\csname MT@tr@outer@next\endcsname\egroup |
| 561 |
\ifhmode\unkern\fi\egroup |
| 562 |
\MT@set@curr@ok \MT@set@curr@os |
| 563 |
\def\MT@temp*{\afterassignment\MT@tr@outer@r\let\MT@temp=}% |
| 564 |
\else |
| 565 |
\MT@if@outer@next\maybe@ic{% |
| 566 |
\MT@set@curr@ok \MT@set@curr@os |
| 567 |
\def\MT@temp*{\afterassignment\MT@tr@outer@icr\let\MT@temp=}% |
| 568 |
}{% |
| 569 |
\MT@if@outer@next\check@icr{% |
| 570 |
\def\MT@temp*{\aftergroup\MT@tr@outer@r\check@icr\let\MT@temp=}% |
| 571 |
}{% |
| 572 |
\MT@if@outer@next\@sptoken{% |
| 573 |
\def\MT@temp* {\ifhmode\hskip\MT@outer@space |
| 574 |
\fi}% |
| 575 |
}{% |
| 576 |
\MT@if@outer@next~{% |
| 577 |
\def\MT@temp*~{\nobreak\hskip\MT@outer@space |
| 578 |
}% |
| 579 |
}{% |
| 580 |
\MT@if@outer@next\ \relax{% |
| 581 |
\MT@if@outer@next\space\relax{% |
| 582 |
\MT@if@outer@next\@xobeysp\relax{% |
| 583 |
\MT@if@outer@next\xspace{% |
| 584 |
\def\MT@temp*\xspace{\MT@xspace}% |
| 585 |
}{% |
| 586 |
\def\MT@temp*{\ifdim\MT@outer@kern=\z@\else\MT@ls@outer@k |
| 587 |
\fi}% |
| 588 |
\MT@let@nc{MT@tr@outer@next}\relax |
| 589 |
}}}}}}}}\fi |
| 590 |
\fi\fi |
| 591 |
\MT@temp*% |
| 592 |
} |
| 593 |
\def\MT@tr@outer@icr{\afterassignment\MT@tr@outer@icr@\MT@tr@outer@r} |
| 594 |
\def\MT@tr@outer@icr@{% |
| 595 |
\let\@let@token= \MT@tr@outer@next |
| 596 |
\maybe@ic@ |
| 597 |
} |
| 598 |
\def\MT@xspace{\futurelet\@let@token\MT@xspace@} |
| 599 |
\def\MT@xspace@{\@xspace@firsttrue\@xspace |
| 600 |
\ifdim\lastskip>5sp |
| 601 |
\unskip \hskip\MT@outer@space |
| 602 |
\else |
| 603 |
\ifdim\MT@outer@kern=\z@\else\MT@ls@outer@k \fi |
| 604 |
\fi |
| 605 |
} |
| 606 |
\def\MT@tr@set@okern#1,#2,{% |
| 607 |
\let\MT@temp\@empty |
| 608 |
\MT@ifempty{#1}{\MT@tr@set@okern@{*}}{\MT@tr@set@okern@{#1}}% |
| 609 |
\MT@ifempty{#2}{\MT@tr@set@okern@{*}}{\MT@tr@set@okern@{#2}}% |
| 610 |
\MT@glet@nc{MT@outer@kern\expandafter\string\font@name}\MT@temp |
| 611 |
} |
| 612 |
\def\MT@tr@set@okern@#1{% |
| 613 |
\MT@test@ast#1*\@nil{% |
| 614 |
\MT@ifdefined@c@TF\MT@tr@unit@ |
| 615 |
{\edef\@tempb{#1}\MT@scale@to@em} |
| 616 |
{\@tempcntb=#1\relax}% |
| 617 |
\@tempdima=\dimexpr \@tempcntb sp * \MT@dimen@six/1000\relax |
| 618 |
}{% |
| 619 |
\MT@ifempty\@tempa{\let\@tempa\@m}\relax |
| 620 |
\@tempdima=\dimexpr \numexpr\@tempa*\MT@letterspace@/1000\relax sp |
| 621 |
* \fontdimen6\MT@lsfont/2000\relax |
| 622 |
}% |
| 623 |
\edef\MT@temp{\MT@temp{\the\@tempdima}}% |
| 624 |
} |
| 625 |
\def\MT@ls@outer@k{% |
| 626 |
\ifhmode |
| 627 |
\ifdim\lastkern=-3sp \unkern |
| 628 |
\ifdim\lastkern=3sp \kern-3sp |
| 629 |
\expandafter\expandafter\expandafter\@gobble |
| 630 |
\else \unkern |
| 631 |
\expandafter\expandafter\expandafter\@firstofone |
| 632 |
\fi |
| 633 |
\else |
| 634 |
\expandafter\@firstofone |
| 635 |
\fi |
| 636 |
{\kern\MT@outer@kern\kern3sp\kern-3sp\relax}% |
| 637 |
\fi |
| 638 |
} |
| 639 |
\def\MT@get@slot@{% |
| 640 |
\ifnum\XeTeXfonttype\MT@font=\z@ |
| 641 |
\ifnum\MT@char > \m@ne |
| 642 |
\ifMT@norest \else |
| 643 |
\MT@warn@rest |
| 644 |
\let\MT@char\@empty |
| 645 |
\fi |
| 646 |
\else |
| 647 |
\MT@warn@unknown |
| 648 |
\let\MT@char\@empty |
| 649 |
\fi |
| 650 |
\else |
| 651 |
\ifnum\MT@char=47\relax |
| 652 |
\ifMT@norest \edef\MT@char{U47}% |
| 653 |
\else |
| 654 |
\@tempcnta=\XeTeXglyphindex"\expandafter\@gobble\@tempa"\relax |
| 655 |
\ifnum\@tempcnta=\z@ |
| 656 |
\MT@warn@unknown |
| 657 |
\let\MT@char\@empty |
| 658 |
\else |
| 659 |
\edef\MT@char{\@tempa\space}% |
| 660 |
\edef\MT@char@{-\the\@tempcnta}% |
| 661 |
\fi |
| 662 |
\fi |
| 663 |
\else |
| 664 |
\ifnum\MT@char > \m@ne |
| 665 |
\ifMT@norest |
| 666 |
\@tempcnta=\XeTeXcharglyph\MT@char\relax |
| 667 |
\ifnum\@tempcnta=\z@ |
| 668 |
\MT@info@missing@char |
| 669 |
\let\MT@char\@empty |
| 670 |
\else |
| 671 |
\edef\MT@char{U\MT@char}% |
| 672 |
\fi |
| 673 |
\else |
| 674 |
\MT@warn@rest |
| 675 |
\let\MT@char\@empty |
| 676 |
\fi |
| 677 |
\else |
| 678 |
\MT@warn@unknown |
| 679 |
\let\MT@char\@empty |
| 680 |
\fi |
| 681 |
\fi |
| 682 |
\fi |
| 683 |
} |
| 684 |
\def\MT@max@char |
| 685 |
{1114111 } |
| 686 |
\def\MT@max@slot |
| 687 |
{1114111 } |
| 688 |
\def\MT@active@features{,tr}% |
| 689 |
\renewcommand*\DisableLigatures[2][]{% |
| 690 |
\MT@error{Disabling ligatures of a font is only possible\MessageBreak |
| 691 |
with pdftex version 1.30 or newer.\MessageBreak |
| 692 |
Ignoring \@backslashchar DisableLigatures}{% |
| 693 |
Use |
| 694 |
pdftex.}% |
| 695 |
} |
| 696 |
\def\SetTracking{% |
| 697 |
\MT@begin@catcodes |
| 698 |
\MT@SetTracking |
| 699 |
} |
| 700 |
\newcommand*\MT@SetTracking[3][]{% |
| 701 |
\let\MT@extra@context\@empty |
| 702 |
\MT@set@named@keys{MT@tr@c}{#1}% |
| 703 |
\def\MT@permutelist{tr@c}% |
| 704 |
\setkeys{MT@cfg}{#2}% |
| 705 |
\MT@permute |
| 706 |
\KV@@sp@def\@tempa{#3}% |
| 707 |
\MT@ifempty\@tempa\relax{% |
| 708 |
\MT@ifint\@tempa |
| 709 |
{\MT@xdef@n{MT@tr@c@\MT@tr@c@name}{\@tempa}}% |
| 710 |
{\MT@warning{Value `\@tempa' is not a number in\MessageBreak |
| 711 |
tracking set `\MT@curr@set@name'}}}% |
| 712 |
\MT@end@catcodes |
| 713 |
} |
| 714 |
\define@key{MT@pr@c}{context}[]{% |
| 715 |
\MT@error{Protrusion contexts only work with pdftex |
| 716 |
\MessageBreak or luatex. |
| 717 |
Ignoring `context' key\on@line}% |
| 718 |
{Use pdftex or luatex.}% |
| 719 |
} |
| 720 |
\MT@define@opt@key{tr}{spacing} |
| 721 |
\MT@define@opt@key{tr}{outerspacing} |
| 722 |
\MT@define@opt@key{tr}{outerkerning} |
| 723 |
\MT@define@opt@key{tr}{features} |
| 724 |
\define@key{MT@tr@c}{noligatures}[]% |
| 725 |
{\MT@xdef@n{MT@tr@c@\MT@curr@set@name @noligatures}{#1}} |
| 726 |
\define@key{MT@tr@c}{outer spacing}[]{\setkeys{MT@tr@c}{outerspacing={#1}}} |
| 727 |
\define@key{MT@tr@c}{outer kerning}[]{\setkeys{MT@tr@c}{outerkerning={#1}}} |
| 728 |
\define@key{MT@tr@c}{no ligatures}[]{\setkeys{MT@tr@c}{noligatures={#1}}} |
| 729 |
\def\MT@inh@split#1=#2=#3\relax{% |
| 730 |
\def\@tempa{#1}% |
| 731 |
\ifx\@tempa\@empty \else |
| 732 |
\expandafter\MT@has@inh@prefix\@tempa()\relax\@nil |
| 733 |
\MT@get@slot |
| 734 |
\ifx\MT@char\@empty\else |
| 735 |
\let\MT@val\MT@char |
| 736 |
\MT@map@clist@n{#2}{% |
| 737 |
\def\@tempa{##1}% |
| 738 |
\ifx\@tempa\@empty \else |
| 739 |
\MT@get@slot |
| 740 |
\ifx\MT@char\@empty\else |
| 741 |
\ifx\MT@inh@prefix\@empty |
| 742 |
\MT@exp@cs\MT@xadd{MT@inh@\MT@listname @\MT@val @}{{\MT@char}}% |
| 743 |
\else |
| 744 |
\MT@exp@cs\MT@xadd{MT@inh@\MT@listname @prefixes}% |
| 745 |
{{{\MT@val}{\MT@char}\MT@inh@prefix@}}% |
| 746 |
\fi |
| 747 |
\fi |
| 748 |
\fi |
| 749 |
}% |
| 750 |
\fi |
| 751 |
\fi |
| 752 |
} |
| 753 |
\MT@def@bool@opt{DVIoutput}{% |
| 754 |
\csname if\@tempa\endcsname |
| 755 |
\MT@warning@nl{Ignoring `DVIoutput' option}% |
| 756 |
\fi |
| 757 |
} |
| 758 |
\MT@def@bool@opt{copyfonts}{% |
| 759 |
\csname if\@tempa\endcsname |
| 760 |
\MT@error |
| 761 |
{The `copyfonts' option does not work with xetex} |
| 762 |
{Use pdftex or luatex instead.}% |
| 763 |
\fi |
| 764 |
} |
| 765 |
\def\MT@define@optionX#1#2{% |
| 766 |
\define@key{MTX}{#1}[true]{% |
| 767 |
\edef\@tempb{\csname MT@rbba@#1\endcsname}% |
| 768 |
\MT@map@clist@n{##1}{% |
| 769 |
\KV@@sp@def\MT@val{####1}% |
| 770 |
\MT@ifempty\MT@val\relax{% |
| 771 |
\@tempcnta=\m@ne |
| 772 |
\MT@ifstreq\MT@val{true}{% |
| 773 |
\MT@checksetup{#1}{% |
| 774 |
\@tempcnta=\csname MT@\@tempb @level\endcsname |
| 775 |
\MT@vinfo{Enabling #1 |
| 776 |
(level \number\csname MT@\@tempb @level\endcsname)\on@line}% |
| 777 |
}% |
| 778 |
}{% |
| 779 |
\MT@ifstreq\MT@val{false}{% |
| 780 |
\@tempcnta=\z@ |
| 781 |
\MT@vinfo{Disabling #1\on@line}% |
| 782 |
}{% |
| 783 |
\MT@ifstreq\MT@val{compatibility}{% |
| 784 |
\MT@checksetup{#1}{% |
| 785 |
\@tempcnta=\@ne |
| 786 |
\MT@let@nc{MT@\@tempb @level}\@ne |
| 787 |
\MT@vinfo{Setting #1 to level 1\on@line}% |
| 788 |
}% |
| 789 |
}{% |
| 790 |
\MT@ifstreq\MT@val{nocompatibility}{% |
| 791 |
\MT@checksetup{#1}{% |
| 792 |
\@tempcnta=\tw@ |
| 793 |
\MT@let@nc{MT@\@tempb @level}\tw@ |
| 794 |
\MT@vinfo{Setting #1 to level 2\on@line}% |
| 795 |
}% |
| 796 |
}{\MT@error{Value `\MT@val' for key `#1' not recognised} |
| 797 |
{Use any of `true', `false', `compatibility' or |
| 798 |
`nocompatibility'.}% |
| 799 |
}% |
| 800 |
}% |
| 801 |
}% |
| 802 |
}% |
| 803 |
\ifnum\@tempcnta>\m@ne |
| 804 |
#2\@tempcnta\relax |
| 805 |
\fi |
| 806 |
}% |
| 807 |
}% |
| 808 |
}% |
| 809 |
} |
| 810 |
\def\MT@checksetup#1{% |
| 811 |
\csname ifMT@#1\endcsname |
| 812 |
\expandafter\@firstofone |
| 813 |
\else |
| 814 |
\MT@error{You cannot enable #1 if it was disabled\MessageBreak |
| 815 |
in the package options}{Load microtype with #1 enabled.}% |
| 816 |
\expandafter\@gobble |
| 817 |
\fi |
| 818 |
} |
| 819 |
\MT@define@optionX{protrusion}\MT@protrudechars |
| 820 |
\let\MT@protrudechars\XeTeXprotrudechars |
| 821 |
\define@key{MTX}{expansion}[true]{\MT@warning{Ignoring expansion setup}} |
| 822 |
\def\MT@define@optionX@#1#2{% |
| 823 |
\define@key{MTX}{#1}[true]{% |
| 824 |
\MT@map@clist@n{##1}{% |
| 825 |
\KV@@sp@def\MT@val{####1}% |
| 826 |
\MT@ifempty\MT@val\relax{% |
| 827 |
\@tempcnta=\m@ne |
| 828 |
\MT@ifstreq\MT@val{true}{% |
| 829 |
\MT@checksetup{#1}{% |
| 830 |
\@tempcnta=\@ne |
| 831 |
\MT@vinfo{Enabling #1\on@line}% |
| 832 |
}% |
| 833 |
}{% |
| 834 |
\MT@ifstreq\MT@val{false}{% |
| 835 |
\@tempcnta=\z@ |
| 836 |
\MT@vinfo{Disabling #1\on@line}% |
| 837 |
}{\MT@error{Value `\MT@val' for key `#1' not recognised} |
| 838 |
{Use either `true' or `false'}% |
| 839 |
}% |
| 840 |
}% |
| 841 |
\ifnum\@tempcnta>\m@ne |
| 842 |
#2\relax |
| 843 |
\fi |
| 844 |
}% |
| 845 |
}% |
| 846 |
}% |
| 847 |
} |
| 848 |
\MT@define@optionX@{tracking}{\ifnum\@tempcnta=\z@ \let\MT@tracking\MT@set@tr@zero |
| 849 |
\else \let\MT@tracking\MT@tracking@ \fi} |
| 850 |
\define@key{MTX}{kerning}[true]{\MT@warning{Ignoring kerning setup}} |
| 851 |
\define@key{MTX}{spacing}[true]{\MT@warning{Ignoring spacing setup}} |
| 852 |
\define@key{MTX}{activate}[true]{% |
| 853 |
\setkeys{MTX}{protrusion={#1}}% |
| 854 |
} |
| 855 |
\let\MT@setup@PDF\relax |
| 856 |
\let\MT@setup@copies\relax |
| 857 |
\def\MT@setup@protrusion{% |
| 858 |
\ifMT@protrusion |
| 859 |
\edef\MT@active@features{\MT@active@features,pr}% |
| 860 |
\MT@protrudechars\MT@pr@level |
| 861 |
\MT@info@nl{Character protrusion enabled (level \number\MT@pr@level)% |
| 862 |
\ifnum\MT@pr@factor=\MT@factor@default \else,\MessageBreak |
| 863 |
factor: \number\MT@pr@factor\fi |
| 864 |
\ifx\MT@pr@unit\@empty \else,\MessageBreak unit: \MT@pr@unit\fi}% |
| 865 |
\MT@check@active@set{pr}% |
| 866 |
\else |
| 867 |
\let\MT@protrusion\relax |
| 868 |
\MT@info@nl{No character protrusion}% |
| 869 |
\fi |
| 870 |
} |
| 871 |
\def\MT@setup@expansion{% |
| 872 |
\ifMT@expansion |
| 873 |
\ifMT@opt@expansion |
| 874 |
\MT@error{Font expansion does not work with xetex} |
| 875 |
{Use pdftex or luatex instead.}% |
| 876 |
\fi |
| 877 |
\fi |
| 878 |
} |
| 879 |
\def\MT@setup@tracking{% |
| 880 |
\ifMT@tracking |
| 881 |
\MT@info@nl{Tracking enabled}% |
| 882 |
\MT@check@active@set{tr}% |
| 883 |
\ifMT@protrusion\else\MT@protrudechars\@ne\fi |
| 884 |
\else |
| 885 |
\let\MT@tracking\relax |
| 886 |
\MT@info@nl{No adjustment of tracking}% |
| 887 |
\fi |
| 888 |
} |
| 889 |
\def\MT@error@doesnt@work#1{% |
| 890 |
\csname ifMT@#1\endcsname |
| 891 |
\MT@error{The #1 feature only works with pdftex 1.40\MessageBreak |
| 892 |
or newer. Switching it off} |
| 893 |
{Use pdftex instead.}% |
| 894 |
\csname MT@#1false\endcsname |
| 895 |
\MT@let@nc{MT@#1}\relax |
| 896 |
\else |
| 897 |
\MT@info@nl{No adjustment of #1% |
| 898 |
}% |
| 899 |
\fi |
| 900 |
} |
| 901 |
\def\MT@setup@kerning {\MT@error@doesnt@work{kerning}} |
| 902 |
\def\MT@setup@spacing {\MT@error@doesnt@work{spacing}} |
| 903 |
\def\MT@setup@warntracking |
| 904 |
{% |
| 905 |
\ifnum\MT@letterspace=\m@ne |
| 906 |
\let\MT@letterspace\MT@letterspace@default |
| 907 |
\else |
| 908 |
\MT@ls@too@large\MT@letterspace |
| 909 |
\fi |
| 910 |
} |
| 911 |
\let\MT@setup@noligatures\relax |
| 912 |
\endinput |
| 913 |
%% |
| 914 |
%% End of file `microtype-xetex.def'. |