CONFIGURATION FILES 134Finally, execute the setup macro at the end of the preamble, and empty it (thecombine class calls it repeatedly).4540 4541 \MT@requires@latex1{4542 \AtBeginDocument{\MT@setup@ \MT@glet\MT@setup@\@empty}4543 }\relax4544 Must come at the very, very end.4545 \MT@ifdefined@c@T\MT@setup@spacing@check4546 {\AtBeginDocument{\MT@setup@spacing@check}}Restore catcodes.4547 \MT@restore@catcodesThat was that.15 Configuration filesLet’s now write the font configuration files.4548 454915.1 Font setsWe first declare some sets in the main configuration file.4550 4551 %%% -----------------------------------------------------------------------4552 %%% FONT SETS45534554 \DeclareMicrotypeSet{all}4555 { }45564557 \DeclareMicrotypeSet{allmath}4558 { encoding = {OT1,T1,T2A,LY1,OT4,QX,T5,EU1,EU2,TS1,OML,OMS,U} }45594560 \DeclareMicrotypeSet{alltext}4561 { encoding = {OT1,T1,T2A,LY1,OT4,QX,T5,TS1,EU1,EU2} }45624563 \DeclareMicrotypeSet{basicmath}4564 { encoding = {OT1,T1,T2A,LY1,OT4,QX,T5,EU1,EU2,OML,OMS},4565 family = {rm*,sf*},4566 series = {md*},4567 size = {normalsize,footnotesize,small,large}4568 }45694570 \DeclareMicrotypeSet{basictext}4571 { encoding = {OT1,T1,T2A,LY1,OT4,QX,T5,EU1,EU2},4572 family = {rm*,sf*},4573 series = {md*},4574 size = {normalsize,footnotesize,small,large}4575 }45764577 \DeclareMicrotypeSet{smallcaps}4578 { encoding = {OT1,T1,T2A,LY1,OT4,QX,T5,TS1,EU1,EU2},4579 shape = {sc*}4580 }4581
CONFIGURATION FILES: Font variants and aliases 1354582 \DeclareMicrotypeSet{footnotesize}4583 { encoding = {OT1,T1,T2A,LY1,OT4,QX,T5,TS1,EU1,EU2},4584 size = {-small}4585 }45864587 \DeclareMicrotypeSet{scriptsize}4588 { encoding = {OT1,T1,T2A,LY1,OT4,QX,T5,TS1,EU1,EU2},4589 size = {-footnotesize}4590 }45914592 \DeclareMicrotypeSet{normalfont}4593 { font = */*/*/*/* }4594<strong>The</strong> default sets.4595 %%% -----------------------------------------------------------------------4596 %%% DEFAULT SETS45974598 \DeclareMicrotypeSetDefault[protrusion]{alltext}4599 \DeclareMicrotypeSetDefault[expansion] {basictext}4600 \DeclareMicrotypeSetDefault[spacing] {basictext}4601 \DeclareMicrotypeSetDefault[kerning] {alltext}4602 \DeclareMicrotypeSetDefault[tracking] {smallcaps}460315.2 Font variants and aliases4604 %%% -----------------------------------------------------------------------4605 %%% FONT VARIANTS AND ALIASES4606<strong>The</strong>se are the variants I happen to be using (expert encoding, oldstyle numerals,swashes, alternative, display, inferior and superior numerals):4607 \DeclareMicrotypeVariants{x,j,w,a,d,0,1}4608Other candidates: 2 (proportional digits), e (engraved), f (Fraktur), g (small text),h (shadow), l (outline), n (informal), p (ornaments), r (roman), s (sans serif),t (typewriter). I’ve omitted them since they seem hardly be used and/or they areactually more than just a variant, i.e., they shouldn’t share a file.Fonts that are ‘the same’: <strong>The</strong> fontspec <strong>package</strong> will use lmr by default, whoseEU1/2 encoding is declared in mt-LatinModernRoman.cfg.4609 \ifMT@fontspec4610 \DeclareMicrotypeAlias{lmr} {Latin Modern Roman}4611 \else4612 \DeclareMicrotypeAlias{lmr} {cmr} % lmodern4613 \fi<strong>The</strong> Latin Modern fonts, the virtual fonts from the ae and zefonts, and the ecoand hfoldsty <strong>package</strong>s (oldstyle numerals) all inherit the (basic) settings fromComputer Modern Roman. Some of them are in part overwritten later. We mustn’tforget the Latin Modern math fonts.4614 \DeclareMicrotypeAlias{lmsy}{cmsy}4615 \DeclareMicrotypeAlias{lmm} {cmm}4616 \DeclareMicrotypeAlias{aer} {cmr} % ae4617 \DeclareMicrotypeAlias{zer} {cmr} % zefonts4618 \DeclareMicrotypeAlias{cmor}{cmr} % eco4619 \DeclareMicrotypeAlias{hfor}{cmr} % hfoldsty<strong>The</strong> <strong>package</strong>s pxfonts and txfonts fonts inherit Palatino and Times settings respectively,also the TEX Gyre fonts Pagella and Termes (formerly: qfonts).