Debian Codegraph @

texk/texlive/tl_support/fmtutil.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
2 .TH FMTUTIL "1" "February 2026" "TeX Live" "User Commands"
3 .SH NAME
4 fmtutil \- manage TeX formats and Metafont bases, per-user
5 .br
6 fmtutil-sys \- manage TeX formats and Metafont bases, system-wide
7 .br
8 mktexfmt \- create a TeX format or Metafont base
9 .SH SYNOPSIS
10 .B fmtutil
11 [\fI\,-user|-sys\/\fR] [\fI\,OPTION\/\fR] ... [\fI\,COMMAND\/\fR]
12 .br
13 .B fmtutil-sys
14 [\fI\,OPTION\/\fR] ... [\fI\,COMMAND\/\fR]
15 .br
16 .B fmtutil-user
17 [\fI\,OPTION\/\fR] ... [\fI\,COMMAND\/\fR]
18 .br
19 .B mktexfmt
20 \fI\,FORMAT.fmt|BASE.base|FMTNAME\/\fR
21 .SH DESCRIPTION
22 fmtutil version r77314 (2026\-01\-09 17:20:28 +0100)
23 .PP
24 Rebuild and manage TeX fmts and Metafont bases, collectively called
25 "formats" here. (MetaPost no longer uses the past\-equivalent "mems".)
26 .PP
27 If not operating in mktexfmt mode, exactly one command must be given,
28 filename suffixes should generally not be specified, no non\-option
29 arguments are allowed, and multiple formats can be generated.
30 .PP
31 If the command name ends in mktexfmt, only one format can be created.
32 The only options supported are \fB\-\-help\fR and \fB\-\-version\fR, and the command
33 line must be either a format name, with extension, or a plain name that
34 is passed as the argument to \fB\-\-byfmt\fR (see below). The full name of the
35 generated file (if any) is written to stdout, and nothing else. The
36 system directories are used if they are writable, else the user directories.
37 .PP
38 By default, the return status is zero if all formats requested are
39 successfully built, else nonzero.
40 .SH OPTIONS
41 .TP
42 \fB\-\-sys\fR
43 use TEXMFSYS{VAR,CONFIG}
44 .TP
45 \fB\-\-user\fR
46 use TEXMF{VAR,CONFIG}
47 .TP
48 \fB\-\-cnffile\fR FILE
49 read FILE instead of fmtutil.cnf
50 (can be given multiple times, in which case
51 all the files are used)
52 .TP
53 \fB\-\-dry\-run\fR, \fB\-n\fR
54 don't actually build formts
55 .TP
56 \fB\-\-fmtdir\fR DIR
57 write formats under DIR instead of TEXMF[SYS]VAR
58 .TP
59 \fB\-\-no\-engine\-subdir\fR
60 don't use engine\-specific subdir of the fmtdir
61 .TP
62 \fB\-\-no\-error\-if\-no\-format\fR
63 exit successfully if no format is selected
64 .TP
65 \fB\-\-no\-error\-if\-no\-engine\fR=\fI\,ENGINE1\/\fR,ENGINE2,...
66 exit successfully even if a required ENGINE
67 .IP
68 is missing, if it is included in the list.
69 .TP
70 \fB\-\-no\-strict\fR
71 exit successfully even if a format fails to build
72 .TP
73 \fB\-\-nohash\fR
74 don't update ls\-R files
75 .TP
76 \fB\-\-recorder\fR
77 pass the \fB\-recorder\fR option and save .fls files
78 .TP
79 \fB\-\-refresh\fR
80 recreate only existing format files
81 .TP
82 \fB\-\-status\-file\fR FILE
83 append status information about built formats to FILE
84 .TP
85 \fB\-\-quiet\fR
86 be silent
87 .TP
88 \fB\-\-catcfg\fR
89 (does nothing, exists for compatibility)
90 .TP
91 \fB\-\-dolinks\fR
92 (does nothing, exists for compatibility)
93 .TP
94 \fB\-\-force\fR
95 (does nothing, exists for compatibility)
96 .TP
97 \fB\-\-test\fR
98 (does nothing, exists for compatibility)
99 .SS "Commands (exactly one must be specified):"
100 .TP
101 \fB\-\-all\fR
102 recreate all format files
103 .TP
104 \fB\-\-missing\fR
105 create all missing format files
106 .TP
107 \fB\-\-byengine\fR ENGINE
108 (re)create formats built with ENGINE
109 .TP
110 \fB\-\-byfmt\fR FORMAT
111 (re)create format FORMAT
112 .TP
113 \fB\-\-byhyphen\fR HYPHENFILE
114 (re)create formats that depend on HYPHENFILE
115 .TP
116 \fB\-\-enablefmt\fR
117 FORMAT[/ENGINE] enable FORMAT, as built with ENGINE
118 .TP
119 \fB\-\-disablefmt\fR FORMAT[/ENGINE]
120 disable FORMAT, as built with ENGINE
121 If multiple formats have the same name and
122 .IP
123 different engines, \fI\,/ENGINE\/\fP specifier is required.
124 .TP
125 \fB\-\-listcfg\fR
126 list (enabled and disabled) configurations,
127 filtered to available formats
128 .TP
129 \fB\-\-showhyphen\fR FORMAT
130 print name of hyphen file for FORMAT
131 .TP
132 \fB\-\-version\fR
133 show version information and exit
134 .TP
135 \fB\-\-help\fR
136 show this message and exit
137 .SH ENVIRONMENT
138 .PP
139 Explanation of trees and files normally used:
140 .IP
141 If \fB\-\-cnffile\fR is specified on the command line (possibly multiple
142 times), its value(s) are used. Otherwise, fmtutil reads all the
143 fmtutil.cnf files found by running "kpsewhich \fB\-all\fR fmtutil.cnf", in the
144 order returned by kpsewhich. Files specified via \fB\-\-cnffile\fR are
145 first tried to be loaded directly, and if not found and the file names
146 don't contain directory parts, are searched via kpsewhich.
147 .IP
148 In any case, if multiple fmtutil.cnf files are found, all the format
149 definitions found in all the fmtutil.cnf files are merged.
150 .IP
151 Thus, if fmtutil.cnf files are present in all trees, and the default
152 layout is used as shipped with TeX Live, the following files are
153 read, in the given order.
154 .nf
155 .IP
156 For fmtutil\-sys:
157 TEXMFSYSCONFIG \fI\,$TEXLIVE/YYYY/texmf\-config/web2c/fmtutil.cnf\/\fP
158 TEXMFSYSVAR \fI\,$TEXLIVE/YYYY/texmf\-var/web2c/fmtutil.cnf\/\fP
159 TEXMFLOCAL \fI\,$TEXLIVE/texmf\-local/web2c/fmtutil.cnf\/\fP
160 TEXMFDIST \fI\,$TEXLIVE/YYYY/texmf\-dist/web2c/fmtutil.cnf\/\fP
161 .IP
162 For fmtutil\-user:
163 TEXMFCONFIG $HOME/.texliveYYYY/texmf\-config/web2c/fmtutil.cnf
164 TEXMFVAR $HOME/.texliveYYYY/texmf\-var/web2c/fmtutil.cnf
165 TEXMFHOME \fI\,$HOME/texmf/web2c/fmtutil.cnf\/\fP
166 TEXMFSYSCONFIG \fI\,$TEXLIVE/YYYY/texmf\-config/web2c/fmtutil.cnf\/\fP
167 TEXMFSYSVAR \fI\,$TEXLIVE/YYYY/texmf\-var/web2c/fmtutil.cnf\/\fP
168 TEXMFLOCAL \fI\,$TEXLIVE/texmf\-local/web2c/fmtutil.cnf\/\fP
169 TEXMFDIST \fI\,$TEXLIVE/YYYY/texmf\-dist/web2c/fmtutil.cnf\/\fP
170 .IP
171 (where YYYY is the TeX Live release version).
172 .fi
173 .IP
174 According to the actions, fmtutil might update one of the existing cnf
175 files or create a new fmtutil.cnf, as described below.
176 .PP
177 Where format files are written:
178 .IP
179 By default, format files are (re)written in \fI\,$TEXMFSYSVAR/ENGINE\/\fP by
180 fmtutil\-sys, and \fI\,$TEXMFVAR/ENGINE\/\fP by fmtutil\-user, where \fI\,/ENGINE\/\fP is
181 a subdirectory named for the engine used, such as "pdftex".
182 .IP
183 For mktexfmt, TEXMFSYSVAR is used if it is writable, else TEXMFVAR.
184 .IP
185 If the \fB\-\-fmtdir\fR=\fI\,DIR\/\fR option is specified, DIR is used instead of
186 TEXMF[SYS]VAR, but the \fI\,/ENGINE\/\fP subdir is still used by default.
187 .IP
188 In all cases, if the \fB\-\-no\-engine\-subdir\fR option is specified, the
189 \fI\,/ENGINE\/\fP subdir is omitted.
190 .PP
191 Where configuration changes are saved:
192 .IP
193 If config files are given on the command line, then the first one
194 given will be used to save any changes from \fB\-\-enable\fR or \fB\-\-disable\fR.
195 .IP
196 If the config files are taken from kpsewhich output, then the
197 algorithm is more complicated:
198 .IP
199 1) If \fI\,$TEXMFCONFIG/web2c/fmtutil.cnf\/\fP or
200 \fI\,$TEXMFHOME/web2c/fmtutil.cnf\/\fP appears in the list of used files,
201 then the one listed first by kpsewhich \fB\-\-all\fR (equivalently, the one
202 returned by "kpsewhich fmtutil.cnf"), is used.
203 .IP
204 2) If neither of the above two are present and changes are made, a
205 new config file is created in \fI\,$TEXMFCONFIG/web2c/fmtutil.cnf\/\fP.
206 .IP
207 In general, the idea is that if a given config file is not writable, a
208 higher\-level one can be used. That way, the distribution's settings
209 can be overridden system\-wide using TEXMFLOCAL, and system settings
210 can be overridden again in a particular user's TEXMFHOME or TEXMFCONF.
211 .PP
212 Resolving multiple definitions of a format:
213 .IP
214 If a format is defined in more than one config file, then the definition
215 coming from the first\-listed fmtutil.cnf is used.
216 .PP
217 Disabling formats:
218 .IP
219 fmtutil.cnf files with higher priority (listed earlier) can disable
220 formats in lower priority (listed later) fmtutil.cnf files by
221 writing a line like this in the higher\-priority fmtutil.cnf file:
222 .IP
223 #! <fmtname> <enginename> <hyphen> <args>
224 .IP
225 The #! must be at the beginning of the line, with at least one space
226 or tab afterward, and there must be whitespace between each word on
227 the list.
228 .IP
229 For example, you can disable the luajitlatex format by creating
230 the file \fI\,$TEXMFCONFIG/web2c/fmtutil.cnf\/\fP with the line
231 .IP
232 #! luajitlatex luajittex language.dat,language.dat.lua lualatex.ini
233 .IP
234 (As it happens, the luajittex\-related formats are precisely why the
235 \fB\-\-no\-error\-if\-no\-engine\fR option exists, since luajittex cannot be
236 compiled on all platforms. So this is not needed.)
237 .PP
238 fmtutil\-user (fmtutil \fB\-user\fR) vs. fmtutil\-sys (fmtutil \fB\-sys\fR):
239 .IP
240 When fmtutil\-sys is run or the command line option \fB\-sys\fR is used,
241 TEXMFSYSCONFIG and TEXMFSYSVAR are used instead of TEXMFCONFIG and
242 TEXMFVAR, respectively. This is the primary difference between
243 fmtutil\-sys and fmtutil\-user.
244 .IP
245 See https://tug.org/texlive/scripts\-sys\-user.html for details.
246 .IP
247 Other locations may be used if you give them on the command line, or
248 these trees don't exist, or you are not using the original TeX Live.
249 .PP
250 Supporting development binaries:
251 .IP
252 If an engine name ends with "\-dev", formats are created in
253 the respective directory with the \fB\-dev\fR stripped. This allows for
254 easily running development binaries in parallel with the released
255 binaries.
256 .SH ENVIRONMENT
257 .IP
258 This script runs TeX and Metafont to generate the fmt/base file, and
259 thus all normal environment variables and search path rules for TeX/MF
260 apply.
261 .PP
262 Executable location: ../../../../texk/texlive/../../../../Master/texmf\-dist/scripts/texlive/fmtutil.pl
263 .SH "REPORTING BUGS"
264 Report bugs to: tex\[email protected]
265 .br
266 TeX Live home page: <https://tug.org/texlive/>