Debian Codegraph @

texmf-dist/source/latex/microtype/microtype.ins

raw
1 %
2 % ------------------------------------------------------------------------
3 \input docstrip
4 \keepsilent
5 \askonceonly
6 \let\MetaPrefix\relax
7 \preamble
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 % Modified versions of the configuration files (*.cfg) may be distributed
29 % provided that: (1) the original copyright statement is not removed, and
30 % (2) the identification string is changed.
31 ------------------------------------------------------------------------
32
33 \endpreamble
34 {\catcode`\^^M=13 %
35 \gdef\declarepreambleX#1#2
36 \endpreamble{\endgroup%
37 \def^^M{^^J\MetaPrefix\space}%
38 \edef#1{\firstpreamblepart\checkeoln#2\lastpreamblepart\empty}}}
39 \def\defaultlastpreamblepart{^^J\MetaPrefix\space
40 ------------------------------------------------------------------------
41 ^^J\MetaPrefix}
42 \let\firstpreamblepart\defaultpreamble
43 \let\lastpreamblepart \defaultlastpreamblepart
44 \declarepreamble\lsppreamble
45 This is a stand-alone version that only provides the letterspacing
46 commands. Do not use this package together with the `microtype' package.
47 Please refer to section 7 of the `microtype' documentation.
48 \endpreamble
49 \declarepreamble\defpreamble
50 This file contains enginge-specific definitions.
51 \endpreamble
52 \declarepreamble\luapreamble
53 This file contains auxiliary lua functions.
54 It was originally contributed by Elie Roux <elie.roux{at}telecom-bretagne.eu>.
55 (Bugs are mine.)
56 \endpreamble
57 \declarepreamble\cfgpreamble
58 This is the main configuration file for the `microtype' package.
59 It contains settings for font expansion and character protrusion,
60 tracking, interword spacing and additional kerning, as well as
61 character inheritance and font set declarations.
62 You may customise these settings here, or in a different file.
63 Please consult the documentation for details.^^M
64 If you think you have found improvements to these settings, please
65 let me know.^^M
66 When modifying this file, also change the identification line below.
67 \endpreamble
68 \declarepreamble\fontpreamble
69 This is a font-specific configuration file for the `microtype' package.
70 It may contain settings for font expansion and character protrusion,
71 tracking, interword spacing and additional kerning, as well as
72 character inheritance declarations.
73 Please consult the documentation for details.^^M
74 If you think you have found improvements to these settings, please
75 let me know.^^M
76 When modifying this file, also change the identification line below.
77 \endpreamble
78 \declarepreamble\showpreamble
79 This companion package offers various commands that might be helpful
80 when creating protrusion settings. See the documentation in microtype's
81 User manual, section 10, and the examples in test-microtype.tex.
82 \endpreamble
83 \declarepreamble\testpreamble
84 This file might be useful to test protrusion settings for a font.
85 You may do with it whatever you want.
86 \endpreamble
87 \let\firstpreamblepart\fontpreamble
88 \let\lastpreamblepart \empty
89 \declarepreamble\contribpreamble^^M
90 These settings have been prepared by, and are copied with the
91 generous permission of:
92 \endpreamble
93 \let\firstpreamblepart\contribpreamble
94 \let\lastpreamblepart \defaultlastpreamblepart
95 \declarepreamble\haraldandkarlpreamble^^M
96 Harald Harders <h.harders{at}tu-bs.de> and
97 Karl Karlsson <karl-karlsson{at}yandex.ru>.^^M
98 \endpreamble
99 \declarepreamble\antonispreamble^^M
100 Antonis Tsolomitis <antonis.tsolomitis{at}gmail.com>^^M
101 \endpreamble
102 \declarepreamble\lorenpreamble^^M
103 Loren B. Davis. (c) 2012
104
105 ------------------------------------------------------------------------
106 Palatino is a registered trademark of Linotype GmbH.
107 Used without permission.
108 \endpreamble
109 \declarepostamble\emptypostamble
110 \endpostamble
111
112 % ------------------------------------------------------------------------
113
114 \def\makefile#1#2{\file{#1}{\from{microtype.dtx}{#2}}}
115 \def\makecfg#1#2{\makefile{mt-#2.cfg}{config,cfg-#1,#2}}
116 \def\makeutfcfg#1{\file{mt-#1.cfg}{\from{microtype-utf.dtx}{#1}}}
117 \def\makemixedcfg#1#2{\file{mt-#1.cfg}
118 {\from{microtype.dtx}{config,cfg-t,#2}
119 \from{microtype-utf.dtx}{#1}}}
120
121 \usedir{tex/latex/microtype}
122 \let\MetaPrefix\DoubleperCent
123 \let\DEBUG\empty
124 %\def\DEBUG{,debug}
125
126 \generate{
127 \makefile{microtype.sty}{package\DEBUG}
128 \usepreamble\defpreamble
129 \makefile{microtype-pdftex.def}{pdf-\DEBUG}
130 \makefile{microtype-luatex.def}{lua-\DEBUG}
131 \makefile{microtype-xetex.def} {xe-\DEBUG}
132 \usepreamble\lsppreamble
133 \makefile{letterspace.sty}{letterspace,plain}
134 \usepreamble\cfgpreamble
135 \makefile{microtype.cfg}{config,cfg-t,m-t}
136 \usepreamble\fontpreamble
137 \makecfg{t}{bch}
138 \makecfg{t}{blg}
139 \makecfg{t}{cmr}
140 \makecfg{t}{ppl}
141 \makecfg{t}{ptm}
142 \makecfg{t}{ugm}
143 \makecfg{u}{msa}
144 \makecfg{u}{msb}
145 \makecfg{u}{euf}
146 \makecfg{u}{eur}
147 \makecfg{u}{eus}
148 \makecfg{e}{zpeu}
149 \makecfg{e}{mvs}
150 \makeutfcfg{LatinModernRoman}
151 \makeutfcfg{CharisSIL}
152 \makeutfcfg{TU-basic}
153 \makeutfcfg{TU-empty}
154 \makemixedcfg{EBGaramond}{ebg}
155 \usepreamble\haraldandkarlpreamble
156 \makecfg{t}{pmn}
157 \usepreamble\lorenpreamble
158 \makeutfcfg{Palatino}
159 \usepreamble\antonispreamble
160 \makeutfcfg{NewComputerModern}
161 \usepreamble\showpreamble
162 \makefile{microtype-show.sty}{show\DEBUG}
163 \usepreamble\testpreamble
164 \makefile{test-microtype.tex}{test}
165 }
166
167 \usepostamble\emptypostamble
168
169 %% package for the extra documentation
170 %% (microtype-utf.dtx, microtype-logo.dtx, microtype-lssample.dtx):
171 %\generate{\makefile{microtype-doc.sty}{docsty}}
172 %% makeindex style
173 %\generate{\makefile{microtype-gind.ist}{docist}}
174
175 \def\MetaPrefix{--}
176 \generate{
177 \usepreamble\luapreamble
178 \makefile{microtype.lua}{luafile}
179 }
180
181 \obeyspaces
182 \Msg{***********************************************************************}
183 \Msg{* To finish installation, move all files to their appropriate places. *}
184 \Msg{* See the documentation for details. *}
185 \Msg{***********************************************************************}
186
187 \endbatchfile