diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/microtype/microtype.cfg')
-rw-r--r-- | Master/texmf-dist/tex/latex/microtype/microtype.cfg | 155 |
1 files changed, 151 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/microtype/microtype.cfg b/Master/texmf-dist/tex/latex/microtype/microtype.cfg index 1ecd0090bef..d3dc6e480a9 100644 --- a/Master/texmf-dist/tex/latex/microtype/microtype.cfg +++ b/Master/texmf-dist/tex/latex/microtype/microtype.cfg @@ -9,7 +9,7 @@ %% ------------------------------------------------------------------------ %% The `microtype' package %% An interface to the micro-typographic extensions of pdfTeX -%% Copyright (c) 2004--2006 R Schlicht <w.m.l@gmx.net> +%% Copyright (c) 2004--2007 R Schlicht <w.m.l@gmx.net> %% %% This work may be distributed and/or modified under the conditions of the %% LaTeX Project Public License, either version 1.3c of this license or (at @@ -20,12 +20,13 @@ %% This work has the LPPL maintenance status `author-maintained'. %% %% This work consists of the files microtype.dtx and microtype.ins and the -%% derived file microtype.sty. +%% derived files microtype.sty and letterspace.sty. %% %% ------------------------------------------------------------------------ %% This is the main configuration file for the `microtype' package. %% It contains settings for font expansion and character protrusion, -%% as well as character inheritance and font set declarations. +%% interword spacing and additional kerning, as well as character +%% inheritance and font set declarations. %% Please consult the documentation for details. %% %% You may customize these settings here, or in a different file. If @@ -36,7 +37,7 @@ %% ------------------------------------------------------------------------ %% \ProvidesFile - {microtype.cfg}[2006/04/20 v1.8 microtype main configuration file (RS)] + {microtype.cfg}[2007/01/14 v2.0 microtype main configuration file (RS)] %%% ----------------------------------------------------------------------- %%% FONT SETS @@ -64,6 +65,21 @@ size = {normalsize,footnotesize,small,large} } +\DeclareMicrotypeSet{smallcaps} + { encoding = {OT1,T1,LY1,OT4,QX,T5,TS1}, + shape = {sc} + } + +\DeclareMicrotypeSet{footnotesize} + { encoding = {OT1,T1,LY1,OT4,QX,T5,TS1}, + size = {-small} + } + +\DeclareMicrotypeSet{scriptsize} + { encoding = {OT1,T1,LY1,OT4,QX,T5,TS1}, + size = {-footnotesize} + } + \DeclareMicrotypeSet{normalfont} { font = */*/*/*/* } @@ -72,6 +88,9 @@ \DeclareMicrotypeSetDefault[protrusion]{alltext} \DeclareMicrotypeSetDefault[expansion] {basictext} +\DeclareMicrotypeSetDefault[spacing] {basictext} +\DeclareMicrotypeSetDefault[kerning] {alltext} +\DeclareMicrotypeSetDefault[tracking] {normalfont} %%% ----------------------------------------------------------------------- %%% FONT ALIASES @@ -94,6 +113,21 @@ \DeclareMicrotypeAlias{euroitcs}{euroitc} % ITC Euro sans -> serif %%% ----------------------------------------------------------------------- +%%% INTERACTION WITH THE `babel' PACKAGE + +\DeclareMicrotypeBabelHook + {french,francais,acadian,canadien} + {kerning=french, spacing=} + +\DeclareMicrotypeBabelHook + {english,UKenglish,british,american,USenglish} + {kerning=, spacing=nonfrench} + +\DeclareMicrotypeBabelHook + {turkish} + {kerning=turkish, spacing=} + +%%% ----------------------------------------------------------------------- %%% CHARACTER INHERITANCE \DeclareCharacterInheritance @@ -513,6 +547,119 @@ \textdegree = {300,300}, } +%%% ----------------------------------------------------------------------- +%%% INTERWORD SPACING SETTINGS + +\SetExtraSpacing + [ name = default ] + { encoding = {OT1,T1,LY1,OT4,QX,T5} } + { + {,} = { ,-500,500}, + r = { ,-300,300}, + b = { ,-200,200}, + d = { ,-200,200}, + f = { ,-200,200}, + h = { ,-200,200}, + k = { ,-200,200}, + l = { ,-200,200}, + t = { ,-200,200}, + c = { ,-100,100}, + p = { ,-100,100}, + v = { ,-100,100}, + w = { ,-100,100}, + z = { ,-100,100}, + x = { ,-100,100}, + y = { ,-100,100}, % ? + i = { , 50, -50}, + m = { , 50, -50}, + n = { , 50, -50}, + u = { , 50, -50}, + : = { ,200,-200}, + ; = { ,200,-200}, + . = { ,250,-250}, + ! = { ,250,-250}, + ? = { ,250,-250}, + } + +\SetExtraSpacing + [ name = nonfrench-cmr, + load = default, + context = nonfrench ] + { encoding = {OT1,T1,LY1,OT4,QX,T5}, + family = cmr } + { + . = {333,2000,-667}, + ? = {333,2000,-667}, + ! = {333,2000,-667}, + : = {333,1000,-500}, + ; = { , 500,-333}, + {,}= { , 250,-200}, + } + +\SetExtraSpacing + [ name = nonfrench-default, + load = default, + context = nonfrench ] + { encoding = {OT1,T1,LY1,OT4,QX,T5} } + { + . = {240,2000,-667}, + ? = {240,2000,-667}, + ! = {240,2000,-667}, + : = {240,1000,-500}, + ; = { , 500,-333}, + {,}= { , 250,-200}, + } + +%%% ----------------------------------------------------------------------- +%%% ADDITIONAL KERNING + +\SetExtraKerning + [ name = empty ] + { encoding = {OT1,T1,LY1,OT4,QX,T5,TS1} } + { } + +\SetExtraKerning + [ name = french-default, + context = french, + unit = space ] + { encoding = {OT1,T1,LY1} } + { + : = {1000,}, % = \fontdimen2 + ; = {500, }, % ~ \thinspace + ! = {500, }, + ? = {500, }, + } + +\SetExtraKerning + [ name = french-guillemets, + context = french-guillemets, + load = french-default, + unit = space ] + { encoding = {T1,LY1} } + { + \guillemotleft = { ,800}, % = 0.8\fontdimen2 + \guillemotright = {800, }, + } + +\SetExtraKerning + [ name = french-guillemets-OT1, + context = french-guillemets, + load = french-default, + unit = space ] + { encoding = OT1 } + { } + +\SetExtraKerning + [ name = turkish, + context = turkish, + unit = space ] + { encoding = {OT1,T1,LY1} } + { + : = {500, }, % ~ \thinspace + ! = {500, }, + {=} = {500, }, + } + \endinput %% %% End of file `microtype.cfg'. |