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 90\MT@is@active\MT@undefined@charpermitted.2523 \def\MT@is@number#1#2#3\relax{%2524 \ifx\relax#3\relax \else2525 \ifx\relax#2\relax \else2526 \MT@noresttrue2527 \if#1"\relax2528 \def\x{\uppercase{\edef\MT@char@{\number#1#2#3}}}\x2529 \MT@dinfo@nl{3}{> ... a hexadecimal number: \MT@char@}%2530 \else2531 \if#1’\relax2532 \def\MT@char@{\number#1#2#3}%2533 \MT@dinfo@nl{3}{> ... an octal number: \MT@char@}%2534 \else2535 \MT@ifint{#1#2#3}{%2536 \def\MT@char@{\number#1#2#3}%2537 \MT@dinfo@nl{3}{> ... a decimal number: \MT@char@}%2538 }\MT@norestfalse2539 \fi2540 \fi2541 \ifnum\MT@char@ > \MT@max@slot2542 \MT@warn@number@too@large{\noexpand#1\noexpand#2\noexpand#3}%2543 \let\MT@char@\m@ne2544 \fi2545 \fi2546 \fi2547 }Expand an active character. (This was completely broken in v1.7, and only workedby chance before.) We \set@display@protect to translate, e.g., Ä into \"A, that isto whatever it is defined in the inputenc encoding file.Unfortunately, the (older) inputenc definitions prefer the protected/genericvariants (e.g., \copyright instead of \textcopyright), which our parser won’tbe able to understand. (I’m fed up now, so you have to complain if you really,really want to be able to write ‘©’ instead of \textcopyright, thus rendering yourconfiguration files unportable.)Unicode characters (inputenc/utf8,utf8x) are also supported.2548 \def\MT@is@active#1#2\@nil{%2549 \ifnum\catcode`#1 = \active2550 \begingroup2551 \set@display@protect2552 \let\IeC\@firstofone2553 \let\@inpenc@undefined@\MT@undefined@charWe refrain from checking whether there is a sufficient number of octets.2554 \def\UTFviii@defined##1{\ifx ##1\relax2555 \MT@undefined@char{utf8}\else\expandafter ##1\fi}%For ucs (utf8x). Let’s call it experimental . . .2556 \MT@ifdefined@c@T\PrerenderUnicode2557 {\PrerenderUnicode{\@tempa}\let\unicode@charfilter\@firstofone}%2558 \edef\x{\endgroup2559 \def\noexpand\@tempa{\@tempa}%Append what we think the translation is to the token register we use for the log.2560 \MT@toks={\the\MT@toks\space(= \@tempa)}%2561 }%2562 \x2563 \fi2564 }For characters not defined in the current input encoding.2565 \def\MT@undefined@char#1{undefined in input encoding ``#1’’}

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

Saved successfully!

Ooh no, something went wrong!