Debian Codegraph @

texk/kpathsea/texmf.cnf

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 % original texmf.cnf -- runtime path configuration file for kpathsea.
2 % Public domain.
3 %
4 % If you modify this original file, YOUR CHANGES WILL BE LOST when it is
5 % updated. Instead, put your changes -- and only your changes, not an
6 % entire copy! -- in ../../texmf.cnf. That is, if this file is
7 % installed in /some/path/to/texlive/2026/texmf-dist/web2c/texmf.cnf,
8 % put your custom settings in /some/path/to/texlive/2026/texmf.cnf.
9 % (Below, we use YYYY in place of the specific year.)
10 %
11 % What follows is a super-summary of what this .cnf file can
12 % contain. Please read the Kpathsea manual for more information.
13 %
14 % Each statement in this file boils down to:
15 % <variable>[.<program>] [=] <value>
16 %
17 % Neither the <variable> nor the <value> may be empty.
18 % Any identifier (sticking to A-Za-z_ for names is safest) can be assigned.
19 % The `=' (and surrounding spaces) is optional.
20 % $foo (or ${foo}) in a value expands to the envvar or cnf value of foo.
21 % Lines can be continued with a \; no whitespace removal is done.
22 %
23 % Earlier entries (in the same or another file) override later ones, and
24 % an environment variable foo overrides any texmf.cnf definition of foo.
25 %
26 % All definitions are read before anything is expanded, so you can use
27 % variables before they are defined.
28 %
29 % If a variable assignment is qualified with `.PROGRAM', it is ignored
30 % unless the current executable (last filename component of argv[0]) is
31 % named PROGRAM. This foo.PROGRAM construct is not recognized on the
32 % right-hand side. For environment variables, use FOO_PROGRAM.
33 %
34 % Which file formats use which paths for searches is described in the
35 % various programs' and the Kpathsea documentation (http://tug.org/kpathsea).
36 %
37 % // means to search subdirectories (recursively).
38 % A leading !! means to look only in the ls-R db, never on the disk.
39 % In this file, either ; or : can be used to separate path components.
40 % A leading/trailing/doubled path separator in the paths will be
41 % expanded into the compile-time default. Probably not what you want.
42 %
43 % Brace notation is supported, for example: /usr/local/{mytex,othertex}
44 % expands to /usr/local/mytex:/usr/local/othertex.
45
46
47 % Part 1: Search paths and directories.
48
49 % This is the parent directory of our several trees, i.e.,
50 % /usr/local/texlive/YYYY in the original TeX Live distribution.
51 %
52 % The path definitions here assume the directories are organized
53 % according to the TeX Directory Structure (http://tug.org/tds).
54 %
55 % Redistributors will probably want $SELFAUTODIR/share, i.e., /usr/share.
56 % Kpathsea sets (in kpathsea/progname.c):
57 % SELFAUTOLOC (directory of the binary=/usr/local/texlive/YYYY/bin/i386-linux),
58 % SELFAUTODIR (its parent = /usr/local/texlive/YYYY/bin),
59 % SELFAUTOPARENT (its grandparent = /usr/local/texlive/YYYY), and
60 % SELFAUTOGRANDPARENT (its great-grandparent = /usr/local/texlive).
61 % Sorry for the off-by-one-generation names.
62 TEXMFROOT = $SELFAUTOPARENT
63
64 % The various texmf trees used by TeX Live, follow.
65 % They must must all have the TDS directory structure (https://tug.org/tds).
66
67 % The main tree of distributed packages and programs:
68 TEXMFDIST = $TEXMFROOT/texmf-dist
69
70 % We used to have a separate /texmf tree with some core programs and files.
71 % Keep the variable name.
72 TEXMFMAIN = $TEXMFDIST
73
74 % Local additions to the distribution trees.
75 TEXMFLOCAL = $SELFAUTOGRANDPARENT/texmf-local
76
77 % TEXMFSYSVAR, where *-sys store cached runtime data.
78 TEXMFSYSVAR = $TEXMFROOT/texmf-var
79
80 % TEXMFSYSCONFIG, where *-sys store configuration data.
81 TEXMFSYSCONFIG = $TEXMFROOT/texmf-config
82
83 % Per-user texmf tree(s) -- organized per the TDS, as usual. To define
84 % more than one per-user tree, set this to a list of directories in
85 % braces, as described above. (This used to be HOMETEXMF.) ~ expands
86 % to %USERPROFILE% on Windows, $HOME otherwise.
87 TEXMFHOME = ~/texmf
88
89 % TEXMFVAR, where texconfig/updmap/fmtutil store cached runtime data.
90 TEXMFVAR = ~/.texlive2026/texmf-var
91
92 % TEXMFCONFIG, where texconfig/updmap/fmtutil store configuration data.
93 TEXMFCONFIG = ~/.texlive2026/texmf-config
94
95 % This is the value manipulated by tlmgr's auxtrees subcommand in the
96 % root texmf.cnf. Kpathsea warns about a literally empty string for a
97 % value, hence the empty braces.
98 TEXMFAUXTREES = {}
99
100 % List of all the texmf trees. For an explanation of what they are, see the
101 % TeX Live manual.
102 %
103 % For texconfig to work properly, TEXMFCONFIG and TEXMFVAR should be named
104 % explicitly and before other trees.
105 %
106 % TEXMFLOCAL precedes TEXMFDIST because locally-installed versions
107 % should take precedence over distribution files -- although it is
108 % generally a source of confusion to have different versions of a
109 % package installed, whatever the trees, so try to avoid it.
110 %
111 % The odd-looking $TEXMFAUXTREES$TEXMF... construct is so that if no auxtree
112 % is defined (99% common case), no extra elements will be added to
113 % the search paths. tlmgr takes care to end any value with a trailing comma.
114 TEXMF = {$TEXMFAUXTREES$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,!!$TEXMFLOCAL,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFDIST}
115
116 % Where to look for, and where mktexlsr creates, ls-R files. By default,
117 % this is all and only the !! elements of TEXMF, so that mktexlsr does not
118 % create ls-R files in the non-!! elements -- because if an ls-R is
119 % present, it will be used, and the disk will not (usually) be searched,
120 % regardless of !!. Although in theory a directory listed here need
121 % not contain an ls-R file, in practice they all should.
122 TEXMFDBS = {!!$TEXMFLOCAL,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFDIST}
123
124 % The system trees. These are the trees that are shared by all users.
125 % If a tree appears in this list, the mktex* scripts will use
126 % VARTEXFONTS for generated files, if the original tree isn't writable;
127 % otherwise the current working directory is used.
128 SYSTEXMF = $TEXMFSYSVAR;$TEXMFLOCAL;$TEXMFDIST
129
130 % First writable tree here is used by Lua(La)TeX for the font cache.
131 % LuaLaTeX uses the value here, while ConTeXt uses the same variable but
132 % from texmfcnf.lua; therefore the two values should be kept in sync.
133 % (As should everything else in texmf.cnf <-> texmfcnf.lua.)
134 TEXMFCACHE = $TEXMFSYSVAR;$TEXMFVAR
135
136 % Where generated fonts may be written. This tree is used when the sources
137 % were found in a system tree and either that tree wasn't writable, or the
138 % varfonts feature was enabled in MT_FEATURES in mktex.cnf.
139 VARTEXFONTS = $TEXMFVAR/fonts
140
141 % On some systems, there will be a system tree which contains all the font
142 % files that may be created as well as the formats. For example
143 % TEXMFVAR = /var/lib/texmf
144 % is used in many distros. In this case, set VARTEXFONTS like this
145 %VARTEXFONTS = $TEXMFVAR/fonts
146 % and do not mention it in TEXMFDBS (but _do_ mention TEXMFVAR).
147 %
148 % Remove $VARTEXFONTS from TEXMFDBS if the VARTEXFONTS directory is below
149 % one of the TEXMF directories (avoids overlapping ls-R files).
150
151
152 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
153 % Usually you will not need to edit any of the following variables.
154 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
155
156 % WEB2C is for Web2C specific files. The current directory may not be
157 % a good place to look for them.
158 WEB2C = $TEXMF/web2c
159
160 % This variable exists only to be redefined; it is used in nearly all
161 % search paths. If a document has source files not only in the current
162 % directory but also in subdirectories, it is convenient to set
163 % TEXMFDOTDIR=.// so that everything will be searched automatically,
164 % without the need to set up the TDS directory structure (since this is
165 % a "directory" and not a "tree").
166 % On the other hand, if you never want the current directory to be
167 % searched at all, setting TEXMFDOTDIR=/nonesuch comes close.
168 %
169 TEXMFDOTDIR = .
170
171 % TEXINPUTS is for TeX input files -- i.e., anything to be found by \input
172 % or \openin, including .sty, .eps, etc. We specify paths for all known
173 % formats, past or present. Not all of them are built these days.
174
175 % Plain TeX. Have the command tex check all directories as a last
176 % resort, we may have plain-compatible stuff anywhere. Prefer
177 % latex/ to latex-dev/, implying that we have to add a latex, element to
178 % every TEXINPUTS tree that recursively searches $TEXMF/tex//, which is
179 % all of them except ConTeXt.
180 TEXINPUTS.tex = $TEXMFDOTDIR;$TEXMF/tex/{plain,generic,latex,}//
181
182 % Fontinst needs to read afm files.
183 TEXINPUTS.fontinst = $TEXMFDOTDIR;$TEXMF/{tex,fonts/afm}//
184
185 % Other plain-based formats.
186 TEXINPUTS.amstex = $TEXMFDOTDIR;$TEXMF/tex/{amstex,plain,generic,latex,}//
187 TEXINPUTS.csplain = $TEXMFDOTDIR;$TEXMF/tex/{csplain,plain,generic,latex,}//
188 TEXINPUTS.eplain = $TEXMFDOTDIR;$TEXMF/tex/{eplain,plain,generic,latex,}//
189 TEXINPUTS.ftex = $TEXMFDOTDIR;$TEXMF/tex/{formate,plain,generic,latex,}//
190 TEXINPUTS.mex = $TEXMFDOTDIR;$TEXMF/tex/{mex,plain,generic,latex,}//
191 TEXINPUTS.texinfo = $TEXMFDOTDIR;$TEXMF/tex/{texinfo,plain,generic,latex,}//
192
193 % LaTeX2e specific macros are stored in latex/, macros that can only be
194 % used with 2.09 in latex209/. In addition, we look in the directory
195 % latex209, useful for macros that were written for 2.09 and do not
196 % mention 2e at all, but can be used with 2e. The latex-dev/ subtree
197 % may contain release candidates for testing.
198 TEXINPUTS.cslatex = $TEXMFDOTDIR;$TEXMF/tex/{cslatex,csplain,latex,generic,}//
199 TEXINPUTS.latex = $TEXMFDOTDIR;$TEXMF/tex/{latex,generic,}//
200 TEXINPUTS.latex-dev = $TEXMFDOTDIR;$TEXMF/tex/{latex-dev,latex,generic,}//
201 TEXINPUTS.latex209 = $TEXMFDOTDIR;$TEXMF/tex/{latex209,generic,latex,}//
202 TEXINPUTS.olatex = $TEXMFDOTDIR;$TEXMF/tex/{latex,generic,}//
203
204 % e-TeX.
205 TEXINPUTS.elatex = $TEXMFDOTDIR;$TEXMF/tex/{latex,generic,}//
206 TEXINPUTS.etex = $TEXMFDOTDIR;$TEXMF/tex/{plain,generic,latex,}//
207
208 % MLTeX.
209 TEXINPUTS.frlatex = $TEXMFDOTDIR;$TEXMF/tex/{french,latex,generic,}//
210 TEXINPUTS.frtex = $TEXMFDOTDIR;$TEXMF/tex/{french,plain,generic,latex,}//
211 TEXINPUTS.mllatex = $TEXMFDOTDIR;$TEXMF/tex/{latex,generic,}//
212 TEXINPUTS.mltex = $TEXMFDOTDIR;$TEXMF/tex/{plain,generic,latex,}//
213
214 % pdfTeX.
215 TEXINPUTS.pdfcslatex = $TEXMFDOTDIR;$TEXMF/tex/{cslatex,csplain,latex,generic,}//
216 TEXINPUTS.pdfcsplain = $TEXMFDOTDIR;$TEXMF/tex/{csplain,plain,generic,latex,}//
217 TEXINPUTS.pdflatex = $TEXMFDOTDIR;$TEXMF/tex/{latex,generic,}//
218 TEXINPUTS.pdflatex-dev = $TEXMFDOTDIR;$TEXMF/tex/{latex-dev,latex,generic,}//
219 TEXINPUTS.pdfmex = $TEXMFDOTDIR;$TEXMF/tex/{mex,plain,generic,latex,}//
220 TEXINPUTS.utf8mex = $TEXMFDOTDIR;$TEXMF/tex/{mex,plain,generic,latex,}//
221 TEXINPUTS.pdftex = $TEXMFDOTDIR;$TEXMF/tex/{plain,generic,latex,}//
222 TEXINPUTS.pdftexinfo = $TEXMFDOTDIR;$TEXMF/tex/{texinfo,plain,generic,latex,}//
223 TEXINPUTS.pdfamstex = $TEXMFDOTDIR;$TEXMF/tex/{amstex,plain,generic,latex,}//
224
225 % pdfeTeX.
226 TEXINPUTS.pdfelatex = $TEXMFDOTDIR;$TEXMF/tex/{latex,generic,}//
227 TEXINPUTS.pdfetex = $TEXMFDOTDIR;$TEXMF/tex/{plain,generic,latex,}//
228
229 % LuaTeX.
230 TEXINPUTS.luatex = $TEXMFDOTDIR;$TEXMF/tex/{luatex,plain,generic,latex,}//
231 TEXINPUTS.luajittex = $TEXMFDOTDIR;$TEXMF/tex/{luatex,plain,generic,latex,}//
232 TEXINPUTS.luahbtex = $TEXMFDOTDIR;$TEXMF/tex/{luatex,plain,generic,latex,}//
233 TEXINPUTS.luajithbtex = $TEXMFDOTDIR;$TEXMF/tex/{luatex,plain,generic,latex,}//
234 TEXINPUTS.dviluatex = $TEXMFDOTDIR;$TEXMF/tex/{luatex,plain,generic,latex,}//
235 TEXINPUTS.lualatex = $TEXMFDOTDIR;$TEXMF/tex/{lualatex,latex,luatex,generic,}//
236 TEXINPUTS.lualatex-dev = $TEXMFDOTDIR;$TEXMF/tex/{latex-dev,lualatex,latex,luatex,generic,}//
237 TEXINPUTS.luajitlatex = $TEXMFDOTDIR;$TEXMF/tex/{lualatex,latex,luatex,generic,}//
238 TEXINPUTS.luahblatex = $TEXMFDOTDIR;$TEXMF/tex/{lualatex,latex,luatex,generic,}//
239 TEXINPUTS.luahblatex-dev = $TEXMFDOTDIR;$TEXMF/tex/{latex-dev,lualatex,latex,luatex,generic,}//
240 TEXINPUTS.luajithblatex = $TEXMFDOTDIR;$TEXMF/tex/{lualatex,latex,luatex,generic,}//
241 TEXINPUTS.dvilualatex = $TEXMFDOTDIR;$TEXMF/tex/{lualatex,latex,luatex,generic,}//
242 TEXINPUTS.dvilualatex-dev = $TEXMFDOTDIR;$TEXMF/tex/{latex-dev,lualatex,latex,luatex,generic,}//
243
244 % HarfTeX.
245 TEXINPUTS.harftex = $TEXMFDOTDIR;$TEXMF/tex/{harftex,luatex,plain,generic,latex,}//
246 TEXINPUTS.harflatex = $TEXMFDOTDIR;$TEXMF/tex/{harflatex,harftex,lualatex,latex,luatex,generic,}//
247 TEXINPUTS.harflatex-dev = $TEXMFDOTDIR;$TEXMF/tex/{latex-dev,harflatex,harftex,lualatex,latex,luatex,generic,}//
248
249 % XeTeX.
250 TEXINPUTS.xelatex = $TEXMFDOTDIR;$TEXMF/tex/{xelatex,latex,xetex,generic,}//
251 TEXINPUTS.xelatex-dev = $TEXMFDOTDIR;$TEXMF/tex/{latex-dev,xelatex,latex,xetex,generic,}//
252 TEXINPUTS.xeplain = $TEXMFDOTDIR;$TEXMF/tex/{xeplain,eplain,plain,xetex,generic,latex,}//
253 TEXINPUTS.xetex = $TEXMFDOTDIR;$TEXMF/tex/{xetex,plain,generic,latex,}//
254
255 % Omega / Aleph.
256 TEXINPUTS.aleph = $TEXMFDOTDIR;$TEXMF/tex/{plain,generic,latex,}//
257 TEXINPUTS.elambda = $TEXMFDOTDIR;$TEXMF/tex/{lambda,latex,generic,}//
258 TEXINPUTS.eomega = $TEXMFDOTDIR;$TEXMF/tex/{plain,generic,latex,}//
259 TEXINPUTS.lambda = $TEXMFDOTDIR;$TEXMF/tex/{lambda,latex,generic,}//
260 TEXINPUTS.lamed = $TEXMFDOTDIR;$TEXMF/tex/{lambda,latex,generic,}//
261 TEXINPUTS.omega = $TEXMFDOTDIR;$TEXMF/tex/{plain,generic,latex,}//
262
263 % p(La)TeX.
264 TEXINPUTS.ptex = $TEXMFDOTDIR;$TEXMF/tex/{ptex,plain,generic,latex,}//
265 TEXINPUTS.platex = $TEXMFDOTDIR;$TEXMF/tex/{platex,latex,generic,}//
266 TEXINPUTS.platex-dev = $TEXMFDOTDIR;$TEXMF/tex/{latex-dev,platex,latex,generic,}//
267
268 % epTeX, and use that engine for pmpost.
269 TEXINPUTS.eptex = $TEXMFDOTDIR;$TEXMF/tex/{ptex,plain,generic,latex,}//
270 TEX.pmpost = eptex
271
272 % p(La)TeX-ng
273 TEXINPUTS.ptex-ng = $TEXMFDOTDIR;$TEXMF/tex/{uptex,ptex,plain,generic,latex,}//
274 TEXINPUTS.platex-ng = $TEXMFDOTDIR;$TEXMF/tex/{uplatex,platex,latex,generic,}//
275
276 % (e)up(La)TeX, and for upmpost.
277 TEXINPUTS.uplatex = $TEXMFDOTDIR;$TEXMF/tex/{uplatex,platex,latex,generic,}//
278 TEXINPUTS.uplatex-dev = $TEXMFDOTDIR;$TEXMF/tex/{latex-dev,uplatex,platex,latex,generic,}//
279 TEXINPUTS.uptex = $TEXMFDOTDIR;$TEXMF/tex/{uptex,ptex,plain,generic,latex,}//
280 TEXINPUTS.euptex = $TEXMFDOTDIR;$TEXMF/tex/{uptex,ptex,plain,generic,latex,}//
281 TEX.upmpost = euptex
282
283 % ConTeXt.
284 TEXINPUTS.context = $TEXMFDOTDIR;$TEXMF/tex/{context,plain,generic,}//
285
286 % OpTeX.
287 TEXINPUTS.optex = $TEXMFDOTDIR;$TEXMF/tex/{optex,plain,generic,}//
288
289 % HiTeX.
290 TEXINPUTS.hilatex = $TEXMFDOTDIR;$TEXMF/tex/{hilatex,latex,hitex,generic,}//
291 TEXINPUTS.hilatex-dev = $TEXMFDOTDIR;$TEXMF/tex/{latex-dev,hilatex,latex,hitex,generic,}//
292 TEXINPUTS.hitex = $TEXMFDOTDIR;$TEXMF/tex/{hitex,plain,generic,latex,}//
293
294 % JadeTeX.
295 TEXINPUTS.jadetex = $TEXMFDOTDIR;$TEXMF/tex/{jadetex,latex,generic,latex,}//
296 TEXINPUTS.pdfjadetex = $TEXMFDOTDIR;$TEXMF/tex/{jadetex,latex,generic,latex,}//
297
298 % XMLTeX.
299 TEXINPUTS.xmltex = $TEXMFDOTDIR;$TEXMF/tex/{xmltex,latex,generic,}//
300 TEXINPUTS.pdfxmltex = $TEXMFDOTDIR;$TEXMF/tex/{xmltex,latex,generic,}//
301
302 % Miscellany, no longer built.
303 TEXINPUTS.lamstex = $TEXMFDOTDIR;$TEXMF/tex/{lamstex,plain,generic,latex,}//
304 TEXINPUTS.lollipop = $TEXMFDOTDIR;$TEXMF/tex/{lollipop,plain,generic,latex,}//
305 TEXINPUTS.frpdflatex = $TEXMFDOTDIR;$TEXMF/tex/{french,latex,generic,}//
306 TEXINPUTS.frpdftex = $TEXMFDOTDIR;$TEXMF/tex/{french,plain,generic,latex,}//
307
308 % Earlier entries override later ones, so put this generic one last.
309 TEXINPUTS = $TEXMFDOTDIR;$TEXMF/tex/{$progname,generic,latex,}//
310
311 % Metafont, MetaPost inputs.
312 MFINPUTS = $TEXMFDOTDIR;$TEXMF/metafont//;{$TEXMF/fonts,$VARTEXFONTS}/source//
313 MPINPUTS = $TEXMFDOTDIR;$TEXMF/metapost//
314
315 % Dump files (fmt/base/mem) for vir{tex,mf,mp} to read.
316 % We want to find the engine-specific file, e.g., cont-en.fmt can
317 % exist under both pdftex/ and xetex/. But just in case some formats
318 % end up without an engine directory, look directly in web2c/ too.
319 % We repeat the same definition three times because of the way fmtutil
320 % is implemented; if we use ${TEXFORMATS}, the mpost/mf/etc. formats
321 % will not be found.
322 TEXFORMATS = $TEXMFDOTDIR;$TEXMF/web2c{/$engine,}
323 MFBASES = $TEXMFDOTDIR;$TEXMF/web2c{/$engine,}
324 MPMEMS = $TEXMFDOTDIR;$TEXMF/web2c{/$engine,}
325 %
326 % As of 2008, pool files don't exist any more (the strings are compiled
327 % into the binaries), but just in case something expects to find these:
328 TEXPOOL = $TEXMFDOTDIR;$TEXMF/web2c
329 MFPOOL = ${TEXPOOL}
330 MPPOOL = ${TEXPOOL}
331
332 % support the original xdvi. Must come before the generic settings.
333 PKFONTS.XDvi = $TEXMFDOTDIR;$TEXMF/%s;$VARTEXFONTS/pk/{%m,modeless}//
334 VFFONTS.XDvi = $TEXMFDOTDIR;$TEXMF/%s
335 PSHEADERS.XDvi = $TEXMFDOTDIR;$TEXMF/%q{dvips,fonts/type1}//
336 TEXPICTS.XDvi = $TEXMFDOTDIR;$TEXMF/%q{dvips,tex}//
337
338 % Device-independent font metric files.
339 VFFONTS = $TEXMFDOTDIR;$TEXMF/fonts/vf//
340 TFMFONTS = $TEXMFDOTDIR;{$TEXMF/fonts,$VARTEXFONTS}/tfm//
341
342 % The $MAKETEX_MODE below means the drivers will not use a cx font when
343 % the mode is ricoh. If no mode is explicitly specified, kpse_prog_init
344 % sets MAKETEX_MODE to /, so all subdirectories are searched. See the manual.
345 % The modeless part guarantees that bitmaps for PostScript fonts are found.
346 PKFONTS = $TEXMFDOTDIR;{$TEXMF/fonts,$VARTEXFONTS}/pk/{$MAKETEX_MODE,modeless}//
347
348 % Similarly for the GF format, which only remains in existence because
349 % Metafont outputs it (and MF isn't going to change).
350 GFFONTS = $TEXMFDOTDIR;$TEXMF/fonts/gf/$MAKETEX_MODE//
351
352 % A backup for PKFONTS and GFFONTS. Not used for anything.
353 GLYPHFONTS = $TEXMFDOTDIR;$TEXMF/fonts
354
355 % A place to puth everything that doesn't fit the other font categories.
356 MISCFONTS = $TEXMFDOTDIR;$TEXMF/fonts/misc//
357
358 % font name map files. This isn't just fonts/map// because ConTeXt
359 % wants support for having files with the same name in the different
360 % subdirs. Maybe if the programs ever get unified to accepting the same
361 % map file syntax the definition can be simplified again.
362 TEXFONTMAPS = $TEXMFDOTDIR;$TEXMF/fonts/map/{$progname,pdftex,dvips,}//
363
364 % BibTeX bibliographies and style files. bibtex8 also uses these.
365 BIBINPUTS = $TEXMFDOTDIR;$TEXMF/bibtex/bib//
366 BSTINPUTS = $TEXMFDOTDIR;$TEXMF/bibtex/{bst,csf}//
367
368 % MlBibTeX.
369 MLBIBINPUTS = $TEXMFDOTDIR;$TEXMF/bibtex/bib/{mlbib,}//
370 MLBSTINPUTS = $TEXMFDOTDIR;$TEXMF/bibtex/{mlbst,bst}//
371
372 % pBibTeX bibliographies and style files.
373 BIBINPUTS.pbibtex = $TEXMFDOTDIR;$TEXMF/{pbibtex,bibtex}/bib//
374 BSTINPUTS.pbibtex = $TEXMFDOTDIR;$TEXMF/{pbibtex,bibtex}/bst//
375
376 % upBibTeX bibliographies and style files.
377 BIBINPUTS.upbibtex = $TEXMFDOTDIR;$TEXMF/{upbibtex,pbibtex,bibtex}/bib//
378 BSTINPUTS.upbibtex = $TEXMFDOTDIR;$TEXMF/{upbibtex,pbibtex,bibtex}/bst//
379
380 % BibTeXu bibliographies and style files.
381 BIBINPUTS.bibtexu = $TEXMFDOTDIR;$TEXMF/{bibtexu,upbibtex,pbibtex,bibtex}/bib//
382 BSTINPUTS.bibtexu = $TEXMFDOTDIR;$TEXMF/{bibtexu,upbibtex,pbibtex,bibtex}/bst//
383
384 % .ris and .bltxml bibliography formats.
385 RISINPUTS = $TEXMFDOTDIR;$TEXMF/biber/ris//
386 BLTXMLINPUTS = $TEXMFDOTDIR;$TEXMF/biber/bltxml//
387
388 % MFT style files.
389 MFTINPUTS = $TEXMFDOTDIR;$TEXMF/mft//
390
391 % PostScript headers and prologues (.pro); unfortunately, some programs
392 % also use this for acessing font files (enc, type1, truetype)
393 TEXPSHEADERS = $TEXMFDOTDIR;$TEXMF/{dvips,fonts/{enc,type1,type42,type3}}//
394 TEXPSHEADERS.gsftopk = $TEXMFDOTDIR;$TEXMF/{dvips,fonts/{enc,type1,type42,type3,truetype}}//
395
396 % OSFONTDIR is to provide a convenient hook for allowing TeX to find
397 % fonts installed on the system (outside of TeX). An empty default
398 % value would add "//" to the search paths, so we give it a dummy value.
399 OSFONTDIR = /please/set/osfontdir/in/the/environment
400
401 % PostScript Type 1 outline fonts.
402 T1FONTS = $TEXMFDOTDIR;$TEXMF/fonts/type1//;$OSFONTDIR//
403
404 % PostScript AFM metric files.
405 AFMFONTS = $TEXMFDOTDIR;$TEXMF/fonts/afm//;$OSFONTDIR//
406
407 % TrueType outline fonts.
408 TTFONTS = $TEXMFDOTDIR;$TEXMF/fonts/{truetype,opentype}//;$OSFONTDIR//
409
410 % OpenType outline fonts.
411 OPENTYPEFONTS = $TEXMFDOTDIR;$TEXMF/fonts/{opentype,truetype}//;$OSFONTDIR//
412
413 % Type 42 outline fonts.
414 T42FONTS = $TEXMFDOTDIR;$TEXMF/fonts/type42//
415
416 % Ligature definition files.
417 LIGFONTS = $TEXMFDOTDIR;$TEXMF/fonts/lig//
418
419 % Dvips' config.* files (this name should not start with `TEX'!).
420 TEXCONFIG = $TEXMF/dvips//
421
422 % Makeindex style (.ist) files.
423 INDEXSTYLE = $TEXMFDOTDIR;$TEXMF/makeindex//
424
425 % mendex dictionary files. Used internally by mendex and upmendex.
426 % It is not necessary to introduce a new format in Kpathsea.
427 INDEXDICTIONARY = $TEXMFDOTDIR;$TEXMF/makeindex//
428
429 % Font encoding files (.enc).
430 ENCFONTS = $TEXMFDOTDIR;$TEXMF/fonts/enc//
431
432 % CMap files.
433 CMAPFONTS = $TEXMFDOTDIR;$TEXMF/fonts/cmap//
434
435 % Subfont definition files.
436 SFDFONTS = $TEXMFDOTDIR;$TEXMF/fonts/sfd//
437
438 % OpenType feature files (.fea).
439 FONTFEATURES=$TEXMFDOTDIR;$TEXMF/fonts/fea//
440
441 % .cid and .cidmap
442 FONTCIDMAPS=$TEXMFDOTDIR;$TEXMF/fonts/cid//
443
444 % pdftex config files:
445 PDFTEXCONFIG = $TEXMFDOTDIR;$TEXMF/pdftex/{$progname,}//
446
447 % Used by DMP (ditroff-to-mpx), called by makempx -troff.
448 TRFONTS = /usr{/local,}/share/groff/{current/font,site-font}/devps
449 MPSUPPORT = $TEXMFDOTDIR;$TEXMF/metapost/support
450
451 % For xdvi to find mime.types and .mailcap, if they do not exist in
452 % ~. These are single directories, not paths.
453 % (But the default mime.types, at least, may well suffice.)
454 MIMELIBDIR = $TEXMFROOT/etc
455 MAILCAPLIBDIR = $TEXMFROOT/etc
456
457 % Default settings for the fontconfig library as used by the Windows
458 % versions of xetex/xdvipdfmx. Not used by xetex itself on Unixish systems,
459 % but the postaction for xetex uses all of these on all systems.
460 %
461 FONTCONFIG_FILE = fonts.conf
462 XE_FONTCONFIG_PATH = $TEXMFSYSVAR/fonts/conf
463 XE_FC_CACHEDIR = $TEXMFSYSVAR/fonts/cache
464
465 % TeX documentation and source files, for use with texdoc and kpsewhich.
466 TEXDOCS = $TEXMF/doc//
467 TEXSOURCES = $TEXMFDOTDIR;$TEXMF/source//
468
469 % Top-level directory for any string translations for the binaries, in
470 % the same structure as the usual system locale/ directories. This is a
471 % single directory, not a path.
472 TEXMFLOCALEDIR = $TEXMFMAIN/locale
473
474 % Web and CWeb input paths.
475 WEBINPUTS = $TEXMFDOTDIR;$TEXMF/web//
476 CWEBINPUTS = $TEXMFDOTDIR;$TEXMF/cweb//
477
478 % Omega-related fonts and other files.
479 OFMFONTS = $TEXMFDOTDIR;{$TEXMF/fonts,$VARTEXFONTS}/{ofm,tfm}//
480 OPLFONTS = $TEXMFDOTDIR;{$TEXMF/fonts,$VARTEXFONTS}/opl//
481 OVFFONTS = $TEXMFDOTDIR;{$TEXMF/fonts,$VARTEXFONTS}/{ovf,vf}//
482 OVPFONTS = $TEXMFDOTDIR;{$TEXMF/fonts,$VARTEXFONTS}/ovp//
483 OTPINPUTS = $TEXMFDOTDIR;$TEXMF/omega/otp//
484 OCPINPUTS = $TEXMFDOTDIR;$TEXMF/omega/ocp//
485
486 % Some additional input variables for several programs. If you add
487 % a program that uses the `other text files' or `other binary files'
488 % search formats, you'll want to add their variables here as well.
489 T4HTINPUTS = $TEXMFDOTDIR;$TEXMF/tex4ht//
490
491 %% t4ht utility, sharing files with TeX4ht
492 TEX4HTFONTSET=alias,iso8859,unicode
493 TEX4HTINPUTS = $TEXMFDOTDIR;$TEXMF/tex4ht/base//;$TEXMF/tex4ht/ht-fonts/{$TEX4HTFONTSET}//
494
495 % TeXworks editor configuration and settings
496 TW_LIBPATH = $TEXMFCONFIG/texworks
497 TW_INIPATH = $TW_LIBPATH
498
499 % ttf2tfm.
500 TTF2TFMINPUTS = $TEXMFDOTDIR;$TEXMF/ttf2pk//
501
502 % For security, do not look in . for dvipdfmx.cfg, since the D option
503 % would allow command execution.
504 DVIPDFMXINPUTS = $TEXMF/dvipdfmx
505
506 % Lua needs to look in TEXINPUTS for lua scripts distributed with packages.
507 %
508 % But we can't simply use $TEXINPUTS, since then if TEXINPUTS is set in
509 % the environment with a colon, say, TEXINPUTS=/some/dir:, the intended
510 % default expansion of TEXINPUTS will not happen and .lua files under
511 % the /tex/ tree will not be found.
512 %
513 % So, duplicate the TEXINPUTS.*lualatex values as LUAINPUTS.*lualatex.
514 % The default LUAINPUTS suffices for luatex and dviluatex.
515 %
516 LUAINPUTS.lualatex = $TEXMFDOTDIR;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXMF/tex/{lualatex,latex,luatex,generic,}//
517 LUAINPUTS.lualatex-dev = $TEXMFDOTDIR;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXMF/tex/{latex-dev,lualatex,latex,luatex,generic,}//
518 %
519 LUAINPUTS.luahblatex = $TEXMFDOTDIR;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXMF/tex/{luahblatex,luahbtex,lualatex,latex,luatex,generic,}//
520 LUAINPUTS.luahblatex-dev = $TEXMFDOTDIR;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXMF/tex/{latex-dev,luahblatex,luahbtex,lualatex,latex,luatex,generic,}//
521 %
522 LUAINPUTS.dvilualatex = $TEXMFDOTDIR;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXMF/tex/{lualatex,latex,luatex,generic,}//
523 LUAINPUTS.dvilualatex-dev = $TEXMFDOTDIR;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXMF/tex/{latex-dev,lualatex,latex,luatex,generic,}//
524 %
525 LUAINPUTS.harflatex = $TEXMFDOTDIR;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXMF/tex/{harflatex,harftex,lualatex,latex,luatex,generic,}//
526 LUAINPUTS.harflatex-dev = $TEXMFDOTDIR;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXMF/tex/{latex-dev,harflatex,harftex,lualatex,latex,luatex,generic,}//
527 %
528 LUAINPUTS = $TEXMFDOTDIR;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXMF/tex/{luatex,plain,generic,latex,}//
529
530 % Lua needs to look for binary lua libraries distributed with packages.
531 CLUAINPUTS = $TEXMFDOTDIR;$SELFAUTOLOC/lib/{$progname,$engine,}/lua//
532
533 % Architecture independent executables.
534 TEXMFSCRIPTS = $TEXMF/scripts/{$progname,$engine,}//
535
536 % Other languages.
537 JAVAINPUTS = $TEXMFDOTDIR;$TEXMF/scripts/{$progname,$engine,}/java//
538 PERLINPUTS = $TEXMFDOTDIR;$TEXMF/scripts/{$progname,$engine,}/perl//
539 PYTHONINPUTS = $TEXMFDOTDIR;$TEXMF/scripts/{$progname,$engine,}/python//
540 RUBYINPUTS = $TEXMFDOTDIR;$TEXMF/scripts/{$progname,$engine,}/ruby//
541
542
543 %% The mktex* scripts rely on KPSE_DOT. Do not set it in the environment.
544 % KPSE_DOT = .
545
546 % This definition isn't used from this .cnf file itself (that would be
547 % paradoxical), but the compile-time default in paths.h is built from it.
548 % The SELFAUTO* variables are set automatically from the location of
549 % argv[0], in kpse_set_program_name.
550 %
551 % This main texmf.cnf file is installed, for a release YYYY, in a
552 % directory such as /usr/local/texlive/YYYY/texmf-dist/web2c/texmf.cnf.
553 % Since this file is subject to future updates, the TeX Live installer
554 % or human administrator may also create a file
555 % /usr/local/texlive/YYYY/texmf.cnf; any settings in this latter file
556 % will take precedence over the distributed one.
557 %
558 % For security reasons, it is best not to include . in this path.
559 %
560 % The idea behind this lengthy definition: for each of
561 % SELFAUTO{LOC,DIR,PARENT}, look in the directory,
562 % then the subdirectories share/texmf-local, share/texmf-dist, share/texmf,
563 % then the subdirectories ./texmf-local, texmf-dist, ./texmf.
564 % At any given installation, most of these directories will not exist,
565 % but they all turn out to be useful somewhere.
566 %
567 % Special addition -- we want to include one more directory: the
568 % great-grandparent's texmf-local, because that is how TL is installed
569 % by default. That is, given a binary
570 % /usr/local/texlive/YYYY/bin/PLATFORM/kpsewhich, it should find
571 % /usr/local/texlive/texmf-local/web2c/texmf.cnf. I.e., not under YYYY.
572 %
573 % As a result, we cannot use actual brace expansion in the definition,
574 % since we don't want to scatter ../'s throughout the value. Hence we
575 % explicitly list every directory. Arguably more understandable anyway.
576 %
577 TEXMFCNF = {\
578 $SELFAUTOLOC,\
579 $SELFAUTOLOC/share/texmf-local/web2c,\
580 $SELFAUTOLOC/share/texmf-dist/web2c,\
581 $SELFAUTOLOC/share/texmf/web2c,\
582 $SELFAUTOLOC/texmf-local/web2c,\
583 $SELFAUTOLOC/texmf-dist/web2c,\
584 $SELFAUTOLOC/texmf/web2c,\
585 \
586 $SELFAUTODIR,\
587 $SELFAUTODIR/share/texmf-local/web2c,\
588 $SELFAUTODIR/share/texmf-dist/web2c,\
589 $SELFAUTODIR/share/texmf/web2c,\
590 $SELFAUTODIR/texmf-local/web2c,\
591 $SELFAUTODIR/texmf-dist/web2c,\
592 $SELFAUTODIR/texmf/web2c,\
593 \
594 $SELFAUTOGRANDPARENT/texmf-local/web2c,\
595 $SELFAUTOPARENT,\
596 \
597 $SELFAUTOPARENT/share/texmf-local/web2c,\
598 $SELFAUTOPARENT/share/texmf-dist/web2c,\
599 $SELFAUTOPARENT/share/texmf/web2c,\
600 $SELFAUTOPARENT/texmf-local/web2c,\
601 $SELFAUTOPARENT/texmf-dist/web2c,\
602 $SELFAUTOPARENT/texmf/web2c\
603 }
604 %
605 % For reference, here is the old brace-using definition:
606 %TEXMFCNF = {$SELFAUTOLOC,$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,}/web2c}
607
608 % kpathsea 3.5.3 and later sets these at runtime. To avoid empty
609 % expansions from binaries linked against an earlier version of the
610 % library, we set $progname and $engine to something non-empty:
611 progname = unsetprogname
612 engine = unsetengine
613
614
615 % Part 2: Options.
616
617 % If this option is set to true, `tex a.b' will look first for a.b.tex
618 % (within each path element), and then for a.b, i.e., we try standard
619 % extensions first. If this is false, we first look for a.b and then
620 % a.b.tex, i.e., we try the name as-is first.
621 %
622 % Both names are always tried; the difference is the order in which they
623 % are tried. The setting applies to all searches, not just .tex.
624 %
625 % This setting only affects names being looked up which *already* have
626 % an extension. A name without an extension (e.g., `tex story') will
627 % always have an extension added first.
628 %
629 % The default is true, because we already avoid adding the standard
630 % extension(s) in the usual cases. E.g., babel.sty will only look for
631 % babel.sty, not babel.sty.tex, regardless of this setting.
632 try_std_extension_first = t
633
634 % Enable system commands via \write18{...}. When enabled fully (set to
635 % t), obviously insecure. When enabled partially (set to p), only the
636 % commands listed in shell_escape_commands are allowed. Although this
637 % is not fully secure either, it is much better, and so useful that we
638 % enable it for everything but bare tex.
639 shell_escape = p
640
641 % No spaces in this command list.
642 %
643 % The programs listed here are as safe as any we know: they either do
644 % not write any output files, respect openout_any, or have hard-coded
645 % restrictions similar to or higher than openout_any=p. The output file
646 % location is determined according to
647 % https://tug.org/texinfohtml/web2c.html#Output-file-location.
648 %
649 % They also have no features to invoke arbitrary other programs, and no
650 % known exploitable bugs, to the best of our knowledge.
651 %
652 % Finally, they also have practical use for being called from TeX.
653 %
654 shell_escape_commands = \
655 bibtex,bibtex8,\
656 extractbb,\
657 gregorio,\
658 kpsewhich,\
659 l3sys-query,\
660 latexminted,\
661 makeindex,\
662 memoize-extract.pl,\
663 memoize-extract.py,\
664 repstopdf,\
665 r-mpost,\
666 texosquery-jre8,\
667
668 % other programs considered:
669 % dvips - but external commands can be executed, need at least -R1.
670 % epspdf, ps2pdf, pstopdf - need to respect openout_any,
671 % and gs -dSAFER must be used and check for shell injection with filenames.
672 % pygmentize - but is the filter feature insecure?
673 % ps4pdf - but it calls an unrestricted latex.
674 % rpdfcrop - maybe ok, but let's get experience with repstopdf first.
675 % texindy,xindy - but is the module feature insecure?
676 % ulqda - but requires optional SHA1.pm, so why bother.
677 % tex, latex, etc. - need to forbid --shell-escape, and inherit openout_any.
678
679 % plain "tex" should remain unenhanced.
680 shell_escape.tex = f
681 shell_escape.initex = f
682
683 % This is used by the Windows script wrapper for restricting searching
684 % for the purportedly safe shell_escape_commands above to system
685 % directories.
686 TEXMF_RESTRICTED_SCRIPTS = \
687 {!!$TEXMFLOCAL,!!$TEXMFDIST}/scripts/{$progname,$engine,}//
688
689 % The openout_any parameter says whether to allow TeX \openout, etc. on
690 % filenames starting with `.' (e.g., .rhosts) or outside the current
691 % tree (e.g., /etc/passwd). Not likely,
692 % a (any) : any file can be opened.
693 % r (restricted) : disallow opening dot files
694 % p (paranoid) : as `r' and disallow going to parent directories, and
695 % restrict absolute paths to be under $TEXMFOUTPUT.
696 openout_any = p
697
698 % On the other hand, as of 2026, openin_any no longer has any effect;
699 % the underlying kpse_in_name_ok and related functions always return
700 % true. It used to be analogous to openout_any, but in practice, normal
701 % (La)TeXruns would fail with anything but `a', e.g., luaotfload uses
702 % absolute paths. Meanwhile, there were obscure ways to inject arbitrary
703 % input from the supposedly-forbidden areas, so it gave a false sense of
704 % security. Since it apparently has no practical use, seems best to
705 % simply declare it a no-op.
706 %
707 % We leave the openin_any variable in place despite being a no-op, so that any
708 % workflows that might depend on retrieving it, e.g., with kpsewhich,
709 % don't gratuitously fail, but it has no effect. Similarly, the
710 % underlying functions remain in the library to avoid linking failures.
711 % Thread: https://tug.org/pipermail/tex-live/2025-December/051965.html
712 openin_any = a
713
714 % Write .log/.dvi/.aux/etc. files here, if they can't be written in the
715 % current directory.
716 %
717 % Best to use this only when a particular job requires it, not set
718 % globally in a configuration file or the environment. We recommend
719 % using it transiently for particular jobs, not making a permanent setting.
720 %TEXMFOUTPUT = /tmp
721
722 % As of TeX Live 2024, a related environment variable is
723 % TEXMF_OUTPUT_DIRECTORY. It overrides the current directory for all
724 % output files in TeX and the other engines. It cannot be set in a
725 % configuration file. And it's even more important to use it only
726 % temporarily, when required, to avoid massive confusion about where the
727 % output files are ending up.
728
729 % If a dynamic file creation fails, log the command to this file, in
730 % either the current directory or TEXMFOUTPUT. Set to the
731 % empty string or 0 to avoid logging.
732 MISSFONT_LOG = missfont.log
733
734 % Set to a colon-separated list of words specifying warnings to suppress.
735 % To suppress everything, use TEX_HUSH = all; this is currently equivalent to
736 % TEX_HUSH = checksum:lostchar:readable:special
737 % To suppress nothing, use TEX_HUSH = none or do not set the variable at all.
738 TEX_HUSH = none
739
740 % Allow TeX and MF to parse the first line of an input file for
741 % the %&format construct.
742 parse_first_line = t
743
744 % But don't parse the first line if invoked as "tex", since we want that
745 % to remain Knuth-compatible. The src_specials and
746 % file_line_error_style settings, as well as the options -enctex,
747 % -mltex, -8bit, etc., also affect this, but they are all off by default.
748 parse_first_line.tex = f
749 parse_first_line.initex = f
750
751 % Normally we mention files created by \openout in the log file,
752 % but again, trip-compatibility forbids this for (ini)tex.
753 log_openout = t
754 log_openout.tex = f
755 log_openout.initex = f
756
757 % Control file:line:error style messages.
758 file_line_error_style = f
759
760 % Enable the mktex... scripts by default? These must be set to 0 or 1.
761 % The values shown here are the compile-time defaults for original TeX Live;
762 % they can be overridden at compile time with configure options,
763 % or at runtime with environment variables or program options.
764 %
765 % These values are ignored if the script names are changed; e.g., if you
766 % set DVIPSMAKEPK to `foo', what counts is the value of the environment
767 % variable/config value `FOO', not the `MKTEXPK' value.
768 %
769 %MKTEXTEX = 0
770 %MKTEXPK = 1
771 %MKTEXMF = 1
772 %MKTEXTFM = 1
773 %MKTEXFMT = 1
774 %MKOCP = 1
775 %MKOFM = 1
776
777 % Used by makempx to run TeX. We use "etex" because MetaPost is
778 % expecting DVI, and not "tex" because we want first line parsing.
779 TEX = etex
780
781 % Use Japanese eptex for Japanese pmpost.
782 TEX.pmpost = eptex
783
784 % These variables specify the external program called for the
785 % interactive `e' option. %d is replaced by the line number and %s by
786 % the current filename. The default is specified at compile-time, and
787 % we let that stay in place since different platforms like different values.
788 %TEXEDIT = vi +%d '%s' % default for Unix
789 %TEXEDIT = texworks --position=+%d "%s" % default for Windows
790 %MFEDIT = ${TEXEDIT}
791 %MPEDIT = ${TEXEDIT}
792
793 % The default `codepage and sort order' file for BibTeX8, when none is
794 % given as command line option or environment variable.
795 BIBTEX_CSFILE = 88591lat.csf
796
797 % This variable is specific to Unix, to fall back to case-insensitive
798 % search in non-system directories if there is no exact match. It is
799 % enabled by default here in texmf.cnf, but not enabled by default at
800 % compile-time.
801 % See https://tug.org/texinfohtml/kpathsea.html#Casefolding-search.
802 %
803 texmf_casefold_search = 1
804
805 % This variable is specific to Unix, to enable or disable the check
806 % for st_nlink=2 to determine if a directory is a leaf. The check is
807 % disabled by default, since it's relevant only for non-!!
808 % trees, such as TEXMFHOME and TEXMF[SYS]VAR, which are almost always tiny,
809 % and new filesystems tend to break the longstanding semantics.
810 % See https://tug.org/texinfohtml/kpathsea.html#Subdirectory-expansion.
811 %
812 texmf_nlink_for_leaf = 0 % set to 1 to enable st_nlink check in non-!! trees
813
814 % This variable is specific to Windows. It must be set to 0 or 1. The
815 % default is 0. Setting it to 1 tells the Windows script wrappers to
816 % use an already installed Perl interpreter if one is found on the
817 % search path, in preference to the Perl shipped with TeX Live. Thus,
818 % it may be useful if you both (a) installed a full Perl distribution
819 % for general use, and (b) need to run Perl programs from TL that use
820 % additional modules we don't provide. The TL Perl does provide all the
821 % standard Perl modules.
822 %
823 %TEXLIVE_WINDOWS_TRY_EXTERNAL_PERL = 0
824
825
826 % Part 3: Array and other sizes for TeX, Metafont, etc.
827 %
828 % If you want to change some of these sizes only for a certain TeX
829 % variant, the usual dot notation works, as shown below for ConTeXt.
830 % If a change here appears to be ignored, try redumping the format file.
831
832 % Memory. Must be less than 8,000,000 total.
833 %
834 % main_memory is relevant only to initex, extra_mem_* only to non-ini.
835 % Thus, have to redump the .fmt file after changing main_memory; to add
836 % to existing fmt files, increase extra_mem_*. (To get an idea of how
837 % much, try \tracingstats=2 in your TeX source file;
838 % web2c/tests/memtest.tex might also be interesting.)
839 %
840 % To increase space for boxes (as might be needed by, e.g., PiCTeX),
841 % increase extra_mem_bot.
842 %
843 main_memory = 5000000 % words of inimemory available; also applies to inimf&mp
844 extra_mem_top = 0 % extra high memory for chars, tokens, etc.
845 extra_mem_bot = 0 % extra low memory for boxes, glue, breakpoints, etc.
846
847 % ConTeXt needs lots of memory.
848 extra_mem_top.context = 2000000
849 extra_mem_bot.context = 4000000
850
851 % Words of font info for TeX (total size of all TFM files, approximately).
852 % Must be >= 20000 and <= 147483647 (without tex.ch changes).
853 font_mem_size = 8000000
854
855 % Total number of fonts. Must be >= 50 and <= 9000 (without tex.ch changes).
856 font_max = 9000
857
858 % Extra space for the hash table of control sequences.
859 hash_extra = 600000
860
861 % Max number of characters in all strings, including all error messages,
862 % help texts, font names, control sequences. These values apply to TeX.
863 pool_size = 6250000
864 % Minimum pool space after TeX's own strings; must be at least
865 % 25000 less than pool_size, but doesn't need to be nearly that large.
866 string_vacancies = 90000
867 % Maximum number of strings.
868 max_strings = 500000
869 % Min pool space left after loading .fmt.
870 pool_free = 47500
871 % Ensure at least this many strings are free after loading .fmt.
872 strings_free = 100
873
874 % Buffer size. TeX uses the buffer to contain input lines, but macro
875 % expansion works by writing material into the buffer and reparsing the
876 % line. As a consequence, certain constructs require the buffer to be
877 % very large, even though most documents can be handled with a small value.
878 buf_size = 200000
879
880 % Hyphenation trie. The maximum possible is 4194303 (ssup_trie_size in
881 % the sources), but we don't need that much. The value here suffices
882 % for all known free hyphenation patterns to be loaded simultaneously
883 % (as TeX Live does).
884 %
885 trie_size = 1100000
886
887 hyph_size = 8191 % prime number of hyphenation exceptions, >610, <65535
888 % http://primes.utm.edu/curios/page.php/8191.html
889 % dynamically increased as necessary, so not important.
890 nest_size = 1000 % simultaneous semantic levels (e.g., groups)
891 max_in_open = 15 % simultaneous input files and error insertions,
892 % also applies to MetaPost
893 param_size = 20000 % simultaneous macro parameters, also applies to MP
894 save_size = 200000 % for saving values outside current group
895 stack_size = 10000 % simultaneous input sources
896
897 % Limit on recursive expansion calls so TeX has a chance to quit nicely
898 % before stack space runs out. The default is 10000. Normally there is no
899 % reason to change it. The web2c manual has a bit more about this.
900 %expand_depth = 10000
901
902 % These are Omega-specific.
903 ocp_buf_size = 500000 % character buffers for ocp filters.
904 ocp_stack_size = 10000 % stacks for ocp computations.
905 ocp_list_size = 1000 % control for multiple ocps.
906
907 % For pdftex and luatex: default resolution for bitmaps;
908 % commonly set via \pdfpkresolution when needed to be changed.
909 %pk_dpi = 72
910
911 % These work best if they are the same as the I/O buffer size, but it
912 % doesn't matter much. Must be a multiple of 8.
913 dvi_buf_size = 16384 % TeX
914 gf_buf_size = 16384 % MF
915
916 % It's probably inadvisable to change these. At any rate, we must have:
917 % 45 < error_line < 255;
918 % 30 < half_error_line < error_line - 15;
919 % 60 <= max_print_line;
920 % These apply to TeX, Metafont, and MetaPost.
921 % "max_print_line" applies to BibTeX family.
922 error_line = 79
923 half_error_line = 50
924 max_print_line = 79
925
926 % Metafont only.
927 screen_width.mf = 1664
928 screen_depth.mf = 1200
929
930 % BibTeX only (max_strings also determines hash_size and hash_prime).
931 ent_str_size = 500
932 glob_str_size = 200000
933 max_strings.bibtex = 200000
934 max_strings.bibtex8 = 200000
935 max_strings.bibtexu = 200000
936 max_strings.pbibtex = 200000
937 max_strings.upbibtex= 200000
938
939 % GFtype only.
940 line_length.gftype = 500
941 max_rows.gftype = 8191
942 max_cols.gftype = 8191
943
944 % Guess input encoding (SJIS vs. Unicode, etc.) in pTeX and friends?
945 % Default is 1 for (e)p(la)tex, pbibtex & mendex, to guess.
946 guess_input_kanji_encoding = 0
947 guess_input_kanji_encoding.ptex = 1
948 guess_input_kanji_encoding.eptex = 1
949 guess_input_kanji_encoding.platex = 1
950 guess_input_kanji_encoding.platex-dev = 1
951 guess_input_kanji_encoding.pbibtex = 1
952 guess_input_kanji_encoding.mendex = 1
953
954 % command_line_encoding
955 %
956 % This variable is used on Windows only, and affects 4 TeX engines:
957 % uptex, euptex, pdftex, xetex, and 2 drivers: dvips, [x]dvipdfmx.
958 % Several applications also are affected by the variable:
959 % bibtex8.exe, bibtexu.exe, dvi2tty.exe, disdvi.exe, dvibook.exe,
960 % dviconcat.exe, dviselect.exe, dvitodvi.exe, dvidvi.exe, dvispc.exe,
961 % and chkdvifont.exe.
962 % Only values utf8 or utf-8 are meaningful. Other values are simply
963 % ignored. If file names in sources and DVI or XDV files are ASCII
964 % only, the value of command_line_encoding is irrelevant.
965 % If command_line_encoding = utf8 or command_line_encoding = utf-8,
966 % characters on a command line in cmd.exe are assumed to be Unicode and
967 % file names in sources and DVI or XDV files are assumed to be UTF-8.
968 % Default is utf-8, from 2019-07-24, to assume UTF-8 file names.
969 % In order to switch off the function, define an environment variable:
970 % set command_line_encoding=none
971 % or write a line:
972 % command_line_encoding = none
973 % in a texmf.cnf prefered, for example $TEXMFLOCAL/web2c/texmf.cnf.
974 command_line_encoding = utf-8
975
976 % As of TeX Live 2024, the engine for ptex, eptex, platex, and
977 % platex-dev is euptex. Therefore the function should be switched off
978 % for ptex, eptex, platex and platex-dev.
979 command_line_encoding.ptex = none
980 command_line_encoding.eptex = none
981 command_line_encoding.platex = none
982 command_line_encoding.platex-dev = none