Debian Codegraph @

texmf-dist/doc/texlive/texlive-en/archive/live-2025.tex

raw
1 % $Id: texlive-en.tex 74120 2025-02-18 22:51:42Z karl $
2 % TeX Live documentation. Originally written by Sebastian Rahtz and
3 % Michel Goossens, now maintained by Karl Berry and others.
4 % Public domain.
5 %
6 \documentclass[12pt]{article}
7 \let\tldocenglish=1 % for live4ht.cfg
8 \usepackage{tex-live}
9 %\usepackage[latin1]{inputenc} % translators: use your preferred encodings.
10 \usepackage[T1]{fontenc} % causes typewriter "--", etc., to be a ligature
11 \usepackage{microtype} % nicer output, and also allows us to do:
12 \DisableLigatures{family=tt*} % no ligatures in tt
13
14 \title{%
15 {\huge \textit{The \TeX\ Live Guide---2025}}
16 }
17
18 \author{Karl Berry, editor \\[3mm]
19 \url{https://tug.org/texlive/}
20 }
21
22 \date{12 February 2025}
23
24 \begin{document}
25 \maketitle
26
27 \begin{multicols}{2}
28 \tableofcontents
29 %\listoftables
30 \end{multicols}
31
32 \section{Introduction}
33 \label{sec:intro}
34
35 \subsection{\protect\TeX\protect\ Live and the \protect\TeX\protect\ Collection}
36
37 This document describes the main features of the \TL{} software
38 distribution\Dash \TeX{} and related programs for \GNU/Linux
39 and other Unix flavors, \macOS, and Windows systems.
40
41 You may have acquired \TL{} by downloading, or on the \TK{} \DVD, which
42 \TeX{} user groups distribute among their members, or in other ways.
43 Section \ref{sec:tl-coll-dists} briefly describes the contents of the
44 \DVD. Both \TL{} and the \TK{} are cooperative efforts by the \TeX{}
45 user groups. This document mainly describes \TL{} itself.
46
47 \TL{} includes executables for \TeX{}, \LaTeXe{}, \ConTeXt,
48 \MF, \MP, \BibTeX{} and many other programs; an extensive collection
49 of macros, fonts and documentation; and support for typesetting in
50 many different scripts from around the world.
51
52 For a brief summary of the major changes in this edition of \TL{},
53 see the end of the document, section~\ref{sec:history}
54 (\p.\pageref{sec:history}).
55
56
57 \htmlanchor{platforms}
58 \subsection{Operating system support}
59 \label{sec:os-support}
60
61 \TL{} contains binaries for many Unix-based platforms, including
62 \GNU/Linux, \macOS, and Cygwin. The included sources can be compiled
63 on platforms for which we do not provide binaries.
64
65 As to Windows: Windows~10 and later are supported. Windows 7 and Vista
66 \emph{may} still mostly work, but \TL{} will no longer even install
67 on Windows XP or earlier. \TL{} includes 64-bit executables for
68 Windows.
69
70 See section~\ref{sec:tl-coll-dists} for alternate solutions
71 for Windows and \macOS.
72
73 \subsection{Basic installation of \protect\TL{}}
74 \label{sec:basic}
75
76 You can install \TL{} either from \DVD{} or over the Internet
77 (\url{https://tug.org/texlive/acquire.html}). The net installer itself is
78 small, and downloads everything requested from the Internet.
79
80 The \DVD{} installer lets you install to a local disk, but you cannot
81 run \TL{} directly from the \TK{} \DVD{} (or the \TK{} or \TL{}
82 \code{.iso} images). You \emph{can} prepare a runnable installation on,
83 e.g., a \USB{} stick (see section~\ref{sec:portable-tl}). Installation
84 is described in later sections (\p.\pageref{sec:install}), but here is a
85 quick start:
86
87 \begin{itemize*}
88
89 \item For Unix, the installation script is \filename{install-tl}; on
90 Windows, one should instead invoke \filename{install-tl-windows}.
91 The installer will operate in a graphical mode given the option
92 \code{-gui} (default for Windows), or a text mode given
93 the option \code{-gui=text} (default for everything else).
94
95 \item One of the installed items is the `\TL\ Manager' program,
96 named \prog{tlmgr}. Like the installer, it can be used in both \GUI{}
97 mode and in text mode. You can use it to install and uninstall
98 packages and do various configuration tasks.
99
100 \end{itemize*}
101
102
103 \htmlanchor{security}
104 \subsection{Security considerations}
105 \label{sec:security}
106
107 To the best of our knowledge, the core \TeX\ programs themselves are
108 (and always have been) extremely robust. However, the contributed
109 programs in \TL\ may not reach the same level, despite everyone's
110 best efforts. As always, you should be careful when running programs on
111 untrusted input; to improve safety, use a new subdirectory or chroot.
112
113 This need for care is especially urgent on Windows, since in general
114 Windows finds programs in the current directory before anything else,
115 regardless of the search path. This opens up a wide variety of possible
116 attacks. We have closed many holes, but undoubtedly some remain,
117 especially with third-party programs. Thus, we recommend checking for
118 suspicious files in the current directory, especially executables
119 (binaries or scripts). Ordinarily they should not be present, and
120 definitely should not normally be created by merely processing a document.
121
122 Finally, \TeX\ (and its companion programs) are able to write files when
123 processing documents, a feature that can also be abused in a wide
124 variety of ways. Again, processing unknown documents in a new
125 subdirectory is the safest bet.
126
127 Another aspect of security is ensuring that downloaded material has not
128 been changed from what was created. The \prog{tlmgr} program
129 (section~\ref{sec:tlmgr}) will automatically perform cryptographic
130 verification on downloads if the \prog{gpg} (GNU Privacy Guard) program
131 is available. It is not distributed as part of \TL, but see
132 \url{https://texlive.info/tlgpg/} for information about \prog{gpg} if
133 need be.
134
135 \subsection{Getting help}
136 \label{sec:help}
137
138 The \TeX{} community is active and friendly, and most serious questions
139 end up getting answered. However, the support is informal, done by
140 volunteers and casual users, so it's especially important that you do
141 your homework before asking. (If you prefer guaranteed commercial
142 support, you can forgo \TL{} completely and purchase a vendor's system;
143 \url{https://tug.org/interest.html#vendors} has a list.)
144
145 Here is a list of resources, approximately in the order we recommend
146 using them:
147
148 \begin{description}
149 \item [Getting started] If you are new to \TeX, the web page
150 \url{https://tug.org/begin.html} gives a brief introduction to the system.
151
152 \item [CTAN] If you are looking for a particular package, font, program,
153 etc., \CTAN{} is the place to start looking. It is a huge collection of
154 all \TeX{}-related items. The catalog entries also tell you whether a
155 package is available for \TL{} or MiK\TeX. See \url{https://ctan.org}.
156
157 \item [\TeX{} FAQ] The \TeX{} FAQ is a compendium of answers to all
158 sorts of questions, from the most basic to the most arcane. It is
159 available on the Internet through \url{https://texfaq.org}.
160
161 \item [\TeX{} Web Resources] The web page
162 \url{https://tug.org/interest.html} has many \TeX{}-related links, in
163 particular for numerous books, manuals, and articles on all aspects of
164 the system.
165
166 \item [support sites] A general web search never hurts. Principal
167 support sites for \TeX\ include the \LaTeX{}
168 community site at \url{https://latex.org}, the q\&a site
169 \url{https://tex.stackexchange.com}, and the mailing list
170 \url{https://lists.tug.org/texhax}. Their archives have years of past
171 questions and answers for your searching pleasure.
172
173 \item [asking questions] If you cannot find an answer, you can post to
174 \url{http://latex.org/} and \url{https://tex.stackexchange.com/} through
175 their web interfaces, to \email{[email protected]} through email (it's not
176 necessary to subscribe in order to post). But before you post anywhere,
177 please read this FAQ entry, to maximize your chances of getting a useful
178 answer: \url{https://texfaq.org/FAQ-askquestion}.
179
180 \item [\TL{} support] If you want to report a bug or have
181 suggestions or comments on the \TL{} distribution, installation, or
182 documentation, the mailing list is \email{[email protected]}. However,
183 if your question is about how to use a particular program included in
184 \TL{}, please write to that program's maintainer or
185 mailing list. Often running a program with the \code{-{}-help} option
186 will provide a bug reporting address.
187
188 \end{description}
189
190 The other side of the coin is helping others who have questions. All
191 the above resources are open to anyone, so feel free to join, start
192 reading, and help out where you can.
193
194
195 % don't use \TL so the \uppercase in the headline works. Also so
196 % tex4ht ends up with the right TeX. Likewise the \protect's.
197 \section{Overview of \protect\TeX\protect\ Live}
198 \label{sec:overview-tl}
199
200 This section describes the contents of \TL{}, as well as the \TK{} of
201 which it is a part.
202
203 \subsection{The \protect\TeX\protect\ Collection: \protect\TL,
204 Mac\protect\TeX, MiK\protect\TeX, CTAN}
205 \label{sec:tl-coll-dists}
206
207 The \TK{} \DVD{} comprises the following:
208
209 \begin{description}
210
211 \item [\TL] A comprehensive cross-platform \TeX{} system to be installed
212 to disk. Home page: \url{https://tug.org/texlive/}.
213
214 \item [Mac\TeX] for \macOS. This adds a native \macOS\ installer and
215 other Mac applications to \TL{}. Home page: \url{https://tug.org/mactex/}.
216
217 \item [\MIKTEX] Another comprehensive cross-platform \TeX\ distribution
218 for Windows, GNU/Linux and \macOS\ (but only Windows binaries are
219 included on the DVD). It has an integrated package manager which
220 installs missing components from the Internet, as needed. Home page:
221 \url{https://miktex.org/}.
222
223 \item [CTAN] A snapshot of the \CTAN{} repository (\url{https://ctan.org/}).
224 \CTAN{} does not follow the same copying conditions as \TL{}, so be
225 careful when redistributing or modifying.
226
227 \end{description}
228
229 \subsection{Top level \protect\TL{} directories}
230 \label{sec:tld}
231
232 Here is a brief listing and description of the top level directories in a
233 \TL{} installation.
234
235 \begin{ttdescription}
236 \item[bin] The \TeX{} system programs, arranged by platform.
237 %
238 \item[readme-*.dir] Quick overview and useful links for \TL{},
239 in various languages, in both \HTML{} and plain text.
240 %
241 \item[source] The source to all included programs, including the main
242 \Webc{}-based \TeX{} distributions.
243 %
244 \item[texmf-dist] The principal tree; see \dirname{TEXMFDIST} below.
245 %
246 \item[tlpkg] Scripts, programs and data for managing the
247 installation, and special support for Windows.
248 \end{ttdescription}
249
250 For documentation, the comprehensive links in the top-level file
251 \OnCD{doc.html} may be helpful. The documentation for nearly everything
252 (packages, formats, fonts, program manuals, man pages, Info files) is in
253 \dirname{texmf-dist/doc}. You can use the \cmdname{texdoc} program to
254 find documentation wherever it is located.
255
256 This \TL\ documentation itself is in \dirname{texmf-dist/doc/texlive},
257 available in several languages:
258
259 \begin{itemize*}
260 \item{Czech/Slovak:} \OnCD{texmf-dist/doc/texlive/texlive-cz}
261 \item{German:} \OnCD{texmf-dist/doc/texlive/texlive-de}
262 \item{English:} \OnCD{texmf-dist/doc/texlive/texlive-en}
263 \item{French:} \OnCD{texmf-dist/doc/texlive/texlive-fr}
264 \item{Italian:} \OnCD{texmf-dist/doc/texlive/texlive-it}
265 \item{Japanese:} \OnCD{texmf-dist/doc/texlive/texlive-ja}
266 \item{Polish:} \OnCD{texmf-dist/doc/texlive/texlive-pl}
267 \item{Russian:} \OnCD{texmf-dist/doc/texlive/texlive-ru}
268 \item{Serbian:} \OnCD{texmf-dist/doc/texlive/texlive-sr}
269 \item{Spanish:} \OnCD{texmf-dist/doc/texlive/texlive-es}
270 \item{Simplified Chinese:} \OnCD{texmf-dist/doc/texlive/texlive-zh-cn}
271 \end{itemize*}
272
273 \subsection{Overview of the predefined texmf trees}
274 \label{sec:texmftrees}
275
276 This section lists the predefined variables specifying the texmf trees
277 used by the system, and their intended purpose, and the default layout
278 of \TL{}. The command \texttt{tlmgr~conf} shows the values of these
279 variables, so that you can easily find out how they map to particular
280 directories in your installation.
281
282 All of the trees, including the personal ones, should follow the \TeX\
283 Directory Structure (\TDS, \url{https://tug.org/tds}), with all its
284 myriad subdirectories, or files may not be found. Section
285 \ref{sec:local-personal-macros} (\p.\pageref{sec:local-personal-macros})
286 describes this in more detail. The order here is the reverse order in
287 which the trees are searched, that is, later trees in the list override
288 earlier ones.
289
290 \begin{ttdescription}
291 \item [TEXMFDIST] The tree which holds nearly all of the files in the original
292 distribution---configuration files, scripts, packages, fonts, etc.
293 (The main exceptions are the per-platform executables, which are stored
294 in a sibling directory \code{bin/}.)
295 \item [TEXMFSYSVAR] The (site-wide) tree used by \verb+texconfig-sys+,
296 \verb+updmap-sys+, \verb+fmtutil-sys+, and \verb+tlmgr+, to store
297 (cached) runtime data such as format files and generated map files.
298 \item [TEXMFSYSCONFIG] The (site-wide) tree used by
299 \verb+texconfig-sys+, \verb+updmap-sys+, and \verb+fmtutil-sys+ to
300 store modified configuration data.
301 \item [TEXMFLOCAL] The tree which administrators can use for system-wide
302 installation of additional or updated macros, fonts, etc.
303 \item [TEXMFHOME] The tree which users can use for their own individual
304 installations of additional or updated macros, fonts, etc.
305 For each user, this variable points to
306 their own individual directory.
307 \item [TEXMFVAR] The (personal) tree used by \verb+texconfig+,
308 \verb+updmap-user+ and \verb+fmtutil-user+ to store (cached) runtime data such
309 as format files and generated map files.
310 \item [TEXMFCONFIG] The (personal) tree used by the utilities
311 \verb+texconfig+, \verb+updmap-user+, and \verb+fmtutil-user+ to store modified
312 configuration data.
313 \item [TEXMFCACHE] The tree(s) used by \ConTeXt\ MkIV and Lua\LaTeX\
314 to store (cached) runtime data; defaults to \code{TEXMFSYSVAR},
315 or (if that's not writable), \code{TEXMFVAR}.
316 \end{ttdescription}
317
318 \noindent
319 The default layout is:
320 \begin{description}
321 \item[system-wide root] can span multiple \TL{} releases
322 (\texttt{/usr/local/texlive} by default on Unix):
323 \begin{ttdescription}
324 \item[2024] A previous release.
325 \item[2025] The current release.
326 \begin{ttdescription}
327 \item [bin] ~
328 \begin{ttdescription}
329 \item [i386-linux] \GNU/Linux binaries (32-bit)
330 \item [...]
331 \item [universal-darwin] \macOS\ binaries
332 \item [x86\_64-linux] \GNU/Linux binaries (64-bit)
333 \item [windows] Windows binaries (64-bit)
334 \end{ttdescription}
335 \item [texmf-dist\ \ ] \envname{TEXMFDIST} and \envname{TEXMFMAIN}
336 \item [texmf-var \ \ ] \envname{TEXMFSYSVAR}, \envname{TEXMFCACHE}
337 \item [texmf-config] \envname{TEXMFSYSCONFIG}
338 \end{ttdescription}
339 \item [texmf-local] \envname{TEXMFLOCAL}, intended to be
340 retained from release to release.
341 \end{ttdescription}
342 \item[user's home directory] (\texttt{\$HOME} or
343 \texttt{\%USERPROFILE\%})
344 \begin{ttdescription}
345 \item[.texlive2024] Privately generated and configuration data
346 for a previous release.
347 \item[.texlive2025] Privately generated and configuration data
348 for the current release.
349 \begin{ttdescription}
350 \item [texmf-var\ \ \ ] \envname{TEXMFVAR}, \envname{TEXMFCACHE}
351 \item [texmf-config] \envname{TEXMFCONFIG}
352 \end{ttdescription}
353 \item[texmf] \envname{TEXMFHOME} Personal macros, etc.
354 \end{ttdescription}
355 \end{description}
356
357
358 \subsection{Extensions to \protect\TeX}
359 \label{sec:tex-extensions}
360
361 Knuth's original \TeX{} itself is frozen, apart from rare bug fixes. It
362 is present in \TL\ as the program \prog{tex}, and will remain so
363 for the foreseeable future. \TL{} also contains several extended versions of
364 \TeX\ (also known as \TeX\ engines):
365
366 \begin{description}
367
368 \item [\eTeX] adds a set of new primitives
369 \label{text:etex} (related to macro expansion, character scanning,
370 classes of marks, additional debugging features, and more) and the
371 \TeXXeT{} extensions for bidirectional typesetting. In default mode,
372 \eTeX{} is 100\% compatible with ordinary \TeX. See
373 \OnCD{texmf-dist/doc/etex/base/etex_man.pdf}.
374
375 \item [pdf\TeX] builds on the \eTeX\ extensions, adding support for
376 writing PDF output as well as \dvi{}, and many non-output-related
377 extensions. This is the program invoked for many common formats, e.g.,
378 \prog{etex}, \prog{latex}, \prog{pdflatex}. Its web site is
379 \url{http://www.pdftex.org/}. See
380 \OnCD{texmf-dist/doc/pdftex/manual/pdftex-a.pdf} for the manual, and
381 \OnCD{texmf-dist/doc/pdftex/samplepdftex/samplepdf.tex} for example
382 usage of some of its features.
383
384 \item [Lua\TeX] adds support for Unicode input and OpenType\slash
385 TrueType- and system fonts. It also incorporates a Lua interpreter
386 (\url{https://lua.org/}), enabling solutions for many thorny \TeX{}
387 problems. When called as \filename{texlua}, it functions as a standalone
388 Lua interpreter. Its web site is \url{http://www.luatex.org/}, and the
389 reference manual is \OnCD{texmf-dist/doc/luatex/base/luatex.pdf}.
390
391 \item [(e)(u)p\TeX] have native support for Japanese typesetting
392 requirements; p\TeX\ is the basic engine, while the e- variants add
393 \eTeX\ functionality and u- add Unicode support.
394
395 \item [\XeTeX] adds support for Unicode input and OpenType\slash
396 TrueType- and system fonts, implemented using standard third-party
397 libraries. See \url{https://tug.org/xetex}.
398
399 \item [\OMEGA\ (Omega)] is based on Unicode (16-bit characters), thus
400 supports working with almost all the world's scripts simultaneously. It
401 also supports so-called `\OMEGA{} Translation Processes' (OTPs),
402 for performing complex transformations on arbitrary input. Omega is no
403 longer included in \TL{} as a separate program; only Aleph is provided:
404
405 \item [Aleph] combines the \OMEGA\ and \eTeX\ extensions.
406 See \OnCD{texmf-dist/doc/aleph/base}.
407
408 \end{description}
409
410
411 \subsection{Other notable programs in \protect\TL}
412
413 Here are a few other commonly-used programs included in \TL{}:
414
415 \begin{cmddescription}
416
417 \item [bibtex, biber] bibliography support.
418
419 \item [makeindex, upmendex, xindex, xindy] index support.
420
421 \item [dvips] convert \dvi{} to \PS{}.
422
423 \item [dvipdfmx] convert \dvi{} to PDF, an alternative approach
424 to pdf\TeX\ (mentioned above).
425
426 \item [xdvi] \dvi{} previewer for the X Window System.
427
428 \item [dviconcat, dviselect] cut and paste pages
429 from \dvi{} files.
430
431 \item [psselect, psnup, \ldots] \PS{} utilities.
432
433 \item [pdfjam, pdfjoin, \ldots] PDF utilities.
434
435 \item [context, mtxrun] \ConTeXt\ and PDF processor.
436
437 \item [htlatex, \ldots] \cmdname{tex4ht}: \AllTeX{} to HTML (and
438 XML and DocX and more) converter.
439
440 \end{cmddescription}
441
442
443 \htmlanchor{installation}
444 \section{Installation}
445 \label{sec:install}
446
447 \subsection{Starting the installer}
448 \label{sec:inst-start}
449
450 To begin, get the \TK{} \DVD{} or download the \TL{} net installer. See
451 \url{https://tug.org/texlive/acquire.html} for more information and other
452 methods of getting the software.
453
454 \begin{description}
455 \item [Net installer, .zip or .tar.gz:] Download the archive from \CTAN,
456 under \dirname{systems/texlive/tlnet}; the url
457 \url{https://mirror.ctan.org/systems/texlive/tlnet} should redirect to a
458 nearby, up-to-date, mirror. You can retrieve either
459 \filename{install-tl.zip} which can be used under Unix and Windows, or
460 the considerably smaller \filename{install-unx.tar.gz} for Unix
461 only. After unpacking, \filename{install-tl} and
462 \filename{install-tl-windows.bat} will be in the
463 subdirectory \dirname{install-tl-yyyymmdd}, where yyyymmdd
464 represents the date when the installer was generated.
465 \item[Net installer, Windows .exe:] Download from \CTAN{} as above,
466 and double-click. This starts up a first-stage installer and unpacker;
467 see figure~\ref{fig:nsis}. It gives two choices: `Install'
468 and `Unpack only'.
469
470 \item [\TeX{} Collection \DVD:] go to the \DVD's \dirname{texlive}
471 subdirectory. Under Windows, the installer normally starts automatically
472 when you insert the \DVD. You can get the \DVD\ by becoming a member of
473 a \TeX\ user group (highly recommended,
474 \url{https://tug.org/usergroups.html}), or purchasing it separately
475 (\url{https://tug.org/store}). You can burn your own \DVD\ for \TL\ from the
476 \ISO\ image downloaded from \CTAN.
477 You can also mount the \ISO\ directly on most systems. After installing
478 from \DVD\ or \ISO, if you want to get continuing updates from the
479 Internet, please see section~\ref{sec:dvd-install-net-updates}.
480
481 \end{description}
482
483 \begin{figure}[tb]
484 \def\figdesc{First stage of Windows \code{.exe} installer}
485 \tlpng{nsis_installer}{.6\linewidth}{\figdesc}
486 \caption{\figdesc. Pressing the Install button will give you the
487 window displayed in figure~\ref{fig:basic-w32}.}\label{fig:nsis}
488 \end{figure}
489
490 The same installer program is run, whatever the source. The most
491 notable difference between the two is that with the net installer, what
492 you end up with is the packages that are currently available. This is
493 in contrast to the \DVD\ and \ISO\ images, which are not updated between
494 the major public releases.
495
496 If you need to download through proxies, use a \filename{~/.wgetrc} file
497 or environment variables with the proxy settings for Wget
498 (\url{https://www.gnu.org/software/wget/manual/html_node/Proxies.html}),
499 or the equivalent for whatever download program you are using. This does
500 not matter if you are installing from the \DVD\ or \ISO\ image.
501
502 By default, the installer uses compression and download programs as
503 found in \code{PATH}. (Exception: on Windows, the tar.exe shipped with
504 TL is always used, regardless of any setting.) If you get errors during
505 download or unpacking, such as \code{tar:\ Skipping to next file header},
506 you can try setting the environment variable \code{TEXLIVE\_PREFER\_OWN}
507 to \code{1} to use \TL-provided programs instead. You can also
508 explicitly specify the programs and/or options to use with other
509 environment variables. The \code{tlmgr} documentation gives the details:
510 \url{https://tug.org/texlive/doc/tlmgr.html#ENVIRONMENT-VARIABLES}.
511
512 The following sections explain installer start-up in more detail.
513
514 \subsubsection{Unix}
515
516 Below, \texttt{>} denotes the shell prompt; user input is
517 \Ucom{\texttt{bold}}.
518 The \filename{install-tl} program is a Perl script. The simplest way
519 to start it on a Unix-compatible system is as follows:
520 \begin{alltt}
521 > \Ucom{perl /path/to/installer/install-tl}
522 \end{alltt}
523 (Or you can invoke \Ucom{/path/to/installer/install-tl} if it stayed
524 executable, or \texttt{cd} to the directory first, etc.; we won't repeat
525 all the variations.) You may have to enlarge your terminal window so
526 that it shows the full text installer screen
527 (figure~\ref{fig:text-main}).
528
529 To install in \GUI\ mode (figure~\ref{fig:advanced-lnx}), you'll need to
530 have Tcl/Tk installed. Given that, you can run:
531 \begin{alltt}
532 > \Ucom{perl install-tl -gui}
533 \end{alltt}
534
535 The old \code{-wizard} and \code{-perltk}/\code{-expert} options
536 now do the same thing as \code{-gui}. For
537 a complete listing of the various options:
538 \begin{alltt}
539 > \Ucom{perl install-tl -help}
540 \end{alltt}
541
542 \textbf{About Unix permissions:} Your \code{umask} at the time
543 of installation will be respected by the \TL{} installer. Therefore, if
544 you want your installation to be usable by users other than you, make
545 sure your setting is sufficiently permissive, for instance, \code{umask
546 002}. For more information about \code{umask}, consult your system
547 documentation.
548
549 \textbf{Special considerations for Cygwin:} Unlike other
550 Unix-compatible systems, Cygwin does not by default include all of the
551 prerequisite programs needed by the \TL{} installer. See
552 section~\ref{sec:cygwin} for the packages which you need to install first.
553
554
555 \subsubsection{\macOS}
556 \label{sec:macosx}
557
558 As mentioned in section~\ref{sec:tl-coll-dists}, a separate distribution
559 is prepared for \macOS, named Mac\TeX\ (\url{https://tug.org/mactex}).
560 We recommend using the native Mac\TeX\ installer instead of the \TL\
561 installer on \macOS, because the native installer makes a few
562 Mac-specific adjustments, in particular to allow easily switching
563 between different \TL\ releases on Macs, using the so-called \TeX{}Dist
564 data structure.
565
566 Mac\TeX\ is firmly based on \TL, and the main \TeX\ trees and binaries
567 are precisely the same. It adds a few extra folders with Mac-specific
568 documentation and applications.
569
570
571 \subsubsection{Windows}\label{sec:wininst}
572
573 If you are using the unpacked downloaded zip file, or the \DVD\
574 installer failed to start automatically, double-click
575 \filename{install-tl-windows.bat}.
576
577 You can also start the installer from the command-prompt. Below,
578 \texttt{>} denotes the prompt; user input is \Ucom{\texttt{bold}}. If
579 you are in the installer directory, run just:
580 \begin{alltt}
581 > \Ucom{install-tl-windows}
582 \end{alltt}
583
584 Or you can invoke it with an absolute location, such as:
585 \begin{alltt}
586 > \Ucom{D:\bs{}texlive\bs{}install-tl-windows}
587 \end{alltt}
588 for the \TK\ \DVD, supposing that \dirname{D:} is the optical
589 drive. Figure~\ref{fig:basic-w32} displays the initial basic screen
590 of the \GUI\ installer, which is the default for Windows.
591
592 To install in text mode, use:
593 \begin{alltt}
594 > \Ucom{install-tl-windows -no-gui}
595 \end{alltt}
596
597 For a complete listing of the various options:
598 \begin{alltt}
599 > \Ucom{install-tl-windows -help}
600 \end{alltt}
601
602 Add a \texttt{.bat} extension to the invocations if the same directory
603 also contains \texttt{install-tl-windows.exe}. This will not
604 normally be the case, unless you've mirrored the \dirname{tlnet} directory
605 locally.
606
607 Non-ASCII characters in the path for the \TL\ installation must be
608 avoided. This may be a problem particularly under Windows 11, where
609 users are forced to create a Microsoft network account upon
610 installation of Windows. See
611 \url{https://tug.org/texlive/windows.html\#nonascii} for some
612 workarounds.
613
614 \begin{figure}[tb]
615 \begin{boxedverbatim}
616 Installing TeX Live 2025 from: ...
617 Platform: x86_64-linux => 'GNU/Linux on x86_64'
618 Distribution: inst (compressed)
619 Directory for temporary files: /tmp
620 ...
621 Detected platform: GNU/Linux on Intel x86_64
622
623 <B> binary platforms: 1 out of 16
624
625 <S> set installation scheme: scheme-full
626
627 <C> customizing installation collections
628 40 collections out of 41, disk space required: 8648 MB (free: 138718 MB)
629
630 <D> directories:
631 TEXDIR (the main TeX directory):
632 /usr/local/texlive/2025
633 ...
634
635 <O> options:
636 [ ] use letter size instead of A4 by default
637 ...
638
639 <V> set up for portable installation
640
641 Actions:
642 <I> start installation to hard disk
643 <P> save installation profile to 'texlive.profile' and exit
644 <H> help
645 <Q> quit
646 \end{boxedverbatim}
647 \vskip-.5\baselineskip
648 \caption{Main text installer screen (\GNU/Linux)}\label{fig:text-main}
649 \end{figure}
650
651 \begin{figure}[tb]
652 \tlpng{basic-w32}{.6\linewidth}{Basic installer screen (Windows)}
653 \caption{Basic installer screen (Windows); the Advanced button will
654 result in something like figure~\ref{fig:advanced-lnx}}\label{fig:basic-w32}
655 \end{figure}
656
657 \begin{figure}[tb]
658 \tlpng{advanced-lnx}{\linewidth}{Advanced installer screen (\GNU/Linux)}
659 \caption{Advanced \GUI{} installer screen
660 (\GNU/Linux)}\label{fig:advanced-lnx}
661 \end{figure}
662
663
664 \htmlanchor{cygwin}
665 \subsubsection{Cygwin}
666 \label{sec:cygwin}
667
668 Before beginning the installation, use Cygwin's \filename{setup.exe}
669 program to install the \filename{perl} and either \filename{curl} or
670 \filename{wget} packages if you have not already done so. The following
671 additional packages are recommended:
672 \begin{itemize*}
673 \item \filename{fontconfig} [needed by \XeTeX\ and Lua\TeX]
674 \item \filename{ghostscript} [needed by various utilities]
675 \item \filename{libXaw7} [needed by \code{xdvi}]
676 \item \filename{ncurses} [provides the \code{clear} command used by the installer]
677 \end{itemize*}
678
679
680 \subsubsection{The text installer}
681
682 Figure~\ref{fig:text-main} displays the main text mode screen under
683 Unix. The text installer is the default on Unix.
684
685 This is only a command-line installer; there is no cursor support at
686 all. For instance, you cannot tab around checkboxes or input fields.
687 You just type something (case-sensitive) at the prompt and press the
688 Enter key, and then the entire terminal screen will be rewritten, with
689 adjusted content.
690
691 The text installer interface is this primitive in order to make it run
692 on as many platforms as possible, even with a minimal Perl.
693
694 \subsubsection{The graphical installer}
695 \label{sec:graphical-inst}
696
697 The default graphical installer starts out simple, with just a
698 few options; see figure~\ref{fig:basic-w32}. It can be started with
699 \begin{alltt}
700 > \Ucom{install-tl -gui}
701 \end{alltt}
702 The Advanced button gives access to most of the options of the text
703 installer; see figure~\ref{fig:advanced-lnx}.
704
705 The \texttt{perltk}/\texttt{expert} and \texttt{wizard} \GUI{}
706 options now invoke the regular graphical installer.
707
708 \subsection{Running the installer}
709 \label{sec:runinstall}
710
711 The installer is intended to be mostly self-explanatory, but following are a
712 few notes about the various options and submenus.
713
714 \subsubsection{Binary systems menu (Unix only)}
715 \label{sec:binary}
716
717 \begin{figure}[tb]
718 \begin{boxedverbatim}
719 Available platforms:
720 ===============================================================================
721 a [ ] Cygwin on x86_64 (x86_64-cygwin)
722 b [ ] MacOSX current (10.14-) on ARM/x86_64 (universal-darwin)
723 c [ ] MacOSX legacy (10.6-) on x86_64 (x86_64-darwinlegacy)
724 d [ ] FreeBSD on x86_64 (amd64-freebsd)
725 e [ ] FreeBSD on Intel x86 (i386-freebsd)
726 f [ ] GNU/Linux on ARM64 (aarch64-linux)
727 g [ ] GNU/Linux on RPi(32-bit) and ARMv7 (armhf-linux)
728 h [ ] GNU/Linux on Intel x86 (i386-linux)
729 i [X] GNU/Linux on x86_64 (x86_64-linux)
730 j [ ] GNU/Linux on x86_64 with musl (x86_64-linuxmusl)
731 k [ ] NetBSD on x86_64 (amd64-netbsd)
732 l [ ] NetBSD on Intel x86 (i386-netbsd)
733 m [ ] Solaris on Intel x86 (i386-solaris)
734 o [ ] Solaris on x86_64 (x86_64-solaris)
735 p [ ] Windows (64-bit) (windows)
736 \end{boxedverbatim}
737 \vskip-.5\baselineskip
738 \caption{Binaries menu}\label{fig:bin-text}
739 \end{figure}
740
741 Figure~\ref{fig:bin-text} displays the text mode binaries menu. By
742 default, only the binaries for your current platform will be installed.
743 From this menu, you can select installation of binaries for other
744 platforms as well. This can be useful if you are sharing a \TeX\
745 tree across a network of heterogeneous machines, or for a dual-boot
746 system.
747
748 \subsubsection{Selecting what is to be installed}
749 \label{sec:components}
750
751 \begin{figure}[tbh]
752 \begin{boxedverbatim}
753 Select scheme:
754 ===============================================================================
755 a [X] full scheme (everything)
756 b [ ] medium scheme (small + more packages and languages)
757 c [ ] small scheme (basic + xetex, metapost, a few languages)
758 d [ ] basic scheme (plain and latex)
759 e [ ] minimal scheme (plain only)
760 f [ ] infrastructure-only scheme (no TeX at all)
761 g [ ] book publishing scheme (core LaTeX and add-ons)
762 h [ ] ConTeXt scheme
763 i [ ] GUST TeX Live scheme
764 j [ ] teTeX scheme (more than medium, but nowhere near full)
765 k [ ] custom selection of collections
766 \end{boxedverbatim}
767 \vskip-.5\baselineskip
768 \caption{Scheme menu}\label{fig:scheme-text}
769 \end{figure}
770
771 Figure~\ref{fig:scheme-text} displays the \TL\ scheme menu; from here,
772 you choose a ``scheme'', which is an overall set of package collections.
773 The default \optname{full} scheme installs everything available. This is
774 recommended, but you can also choose the \optname{basic} scheme for
775 just plain and \LaTeX, \optname{small} for a few more programs
776 (equivalent to the so-called Basic\TeX\ installation of Mac\TeX),
777 \optname{minimal} for testing purposes, and \optname{medium} or
778 \optname{teTeX} to get something in between. There are also various
779 specialized and country-specific schemes.
780
781 \begin{figure}[tb]
782 \def\figdesc{Collections menu}
783 \centering \tlpng{stdcoll}{.7\linewidth}{\figdesc}
784 \caption{\figdesc}\label{fig:collections-gui}
785 \end{figure}
786
787 You can refine your scheme selection with the `collections' menu
788 (figure~\ref{fig:collections-gui}, shown in \GUI\ mode for a change).
789
790 Collections are one level more detailed than schemes\Dash in essence, a
791 scheme consists of several collections, a collection consists of one or
792 more packages, and a package (the lowest level grouping in \TL) contains
793 the actual \TeX\ macro files, font files, and so on.
794
795 If you want more control than the collection menus provide, you can use
796 the \TL\ Manager (\prog{tlmgr}) program after installation (see
797 section~\ref{sec:tlmgr}); using that, you can control the installation
798 at the package level.
799
800 \subsubsection{Directories}
801 \label{sec:directories}
802
803 The default layout is described in section~\ref{sec:texmftrees},
804 \p.\pageref{sec:texmftrees}. The default installation directory is
805 \dirname{/usr/local/texlive/2025} on Unix and
806 |C:\texlive\2025| on Windows. This arrangement enables
807 having many parallel \TL\ installations, such as one for each release
808 (typically by year, as here), and you can switch between them merely by
809 altering your search path.
810
811 That installation directory can be overridden by setting the so-called
812 \dirname{TEXDIR} in the installer. The \GUI\ screen for this and other
813 options is shown in figure~\ref{fig:advanced-lnx}. The most common reasons
814 to change it are either lacking enough disk space in that partition (the
815 full \TL\ needs several gigabytes), or lacking write permission for the
816 default location (you don't have to be root or administrator to install
817 \TL, but you do need write access to the target directory).
818
819 On Windows, you normally do not need to be an administrator to
820 create |C:\texlive\2025| (or, more generally,
821 |%SystemDrive%\texlive\2025|).
822
823 The installation directories can also be changed by setting a variety of
824 environment variables before running the installer (most likely,
825 \envname{TEXLIVE\_INSTALL\_PREFIX} or
826 \envname{TEXLIVE\_INSTALL\_TEXDIR}); see the documentation from
827 |install-tl --help| (available online at
828 \url{https://tug.org/texlive/doc/install-tl.html}) for the full list and
829 more details.
830
831 A reasonable alternative destination is a directory under your home,
832 especially if you will be the sole user. Use `|~|' to indicate this, as
833 in `|~/texlive/2025|'.
834
835 But do not use your home directory on Windows if the name of your home
836 or `userprofile' contains non-ASCII characters. We are looking into
837 possible solutions, but cannot promise anything at this point. See also
838 \url{https://tug.org/texlive/windows.html\#nonascii}.
839
840 We recommend including the year in the name, to enable keeping different
841 releases of \TL{} side by side. (You may wish to also maintain a
842 version-independent name, such as \dirname{/usr/local/texlive-cur}, via a
843 symbolic link, which you can then repoint after testing the new release.)
844
845 Changing \dirname{TEXDIR} in the installer will also change
846 \dirname{TEXMFLOCAL}, \dirname{TEXMFSYSVAR} and
847 \dirname{TEXMFSYSCONFIG}.
848
849 \dirname{TEXMFHOME} is the recommended location for personal macro files
850 or packages. The default value is |~/texmf| (|~/Library/texmf| on
851 Macs). In contrast to \dirname{TEXDIR}, here a |~| is preserved in the
852 newly-written configuration files, since it usefully refers to the home
853 directory of the user running \TeX. It expands to \dirname{$HOME} on
854 Unix and \verb|%USERPROFILE%| on Windows. Special redundant note:
855 \envname{TEXMFHOME}, like all trees, must be organized according to the
856 \TDS, or files may not be found.
857
858 \dirname{TEXMFVAR} is the location for storing most cached runtime data
859 specific to each user. \dirname{TEXMFCACHE} is the variable name used
860 for that purpose by Lua\LaTeX\ and \ConTeXt\ MkIV (see
861 section~\ref{sec:context}, \p.\pageref{sec:context}); its
862 default value is \dirname{TEXMFSYSVAR}, or (if that's not writable),
863 \dirname{TEXMFVAR}.
864
865
866 \subsubsection{Options}
867 \label{sec:options}
868
869 \begin{figure}[tbh]
870 \begin{boxedverbatim}
871 Options customization:
872 ===============================================================================
873 <P> use letter size instead of A4 by default: [ ]
874 <E> execution of restricted list of programs: [X]
875 <F> create all format files: [X]
876 <D> install font/macro doc tree: [X]
877 <S> install font/macro source tree: [X]
878 <L> create symlinks in standard directories: [ ]
879 binaries to:
880 manpages to:
881 info to:
882 <Y> after install, set CTAN as source for package updates: [X]
883 \end{boxedverbatim}
884 \vskip-.5\baselineskip
885 \caption{Options menu (Unix)}\label{fig:options-text}
886 \end{figure}
887
888 Figure~\ref{fig:options-text} shows the text mode options menu.
889 More info on each:
890
891 \begin{description}
892 \item[use letter size instead of A4 by default:] The default paper
893 size selection. Of course, individual documents can and should
894 specify a specific paper size, if desired.
895
896 \item[execution of restricted list of programs:] As of \TL\ 2010,
897 execution of a few external programs is allowed by default. The (very
898 short) list of allowed programs is given in the \filename{texmf.cnf}.
899 See the 2010 news (section~\ref{sec:2010news}) for more details.
900
901 \item[create all format files:] We recommend leaving this option
902 checked, to avoid unnecessary problems when creating formats
903 dynamically. See the \prog{fmtutil} documentation for more details.
904
905 \item[install font/macro \ldots\ tree:] Download/install the
906 documentation and source files included in most packages. Unchecking
907 is not recommended.
908
909 \item[create symlinks in standard directories:]
910 This option (Unix only) bypasses the need to change environment
911 variables. Without this option, \TL{} directories usually have to be
912 added to \envname{PATH}, \envname{MANPATH} and \envname{INFOPATH}. You
913 will need write permissions to the target directories. This option is
914 intended for accessing the \TeX\ system through directories that are
915 already known to users, such as \dirname{/usr/local/bin}, which don't
916 already contain any \TeX\ files. Do not overwrite existing files on
917 your system with this option, e.g., by specifying system directories.
918 The safest and recommended approach is to leave the option unchecked.
919
920 \item[after install, set CTAN as source for package updates:]
921 When installing from a \DVD\ or \ISO\ image, this
922 option is enabled by default, since usually one wants to take any
923 subsequent package updates from the \CTAN\ area that is updated
924 throughout the year. The only likely reason to disable it is if you
925 install only a subset from the \DVD\ and plan to augment the
926 installation later. In any case, the package repository for the
927 installer, and for updates after installation, can be set
928 independently as needed; see section~\ref{sec:location} and
929 section~\ref{sec:dvd-install-net-updates}.
930 \end{description}
931 Windows-specific options, as displayed in the advanced \GUI{}
932 interface:
933 \begin{description}
934 \item[adjust searchpath] This ensures that all
935 programs will see the \TL{} binary directory on their search path.
936
937 \item[add menu shortcuts] If set, there will be a \TL{} submenu of
938 the Start menu. There is a third option `Launcher entry' besides
939 `TeX Live menu' and `No shortcuts'. This option is described in
940 section \ref{sec:sharedinstall}.
941
942 \item[File associations] The options are `Only new' (create
943 file associations, but do not overwrite existing ones), `All' and
944 `None'.
945
946 \item[install \TeX{}works front end]
947 \end{description}
948 When all the settings are to your liking, you can type `I' in the
949 text interface, or press the `Install' button in the
950 \GUI, to start the installation process. When it is done,
951 skip to section~\ref{sec:postinstall} to read what else needs to be
952 done, if anything.
953
954 \subsection{Command-line install-tl options}
955 \label{sec:cmdline}
956
957 Type
958 \begin{alltt}
959 > \Ucom{install-tl -help}
960 \end{alltt}
961 for a listing of command-line options. Either |-| or |--| can be used
962 to introduce option names. These are the most common ones:
963
964 \begin{ttdescription}
965 \item[-gui] Use the \GUI{} installer if possible. This requires
966 Tcl/Tk version 8.5 or higher. This was distributed with older \macOS;
967 for Big Sur and later, you'll need to install Tcl/Tk yourself, if you
968 don't choose to use the Mac\TeX\ installer. Tcl/Tk is
969 distributed with \TL{} on Windows. The legacy options
970 \texttt{-gui=perltk} and \texttt{-gui=wizard} are still available
971 but invoke the same \GUI{} interface; if Tcl/Tk is not available,
972 installation continues in text mode.
973
974 \item[-no-gui] Force using the text mode installer.
975
976 \item[-lang {\sl LL}] Specify the installer interface
977 language as a standard (usually two-letter) code. The installer tries
978 to automatically determine the right language but if it fails, or if
979 the right language is not available, then it uses English as a
980 fallback. Run \verb|install-tl --help| to get the list of available
981 languages.
982
983 \item[-portable] Install for portable use on, e.g., a \USB{} stick.
984 Also selectable from within the text installer with the \code{V}
985 command, and from the \GUI{} installer. See
986 section~\ref{sec:portable-tl}.
987
988 \item[-profile {\sl file}] Load the installation profile \var{file} and
989 do the installation with no user interaction. The installer always
990 writes a file \filename{texlive.profile} to the \dirname{tlpkg}
991 subdirectory of your installation. That file can be given as the
992 argument to redo the exact same installation on a different system,
993 for example. Alternatively, you can use a custom profile, most easily
994 created by starting from a generated one and changing values, or an
995 empty file, which will take all the defaults.
996
997 \item [-repository {\sl url-or-directory}] Specify package
998 repository from which to install; see following.
999
1000 \htmlanchor{opt-in-place}
1001 \item[-in-place] (Documented only for completeness: Do not use this
1002 unless you know what you are doing.) If you already have an rsync, svn,
1003 or other copy of \TL{} (see
1004 \url{https://tug.org/texlive/acquire-mirror.html}) then this option
1005 will use what you've got, as-is, and do only the necessary
1006 post-install actions. Be warned that the file \filename{tlpkg/texlive.tlpdb}
1007 may be overwritten; saving it is your responsibility. Also, package
1008 removal has to be done manually. This option cannot be toggled via the
1009 installer interface.
1010 \end{ttdescription}
1011
1012
1013 \subsubsection{The \optname{-repository} option}
1014 \label{sec:location}
1015
1016 The default network package repository is a \CTAN{} mirror chosen
1017 automatically via \url{https://mirror.ctan.org}.
1018
1019 If you want to override that, the location value can be a url
1020 starting with \texttt{ftp:}, \texttt{http:}, \texttt{https:},
1021 \texttt{file:/}, or a plain directory path. (When giving an
1022 \texttt{http:}, \texttt{https:} or \texttt{ftp:}\ location, trailing
1023 `\texttt{/}' characters and/or a trailing `\texttt{/tlpkg}'
1024 component are ignored.)
1025
1026 For example, you could choose a particular \CTAN\ mirror with something
1027 like: \url{http://ctan.example.org/tex-archive/systems/texlive/tlnet/},
1028 substituting a real hostname and its particular top-level \CTAN\ path
1029 for |ctan.example.org/tex-archive|. The list of \CTAN\ mirrors is
1030 maintained at \url{https://ctan.org/mirrors}.
1031
1032 If the given argument is local (either a path or a \texttt{file:/} url),
1033 compressed files in an \dirname{archive} subdirectory of the repository
1034 path are used (even if uncompressed files are available as well).
1035
1036 \htmlanchor{postinstall}
1037 \subsection{Post-install actions}
1038 \label{sec:postinstall}
1039
1040 Some post-installation may be required.
1041
1042 \subsubsection{Environment variables for Unix}
1043 \label{sec:env}
1044
1045 If you elected to create symlinks in standard directories (described in
1046 section~\ref{sec:options}), then there is no need to edit environment
1047 variables. Otherwise, on Unix systems, the directory of the binaries
1048 for your platform must be added to the search path. (On Windows, the
1049 installer takes care of this.)
1050
1051 Each supported platform has its own subdirectory under
1052 \dirname{TEXDIR/bin}. See figure~\ref{fig:bin-text} for the list of
1053 subdirectories and corresponding platforms.
1054
1055 Optionally, you can also add the documentation man and Info directories
1056 to their respective search paths, if you want the system tools to find
1057 them. The man pages might be found automatically after the addition to
1058 \envname{PATH}.
1059
1060 For Bourne-compatible shells such as \prog{bash}, and using Intel x86
1061 GNU/Linux and the \TL\ default directory setup as an example, the file to edit
1062 might be \filename{$HOME/.profile} (or another file sourced by
1063 \filename{.profile}), and the lines to add would look like this:
1064
1065 \begin{sverbatim}
1066 PATH=/usr/local/texlive/2025/bin/x86_64-linux:$PATH; export PATH
1067 MANPATH=/usr/local/texlive/2025/texmf-dist/doc/man:$MANPATH; export MANPATH
1068 INFOPATH=/usr/local/texlive/2025/texmf-dist/doc/info:$INFOPATH; export INFOPATH
1069 \end{sverbatim}
1070
1071 For csh or tcsh, the file to edit is typically \filename{$HOME/.cshrc}, and
1072 the lines to add might look like:
1073
1074 \begin{sverbatim}
1075 setenv PATH /usr/local/texlive/2025/bin/x86_64-linux:$PATH
1076 setenv MANPATH /usr/local/texlive/2025/texmf-dist/doc/man:$MANPATH
1077 setenv INFOPATH /usr/local/texlive/2025/texmf-dist/doc/info:$INFOPATH
1078 \end{sverbatim}
1079
1080 If you're not on an \code{x86\_64-linux} platform, use the appropriate
1081 platform name; similarly, if you didn't install in the default
1082 directory, change the directory name. The \TL\ installer reports the
1083 full lines to use at the end of installation.
1084
1085 If you already have \envname{PATH} settings somewhere in your startup
1086 files, merge in the \TL\ directories as you see fit.
1087
1088
1089 \subsubsection{Environment variables: Global configuration}
1090 \label{sec:envglobal}
1091
1092 If you want to make these changes globally, or for a user newly added to
1093 the system, then you are on your own; there is just too much variation
1094 between systems in how and where these things are configured.
1095
1096 Our two hints are: 1)~you may want to check for a file
1097 \filename{/etc/manpath.config} and, if present, add lines such as
1098
1099 \begin{sverbatim}
1100 MANPATH_MAP /usr/local/texlive/2025/bin/x86_64-linux \
1101 /usr/local/texlive/2025/texmf-dist/doc/man
1102 \end{sverbatim}
1103
1104 And 2)~check for a file \filename{/etc/environment} which may define the
1105 search path and other default environment variables.
1106
1107 In each (Unix) binary directory, we also create a symbolic link named
1108 \code{man} to the directory \dirname{texmf-dist/doc/man}. Some \code{man}
1109 programs, such as the standard \macOS\ \code{man}, will automatically
1110 find that, obviating the need for any man page setup.
1111
1112
1113 \subsubsection{Internet updates after \DVD\ or \ISO\ installation}
1114 \label{sec:dvd-install-net-updates}
1115
1116 If you installed \TL\ from \DVD\ or an \ISO\ image and then wish to get
1117 updates from the Internet, you need to run this command---\emph{after}
1118 you've updated your search path (as described in the previous section):
1119
1120 \begin{alltt}
1121 > \Ucom{tlmgr option repository https://mirror.ctan.org/systems/texlive/tlnet}
1122 \end{alltt}
1123
1124 This tells \cmdname{tlmgr} to use a nearby \CTAN\ mirror for future updates.
1125 This is done by default when installing from \DVD, via the option
1126 described in section~\ref{sec:options}.
1127
1128 If there are problems with the automatic mirror selection, you can
1129 specify a particular \CTAN\ mirror from the list at
1130 \url{https://ctan.org/mirrors}. Use the exact path to the
1131 \dirname{tlnet} subdir on that mirror, as shown above.
1132
1133
1134 \htmlanchor{xetexfontconfig} % keep historical anchor working
1135 \htmlanchor{sysfontconfig}
1136 \subsubsection{System font configuration for \protect\XeTeX\protect\ and Lua\protect\TeX}
1137 \label{sec:font-conf-sys}
1138
1139 \XeTeX\ and Lua\TeX\ can use any font installed on the system, not just
1140 those in the \TeX\ trees. Such system fonts (not part of \TL) are
1141 usually accessed by giving the font name, e.g., `\code{Liberation
1142 Serif}', although the system filename can also be used.
1143
1144 A related issue is making the fonts from the \TL\ distribution available
1145 as system fonts, which will in turn make them available by font name.
1146
1147 For Lua\TeX: for access by font name, nothing special need be done. All
1148 fonts in \TL\ should be equally accessible by either font name or
1149 filename to Lua\TeX, via the \pkgname{luaotfload} package, which
1150 supports both \LaTeX\ and plain \TeX. The \pkgname{luaotfload} font name
1151 index may need to be rebuilt for new fonts; this is triggered
1152 automatically when trying to load a font which isn't known yet.
1153
1154 For \XeTeX: on Windows, fonts shipped with \TL\ are automatically made
1155 available (by running the \cmdname{fc-cache} program provided for
1156 Windows as part of \TL). For the Mac, you'll need to consult other
1157 documentation. For Unix systems other than \macOS, the procedure is the
1158 following.
1159
1160 When the \pkgname{xetex} package is installed (either at initial
1161 installation or later), the necessary configuration file is created in
1162 \filename{TEXMFSYSVAR/fonts/conf/texlive-fontconfig.conf}. To make the
1163 \TL\ fonts available as system fonts,
1164 \begin{enumerate*}
1165 \item Copy that \filename{texlive-fontconfig.conf} file to (typically)
1166 \dirname{/etc/fonts/conf.d/09-texlive.conf}.
1167 \item Run \Ucom{fc-cache -fsv}.
1168 \end{enumerate*}
1169
1170 If you do not have sufficient privileges to carry out the steps above,
1171 or if you want to make the \TL{} fonts available to only one user,
1172 you can do the following:
1173 \begin{enumerate*}
1174 \item Copy the \filename{texlive-fontconfig.conf} file to (typically)
1175 \filename{~/.fonts.conf.d/09-texlive.conf}, where \filename{~} is
1176 your home directory.
1177 \item Run \Ucom{fc-cache -fv}.
1178 \end{enumerate*}
1179
1180 You can run \code{fc-list} to see the names of the available system
1181 fonts. The incantation \code{fc-list : family style file spacing} (all
1182 those arguments are literal strings) shows some generally interesting
1183 information.
1184
1185
1186 \subsubsection{\protect\ConTeXt{} LMTX and MKIV}
1187 \label{sec:context} % keeping both labels for backward compatibility
1188 \label{sec:context-mkiv}
1189
1190 Both the `old' \ConTeXt{} (Mark IV or MkIV) and the `new' \ConTeXt{}
1191 (LMTX or MkXL) should run out of the box after \TL{} installation,
1192 and should need no special attention as long as you stick to
1193 using \verb+tlmgr+ for updates.
1194
1195 \ConTeXt{} does not use the Kpathsea library or the system \code{ls-R}
1196 files; instead, \ConTeXt{} maintains a per-user filename database for
1197 all known trees. Running \code{mktexlsr} won't update these databases
1198 directly, but \ConTeXt{} will automatically rebuild them the next time
1199 it runs. (The \TL-specific files \code{cont-sys.mkiv} and
1200 \code{cont-sys.mkxl} implement this.)
1201
1202 If you ever want to manually rebuild these databases, run either or both of:
1203 \begin{sverbatim}
1204 mtxrun --generate # LMTX
1205 mtxrun --luatex --generate # MkIV
1206 \end{sverbatim}
1207 The resulting files are stored under \code{TEXMFCACHE},
1208 whose default value in \TL\ is \verb+TEXMFSYSVAR;TEXMFVAR+.
1209
1210 \ConTeXt\ will read from all paths mentioned in \verb+TEXMFCACHE+, and
1211 write to the first path that is writable. While reading, the last found
1212 match will take precedence in the case of duplicated cache data.
1213
1214 For more information, see \url{https://wiki.contextgarden.net/LMTX}\\
1215 and \url{https://wiki.contextgarden.net/Running_Mark_IV}.
1216
1217
1218 \subsubsection{Integrating local and personal macros}
1219 \label{sec:local-personal-macros}
1220
1221 This is already mentioned implicitly in section~\ref{sec:texmftrees}:
1222 \dirname{TEXMFLOCAL} (by default,
1223 \dirname{/usr/local/texlive/texmf-local} or
1224 \verb|%SystemDrive%\texlive\texmf-local| on Windows)
1225 is intended for system-wide local fonts and macros; and
1226 \dirname{TEXMFHOME} (by default, \dirname{$HOME/texmf} or
1227 \verb|%USERPROFILE%\texmf|), is for personal fonts and macros. These
1228 directories are intended to stick around from release to release, and
1229 have their content seen automatically by a new \TL{} release.
1230 Therefore, it is best to refrain from changing the definition of
1231 \dirname{TEXMFLOCAL} to be too far away from the main \TL{} directory,
1232 or you will need to manually change future releases.
1233
1234 For both trees, files should be placed in their proper \TeX\ Directory
1235 Structure (\TDS) subdirectories; see \url{https://tug.org/tds} or consult
1236 \filename{texmf-dist/web2c/texmf.cnf}. For instance, a \LaTeX{} class file or
1237 package should be placed in \dirname{TEXMFLOCAL/tex/latex} or
1238 \dirname{TEXMFHOME/tex/latex}, or a subdirectory thereof.
1239
1240 \dirname{TEXMFLOCAL} requires an up-to-date filename database, or files
1241 will not be found. You can update it with the command
1242 \cmdname{mktexlsr} or use the `Update filename database' button on the
1243 `Actions' tab of the \TL\ Manager \GUI.
1244
1245 By default, each of these variables is defined to be a single directory,
1246 as shown. This is not a hard-and-fast requirement. If you need to
1247 easily switch back and forth between different versions of large
1248 packages, for example, you can maintain multiple trees for your own
1249 purposes. This is done by setting \dirname{TEXMFHOME} to the
1250 list of directories, within braces, separated by commas:
1251
1252 \begin{verbatim}
1253 TEXMFHOME = {/my/dir1,/mydir2,/a/third/dir}
1254 \end{verbatim}
1255
1256 Section~\ref{sec:brace-expansion} describes brace expansion further.
1257
1258
1259 \subsubsection{Integrating third-party fonts}
1260
1261 This is unfortunately a messy topic for \TeX\ and pdf\TeX. Forget about
1262 it unless you want to delve into many details of the \TeX{}
1263 installation. Many fonts are included in \TL\ already, so take a look if
1264 you like; the web pages under \url{https://tug.org/FontCatalogue}
1265 display nearly all of the text fonts included in the main \TeX\
1266 distributions, categorized in various ways.
1267
1268 If you do want to install your own fonts, see
1269 \url{https://tug.org/fonts/fontinstall.html} for our best effort at
1270 describing the procedure.
1271
1272 Also consider using \XeTeX\ or Lua\TeX\ (see
1273 section~\ref{sec:tex-extensions}), which let you use operating
1274 system fonts without any installation in \TeX. (But beware that using
1275 system fonts usually makes your document sources unusable by anyone in a
1276 different environment.)
1277
1278 \subsection{Testing the installation}
1279 \label{sec:test-install}
1280
1281 After installing \TL{}, you naturally want to test it out, so you can
1282 start creating beautiful documents and\slash or fonts.
1283
1284 One thing you may immediately be looking for is a front-end with which
1285 to edit files. \TL{} installs \TeX{}works
1286 (\url{https://tug.org/texworks}) on Windows (only), and Mac\TeX\ installs
1287 TeXShop (\url{https://pages.uoregon.edu/koch/texshop}). On other Unix
1288 systems, it's left up to you to choose an editor. There are many
1289 choices available, some of which are listed in the next section; see
1290 also \url{https://tug.org/interest.html#editors}. Any plain text editor
1291 will work; something \TeX-specific is not required.
1292
1293 The rest of this section gives some basic procedures for testing that
1294 the new system is functional. We give Unix commands here; under
1295 \macOS{} and Windows, you're more likely to run the tests through a
1296 graphical interface, but the principles are the same.
1297
1298 \begin{enumerate}
1299
1300 \item Make sure that you can run the \cmdname{tex} program in the first
1301 place:
1302 \begin{alltt}
1303 > \Ucom{tex -{}-version}
1304 TeX 3.14159265 (TeX Live ...)
1305 Copyright ... D.E. Knuth.
1306 ...
1307 \end{alltt}
1308 If this comes back with `command not found' instead of version and
1309 copyright information, or with an older version, most likely you don't
1310 have the correct \dirname{bin} subdirectory in your \envname{PATH}. See
1311 the environment-setting information on \p.\pageref{sec:env}.
1312
1313 \item Process a basic \LaTeX{} file, generating PDF:
1314 \begin{alltt}
1315 > \Ucom{pdflatex sample2e.tex}
1316 This is pdfTeX 3.14...
1317 ...
1318 Output written on sample2e.pdf (3 pages, 142120 bytes).
1319 Transcript written on sample2e.log.
1320 \end{alltt}
1321 If this fails to find \filename{sample2e.tex} or other files,
1322 you may have interference from old environment variables or
1323 configuration files; we recommend unsetting all \TeX-related environment
1324 variables for a start. (For a deep analysis, you can ask \TeX{} to
1325 report on exactly what it is searching for, and finding; see ``Debugging
1326 actions'' on page~\pageref{sec:debugging}.)
1327
1328 \item Preview the PDF file, for example:
1329 \begin{alltt}
1330 > \Ucom{xpdf sample2e.pdf}
1331 \end{alltt}
1332 You should see a new window with a nice document explaining some of the
1333 basics of \LaTeX{}. (It's well worth reading, by the way, if you're new
1334 to \TeX.)
1335
1336 Of course there are many other PDF viewers; on Unix systems,
1337 \cmdname{evince} and \cmdname{okular} are commonly used. For Windows, we
1338 recommend trying Sumatra PDF
1339 (\url{https://www.sumatrapdfreader.org/free-pdf-reader.html}). No PDF
1340 viewers are included in \TL{}, so you must install whatever you want to
1341 use separately.
1342
1343 \item Of course you can still generate \TeX's original \dvi{} format:
1344 \begin{alltt}
1345 > \Ucom{latex sample2e.tex}
1346 \end{alltt}
1347
1348 \item And preview the \dvi{} online:
1349 \begin{alltt}
1350 > \Ucom{xdvi sample2e.dvi} # Unix
1351 > \Ucom{dviout sample2e.dvi} # Windows
1352 \end{alltt}
1353 You do have to be running under X for \cmdname{xdvi} to work; if
1354 you're not, or your \envname{DISPLAY} environment variable is set
1355 incorrectly, you'll get an error \samp{Can't open display}.
1356
1357 \item To create a \PS{} file from the \dvi:
1358 \begin{alltt}
1359 > \Ucom{dvips sample2e.dvi -o sample2e.ps}
1360 \end{alltt}
1361
1362 \item Or to create PDF from the \dvi{}, an alternate path to using
1363 pdf\TeX\ (or Xe\TeX\ or Lua\TeX) which can be useful sometimes:
1364 \begin{alltt}
1365 > \Ucom{dvipdfmx sample2e.dvi -o sample2e.pdf}
1366 \end{alltt}
1367
1368 \item Other standard test files you may find useful in addition to
1369 \filename{sample2e.tex}:
1370
1371 \begin{ttdescription}
1372 \item [small2e.tex] A simpler document than \filename{sample2e}, to
1373 reduce the input size if you're having troubles.
1374 \item [testpage.tex] Test if your printer introduces any offsets.
1375 \item [nfssfont.tex] For printing font tables and tests.
1376 \item [testfont.tex] Also for font tables, but using plain \TeX{}.
1377 \item [story.tex] The most canonical (plain) \TeX{} test file of all.
1378 You must type \samp{\bs bye} to the \code{*} prompt after \samp{tex
1379 story.tex}.
1380 \end{ttdescription}
1381
1382 \item If you have installed the \filename{xetex} package, you can test
1383 its access to system fonts as follows:
1384 \begin{alltt}
1385 > \Ucom{xetex opentype-info.tex}
1386 This is XeTeX, Version 3.14\dots
1387 ...
1388 Output written on opentype-info.pdf (1 page).
1389 Transcript written on opentype-info.log.
1390 \end{alltt}
1391
1392 If you get an error message saying ``Invalid fontname `Latin Modern
1393 Roman/ICU'\dots'', then you need to configure your system so that the
1394 fonts shipped with \TL\ can be found. See
1395 section~\ref{sec:font-conf-sys}.
1396
1397 \end{enumerate}
1398
1399 \htmlanchor{uninstall}
1400 \subsection{Uninstalling \TL}
1401 \label{sec:uninstall}
1402
1403 To uninstall \TL\ (after a successful installation; for Windows, see
1404 below):
1405
1406 \begin{alltt}
1407 > \Ucom{tlmgr uninstall --all}
1408 \end{alltt}
1409
1410 You will be asked for confirmation, else nothing will be done.
1411 (Without \code{-{}-all}, the \code{uninstall} action is used to remove
1412 individual packages.)
1413
1414 This does not remove user-specific directories, namely (see also
1415 section~\ref{sec:texmftrees}):
1416
1417 \begin{ttdescription}
1418 \item [TEXMFCONFIG] This is intended for user configuration changes.
1419 If you want to preserve them, be sure you know how to recreate them
1420 before removing.
1421
1422 \item [TEXMFVAR] This is intended to store automatically-generated
1423 runtime data, such as local format files. Unless you've used it for
1424 other purposes, it should be safe to remove.
1425
1426 \item[TEXMFHOME] Contains only files you yourself installed, typically
1427 those not available in the distributions. Unless you are completely
1428 stopping using \TeX, or want to start over from scratch, you probably
1429 don't want to remove this.
1430
1431 \end{ttdescription}
1432
1433 \noindent You can find the directory paths for these variables by
1434 running \code{kpsewhich -var-value=\ttvar{var}}.
1435
1436 This \prog{tlmgr} uninstallation also does not undo post-install
1437 actions, such as \envname{PATH} changes in your shell initialization
1438 files and system access to the fonts in \TL\ (see
1439 section~\ref{sec:postinstall}). You must manually reverse such actions,
1440 if desired.
1441
1442 On Windows, uninstallation can be done through the \GUI; see
1443 section~\ref{sec:winfeatures}.
1444
1445
1446 \subsection{Links for additional downloadable software}
1447
1448 If you are new to \TeX{}, or otherwise need help with actually writing
1449 \TeX{} or \LaTeX{} documents, please visit
1450 \url{https://tug.org/begin.html} for some introductory resources.
1451
1452 Links for some other tools you may consider installing:
1453 \begin{description}
1454 \item[Ghostscript] \url{https://ghostscript.com/}, a free PostScript and
1455 PDF interpreter.
1456 \item[Perl] \url{https://perl.org/} with
1457 supplementary packages from CPAN, \url{https://cpan.org/}.
1458 \item[ImageMagick] \url{https://imagemagick.org}, for graphics
1459 processing and conversion.
1460 \item[NetPBM] \url{http://netpbm.sourceforge.net}, also for graphics.
1461
1462 \item[\TeX-oriented editors] There is a wide choice, and it is a matter of the
1463 user's taste. Here is a selection in alphabetical order (a few
1464 here are for Windows only).
1465 \begin{itemize*}
1466 \item \cmdname{GNU Emacs} is available for all major platforms; see
1467 \url{https://www.gnu.org/software/emacs}.
1468 \item \cmdname{AUC\TeX} runs under Emacs; it's available through
1469 Emacs' package manager \cmdname{ELPA}. Sources are also
1470 available from CTAN. The AUC\TeX\ home page is
1471 \url{https://www.gnu.org/software/auctex}.
1472 \item \cmdname{SciTE} is available from
1473 \url{https://www.scintilla.org/SciTE.html}.
1474 \item \cmdname{Texmaker} is free software, available from
1475 \url{https://www.xm1math.net/texmaker}.
1476 \item \cmdname{TeXstudio} started as a fork of
1477 \cmdname{Texmaker} and given additional features; available from
1478 \url{https://texstudio.org/}.
1479 \item \cmdname{TeXnicCenter} is free software, available from
1480 \url{https://www.texniccenter.org}.
1481 \item \cmdname{TeXworks} is free software, available from
1482 \url{https://tug.org/texworks} and installed as part of \TL\ for
1483 Windows (only).
1484 \item \cmdname{Vim} is free software, available from
1485 \url{https://www.vim.org}.
1486 \item \cmdname{WinEdt} is shareware available though
1487 \url{https://tug.org/winedt} or \url{https://www.winedt.com}.
1488 \item \cmdname{WinShell} is available from \url{https://www.winshell.de}.
1489 \end{itemize*}
1490 \end{description}
1491 For a much longer list of packages and programs, see
1492 \url{https://tug.org/interest.html}.
1493
1494
1495 \section{Specialized installations}
1496
1497 The previous sections described the basic installation process. Here we
1498 turn to some specialized cases.
1499
1500 \htmlanchor{tlsharedinstall}
1501 \subsection{Shared-user (or cross-machine) installations}
1502 \label{sec:sharedinstall}
1503
1504 \TL{} has been designed to be shared between different systems on a
1505 network. With a standard directory layout, no hard paths are
1506 configured: the locations for files needed by \TL{} programs are
1507 found relative to the programs. You can see this in the principal
1508 configuration file
1509 \filename{$TEXMFDIST/web2c/texmf.cnf}, which contains lines such as
1510 \begin{sverbatim}
1511 TEXMFROOT = $SELFAUTOPARENT
1512 ...
1513 TEXMFDIST = $TEXMFROOT/texmf-dist
1514 ...
1515 TEXMFLOCAL = $SELFAUTOGRANDPARENT/texmf-local
1516 \end{sverbatim}
1517 This means that adding the directory for \TL{} executables for their
1518 platform to their search path is sufficient to get a working setup.
1519
1520 By the same token, you can also install \TL{} locally and then move
1521 the entire hierarchy afterwards to a network location.
1522
1523 For Windows, \TL{} includes a launcher \filename{tlaunch}. Its main
1524 window contains menu entries and buttons for various \TeX-related
1525 programs and documentation, customizable via an \code{ini} file. On
1526 first use, it replicates the usual Windows-specific post-install,
1527 \emph{i.e.}, search path modification and file associations, but only
1528 for the current user. Therefore, workstations with access to \TL{} on
1529 the local network only need a menu shortcut for the launcher. See the
1530 \code{tlaunch} manual (\code{texdoc tlaunch}, or
1531 \url{https://ctan.org/pkg/tlaunch}).
1532
1533
1534 \htmlanchor{tlportable}
1535 \subsection{Portable (\USB{}) installations}
1536 \label{sec:portable-tl}
1537
1538 The \code{-portable} installer option (or \code{V} command in the text
1539 installer or corresponding \GUI{} option) creates a completely
1540 self-contained \TL{} installation under a common root and forgoes system
1541 integration. You can create such an installation directly on a \USB{}
1542 stick, or copy it to a \USB{} stick afterwards.
1543
1544 Technically, the portable installation is made self-contained by setting
1545 the default values of \envname{TEXMFHOME}, \envname{TEXMFVAR}, and
1546 \envname{TEXMFCONFIG} to be the same as \envname{TEXMFLOCAL},
1547 \envname{TEXMFSYSVAR}, and \envname{TEXMFSYSCONFIG} respectively; thus,
1548 per-user configuration and caches will not be created.
1549
1550 To run \TeX\ using this portable installation, you need to add the
1551 appropriate binary directory to the search path during your terminal
1552 session, as usual.
1553
1554 On Windows, you can double-click \filename{tl-tray-menu} at the root
1555 of the installation and create a temporary `tray menu' offering a
1556 choice of a few common tasks, as shown in this screenshot:
1557
1558 \medskip
1559 \tlpng{tray-menu}{4cm}{Windows tray menu}
1560 \smallskip
1561
1562 \noindent The `More\ldots' entry explains how you can customize this menu.
1563
1564
1565 %\htmlanchor{tlisoinstall}
1566 %\subsection{\ISO\ (or \DVD) installations}
1567 %\label{sec:isoinstall}
1568 %
1569 %If you don't need to update or otherwise modify your installation often,
1570 %and\slash or have several systems on which to use \TL{}, it may be
1571 %convenient to create an \ISO\ of your \TL{} installation, because:
1572 %
1573 %\begin{itemize}
1574 %\item Copying an \ISO\ between different computers is much
1575 % faster than copying a normal installation.
1576 %\item If you are dual-booting between different operating systems
1577 % and want them to share a \TL{} installation, an \ISO
1578 % installation is not tied to the idiosyncrasies and limitations of
1579 % other mutually supported filesystems (FAT32, NTFS,
1580 % HFS+).
1581 %\item Virtual machines can simply mount such an \ISO.
1582 %\end{itemize}
1583 %
1584 %Of course you can also burn an \ISO\ to \DVD, if that is useful for you.
1585 %
1586 %Desktop \GNU/Linux/Unix systems, including \macOS, are able to
1587 %mount an \ISO. Windows 8 is the first(!) Windows version which can
1588 %do this. Apart from that, nothing changes compared to a normal hard
1589 %disk installation, see section \ref{sec:env}.
1590 %
1591 %When preparing such an \ISO\ installation, it is best to omit the
1592 %subdirectory for the release year, and have
1593 %\filename{texmf-local} at the same level as the other trees
1594 %(\filename{texmf-dist}, \filename{texmf-var}, etc.). You can do this with
1595 %the normal directory options in the installer.
1596 %
1597 %For a physical (rather than virtual) Windows system, you can burn
1598 %the \ISO\ to DVD. However, it may be worth your while to
1599 %investigate free \ISO-mounting options such as WinCDEmu at
1600 %\url{http://wincdemu.sysprogs.org/}.
1601 %
1602 %For Windows system integration, you can include the \filename{w32client}
1603 %scripts described in section~\ref{sec:sharedinstall} and at
1604 %\url{http://tug.org/texlive/w32client.html}, which work just as well for
1605 %an \ISO\ as for a network installation.
1606 %
1607 %On \macOS, TeXShop will be able to use the DVD
1608 %installation if a symlink \filename{/usr/texbin} points to the
1609 %appropriate binary directory, e.g.,
1610 %\begin{verbatim}
1611 %sudo ln -s /Volumes/MyTeXLive/bin/universal-darwin /usr/texbin
1612 %\end{verbatim}
1613 %
1614 %Historical note: \TL{} 2010 was the first \TL{} edition which was no
1615 %longer distributed `live'. However, it always required some acrobatics
1616 %to run from \DVD\ or \ISO; in particular, there was no way around
1617 %setting at least one extra environment variable. If you create your
1618 %\ISO\ from an existing installation then there is no need for this.
1619
1620
1621 \htmlanchor{tlmgr}
1622 \section{\cmdname{tlmgr}: Managing your installation}
1623 \label{sec:tlmgr}
1624
1625 \begin{figure}[tb]
1626 \def\figdesc{\prog{tlshell} \GUI, showing the Actions menu (\GNU/Linux)}
1627 \tlpng{tlshell-linux}{\linewidth}{\figdesc}
1628 \caption{\figdesc}
1629 \label{fig:tlshell}
1630 \end{figure}
1631
1632 \begin{figure}[tb]
1633 \def\figdesc{\prog{tlcockpit} \GUI{} for \prog{tlmgr}}
1634 \tlpng{tlcockpit-packages}{.8\linewidth}{\figdesc}
1635 \caption{\figdesc}
1636 \label{fig:tlcockpit}
1637 \end{figure}
1638
1639 \begin{figure}[tb]
1640 \def\figdesc{Legacy \prog{tlmgr} \GUI\ mode: main window, after `Load'}
1641 \tlpng{tlmgr-gui}{\linewidth}{\figdesc}
1642 \caption{\figdesc}
1643 \label{fig:tlmgr-gui}
1644 \end{figure}
1645
1646 \TL{} includes a program named \prog{tlmgr} for managing \TL{} after the
1647 initial installation. Its capabilities include:
1648
1649 \begin{itemize*}
1650 \item installing, updating, backing up, restoring, and uninstalling
1651 individual packages, optionally taking dependencies into account;
1652 \item searching for and listing packages and their descriptions;
1653 \item listing, adding, and removing platforms;
1654 \item changing installation options such as paper size and source
1655 location (see section~\ref{sec:location}).
1656 \end{itemize*}
1657
1658 \prog{tlmgr}'s functionality completely subsumes the \prog{texconfig}
1659 program. We still distribute and maintain \prog{texconfig} for the sake
1660 of anyone used to its interface, but we recommend using \prog{tlmgr}
1661 nowadays.
1662
1663 \subsection{\GUI{} interfaces for \cmdname{tlmgr}}
1664
1665 \TL{} contains several \GUI{} front-ends for \prog{tlmgr}. Two notable
1666 ones: (1)~Figure~\ref{fig:tlshell} shows \cmdname{tlshell}, which is
1667 written in Tcl/Tk and runs out of the box under Windows;
1668 (2)~Figure~\ref{fig:tlcockpit} shows \prog{tlcockpit}, which requires
1669 Java version~8 or higher and JavaFX. Both are separate packages.
1670
1671 \prog{tlmgr} also has a native \GUI{} mode (shown in
1672 figure~\ref{fig:tlmgr-gui}), which is started with:
1673 \begin{alltt}
1674 > \Ucom{tlmgr -gui}
1675 \end{alltt}
1676 However, this \GUI\ extension requires Perl/Tk, which module is no
1677 longer included in \TL's Perl distribution for Windows.
1678
1679 \subsection{Sample \cmdname{tlmgr} command-line invocations}
1680
1681 After the initial installation, you can update your system to the latest
1682 versions available with:
1683 \begin{alltt}
1684 > \Ucom{tlmgr update -all}
1685 \end{alltt}
1686 If this makes you nervous, first try
1687 \begin{alltt}
1688 > \Ucom{tlmgr update -all -dry-run}
1689 \end{alltt}
1690 or (less verbose):
1691 \begin{alltt}
1692 > \Ucom{tlmgr update -list}
1693 \end{alltt}
1694
1695 This more complex example adds a collection, for the engine \XeTeX, from
1696 a local directory:
1697
1698 \begin{alltt}
1699 > \Ucom{tlmgr -repository /local/mirror/tlnet install collection-xetex}
1700 \end{alltt}
1701 It generates the following output (abridged):
1702 \begin{fverbatim}
1703 install: collection-xetex
1704 install: arabxetex
1705 ...
1706 install: xetex
1707 install: xetexconfig
1708 install: xetex.i386-linux
1709 running post install action for xetex
1710 install: xetex-def
1711 ...
1712 running mktexlsr
1713 mktexlsr: Updating /usr/local/texlive/2025/texmf-dist/ls-R...
1714 ...
1715 running fmtutil-sys --missing
1716 ...
1717 Transcript written on xelatex.log.
1718 fmtutil: /usr/local/texlive/2025/texmf-var/web2c/xetex/xelatex.fmt installed.
1719 \end{fverbatim}
1720
1721 As you can see, \prog{tlmgr} installs dependencies, and takes care of any
1722 necessary post-install actions, including updating the filename database
1723 and (re)generating formats. In the above, we generated new formats for
1724 \XeTeX.
1725
1726 To describe a package (or collection or scheme):
1727 \begin{alltt}
1728 > \Ucom{tlmgr show collection-latexextra}
1729 \end{alltt}
1730 which produces output like this:
1731 \begin{fverbatim}
1732 package: collection-latexextra
1733 category: Collection
1734 shortdesc: LaTeX supplementary packages
1735 longdesc: A very large collection of add-on packages for LaTeX.
1736 installed: Yes
1737 revision: 46963
1738 sizes: 657941k
1739 \end{fverbatim}
1740
1741 Last and most important, for full documentation see
1742 \url{https://tug.org/texlive/tlmgr.html}, or:
1743 \begin{alltt}
1744 > \Ucom{tlmgr -help}
1745 \end{alltt}
1746
1747
1748 \section{Notes on Windows}
1749 \label{sec:windows}
1750
1751 \subsection{Windows-specific features}
1752 \label{sec:winfeatures}
1753
1754 Under Windows, the installer does some extra things:
1755 \begin{description}
1756 \item[Menus and shortcuts.] A new `\TL{}' submenu of the Start menu
1757 is installed. This contains entries for some \GUI{} programs, such
1758 as \prog{tlshell} (a \GUI\ for \prog{tlmgr}) and \prog{dviout}, and some
1759 entries for documentation.
1760
1761 \item[File associations.] If enabled, \prog{TeXworks} and \prog{Dviout}
1762 become either the default program for
1763 their respective filetypes, or get an entry in the `Open with'
1764 right-click menus of those filetypes. However,
1765 higher-priority `User Choice' file associations, which can only be
1766 specified interactively, can get in the way.
1767
1768 \item[PostScript support.] For PostScript files, a PSviewer filetype
1769 now converts PostScript to a temporary PDF, which is then
1770 displayed by the default PDF viewer.
1771
1772 \item[Automatic path adjustment.] No manual configuration steps are required.
1773
1774 \item[Uninstaller.] The installer creates an entry for \TL, either
1775 under `Add/Remove Programs' (admin installation) or under the
1776 \TL\ menu (single-user installation).
1777
1778 \item[Write-protect.] For an admin installation, the \TL\ directories are
1779 write-protected, at least if \TL\ is installed on a normal
1780 NTFS-formatted non-removable disk.
1781 \end{description}
1782
1783 Also, have a look at \filename{tlaunch}, described in
1784 section~\ref{sec:sharedinstall}, for a different approach.
1785
1786 \subsection{Additional software included on Windows}
1787
1788 To be complete, a \TL{} installation needs support programs that are not
1789 commonly found on a Windows machine. \TL{} provides the missing pieces.
1790 These programs are all installed as part of \TL{} only on Windows.
1791
1792 \begin{description}
1793 \item[Perl, Tcl/Tk and Ghostscript.] Because of the importance of Perl and
1794 Ghostscript, and because the installer and tlshell \GUI{}s are written
1795 in Tcl/Tk, \TL{} includes `hidden' copies of these programs. \TL{}
1796 programs that need them know where to find them, but they don't betray
1797 their presence through environment variables or registry settings.
1798 They aren't full-scale installations (except for Ghostscript), and
1799 shouldn't interfere with any system installations of Perl, Tcl/Tk or
1800 Ghostscript. See subsection \ref{sec:externalwndws} how to tell \TL{} that
1801 you want to use your own external installations for contributed
1802 scripts within \TL.
1803
1804 \item[dviout.] Also installed is \prog{dviout}, a DVI viewer.
1805 At first, when you preview files with \cmdname{dviout}, it will create
1806 fonts, because screen fonts were not installed. After a while, you
1807 will have created most of the fonts you use, and you will rarely see
1808 the font-creation window. More information can be found in the
1809 (highly recommended) on-line help.
1810
1811 \item[\TeX{}works.] \TeX{}works is a \TeX-oriented editor with
1812 an integrated PDF viewer.
1813
1814 \item[Command-line tools.] A number of Windows ports of common Unix
1815 command-line programs are installed along with the usual \TL{}
1816 binaries. These include \cmdname{gzip}, \cmdname{zip},
1817 \cmdname{unzip}, and the utilities from the \cmdname{poppler} suite
1818 (\cmdname{pdfinfo}, \cmdname{pdffonts}, \ldots).
1819
1820 \item[fc-list, fc-cache, \ldots] The tools from the \pkgname{fontconfig}
1821 library allow \XeTeX{} to find system fonts on Windows. You can use
1822 \prog{fc-list} to determine the font names to pass to \XeTeX's
1823 extended \cs{font} command. If necessary, run \prog{fc-cache} first to
1824 update font information.
1825
1826 \end{description}
1827
1828 \subsection{Using external Perl, Tcl/Tk and Ghostscript
1829 installations}
1830 \label{sec:externalwndws}
1831
1832 Normally, \TL{} will use its built-in Perl, Tcl/Tk and Ghostscript also
1833 for contributed scripts within \TL. If you wish to use your own external
1834 versions, then you can configure that in the \file{texmf.cnf} file
1835 \emph{in the root of the installation}.
1836
1837 For Perl, you need to add a line
1838 \begin{verbatim}
1839 TEXLIVE_WINDOWS_TRY_EXTERNAL_PERL = 1
1840 \end{verbatim}
1841 \TL{} (specifically, \file{bin/windows/runscript.tlu}) will then search
1842 for \file{perl.exe} on the search path, except for scripts which belong
1843 to the \TL{} infrastructure. This is the most likely setting of the
1844 three to be useful; although the \TL{} Perl includes many additional
1845 modules, it cannot support all third-party scripts.
1846
1847 Similarly, for Tcl/Tk you need a line
1848 \begin{verbatim}
1849 TEXLIVE_WINDOWS_TRY_EXTERNAL_TCL = 1
1850 \end{verbatim}
1851 \TL{} will then search for \file{tclkit.exe}, \file{wish.exe},
1852 \file{wish85.exe}, \file{wish86.exe} and \file{wish87.exe} on the
1853 searchpath.
1854
1855 Ghostscript is handled differently, in that you need to specify the
1856 filename or the full path of your command-line Ghostscript:
1857 \begin{alltt}
1858 TEXLIVE_WINDOWS_EXTERNAL_GS = \var{path of command-line ghostscript}
1859 \end{alltt}
1860 Another difference is that the Ghostscript shipped with \TL\
1861 is complete, with only documentation and printer drivers omitted. So
1862 it's unlikely you'll have any need to override it.
1863
1864 See also section \ref{sec:configfiles} about \file{texmf.cnf}.
1865
1866
1867 \subsection{User Profile is Home}
1868 \label{sec:winhome}
1869
1870 The Windows counterpart of a Unix home directory is the
1871 \verb|%USERPROFILE%| directory. Under Windows Vista and later it is
1872 \verb|C:\Users\<username>|. In the
1873 \filename{texmf.cnf} file, and \KPS{} in general, \verb|~| will
1874 expand appropriately on both Windows and Unix.
1875
1876
1877 \subsection{The Windows registry}
1878 \label{sec:registry}
1879
1880 Windows stores nearly all configuration data in its registry. The
1881 registry contains a set of hierarchically organized keys, with several
1882 root keys. The most important ones for installation programs are
1883 \path{HKEY_CURRENT_USER} and \path{HKEY_LOCAL_MACHINE}, \path{HKCU} and
1884 \path{HKLM} in short. The \path{HKCU} part of the registry is in the
1885 user's home directory (see section~\ref{sec:winhome}). \path{HKLM} is
1886 normally in a subdirectory of the Windows directory.
1887
1888 In some cases, system information could be obtained from environment
1889 variables but for other information, for example the location of
1890 shortcuts, it is necessary to consult the registry. Setting environment
1891 variables permanently also requires registry access.
1892
1893
1894 \subsection{Windows permissions}
1895 \label{sec:winpermissions}
1896
1897 In later versions of Windows, a distinction is made between regular
1898 users and administrators, where only the latter have free access to almost the
1899 entire operating system. We have made an effort to make \TL{}
1900 installable without administrative privileges.
1901
1902 If the installer is started with administrative permissions, there is an
1903 option to install for all users. If this option is chosen, shortcuts
1904 are created for all users, and the system search path is
1905 modified. Otherwise, shortcuts and menu entries are created for the
1906 current user, and the user search path is modified.
1907
1908 Regardless of administrator status, the default root of \TL{} proposed
1909 by the installer is always under \verb|%SystemDrive%|. The installer
1910 always tests whether the root is writable for the current user.
1911
1912 A problem may arise if the user is not an administrator and \TeX{}
1913 already exists in the search path. Since the effective search path
1914 consists of the system search path followed by the user search path, the
1915 new \TL{} would never get precedence. As a workaround, the installer
1916 creates a shortcut to the command-prompt in which the new \TL{} binary
1917 directory is prepended to the local search path. The new \TL{} will be
1918 always usable from within such a command-prompt. The shortcut for
1919 \TeX{}works, if installed, also prepends \TL{} to the search path, so it
1920 should also be immune to this path problem.
1921
1922 You should be aware that even if you are logged in as administrator, you
1923 need to explicitly ask for administrator privileges. In fact, there is
1924 not much point in logging in as administrator. Instead, right-clicking
1925 on the program or shortcut that you want to run usually gives you a
1926 choice `Run as administrator'.
1927
1928
1929 \subsection{Increasing maximum memory on Windows and Cygwin}
1930 \label{sec:cygwin-maxmem}
1931
1932 Windows and Cygwin (see section~\ref{sec:cygwin} for Cygwin installation
1933 specifics) users may find that they run out of memory when running some
1934 of the programs shipped with \TL. For example, \prog{asy} might run out
1935 of memory if you try to allocate an array of 25,000,000 reals, and
1936 Lua\TeX\ might run out of memory if you try to process a document with a
1937 lot of big fonts.
1938
1939 For Cygwin, you can increase the amount of available memory by following
1940 the instructions in the Cygwin User's Guide
1941 (\url{https://cygwin.com/cygwin-ug-net/setup-maxmem.html}).
1942
1943 For Windows, you have to create a file, say \code{moremem.reg}, with
1944 these four lines:
1945
1946 \begin{sverbatim}
1947 Windows Registry Editor Version 5.00
1948
1949 [HKEY_LOCAL_MACHINE\Software\Cygwin]
1950 "heap_chunk_in_mb"=dword:ffffff00
1951 \end{sverbatim}
1952
1953 \noindent and then execute the command \code{regedit /s moremem.reg} as
1954 administrator. (If you want to change memory only for the current user
1955 instead of system-wide, use \code{HKEY\_CURRENT\_USER}.)
1956
1957
1958 \section{A user's guide to Web2C}
1959
1960 \Webc{} is an integrated collection of \TeX-related programs: \TeX{}
1961 itself, \MF{}, \MP, \BibTeX{}, etc. It is the heart of \TL{}. The home
1962 page for \Webc{}, with the current manual and more, is
1963 \url{https://tug.org/web2c}.
1964
1965 A bit of history: The original implementation was by Tomas Rokicki who,
1966 in 1987, developed a first \TeX{}-to-C system based on change files
1967 under Unix, which were primarily the original work of Howard Trickey and
1968 Pavel Curtis. Tim Morgan became the maintainer of the system, and
1969 during this period the name changed to Web-to-C\@. In 1990, Karl Berry
1970 took over the work, assisted by dozens of additional contributors, and
1971 in 1997 he handed the baton to Olaf Weber, who returned it to Karl in
1972 2006.
1973
1974 The \Webc{} system runs on Unix, Windows, \macOS{}, and other operating
1975 systems. It uses Knuth's original sources for \TeX{} and other basic
1976 programs written in the \web{} literate programming system and
1977 translates them into C source code. The core \TeX{} programs handled in
1978 this way are:
1979
1980 \begin{cmddescription}
1981 \item[bibtex] Maintaining bibliographies.
1982 \item[dvicopy] Expands virtual font references in \dvi{} files.
1983 \item[dvitomp] \dvi{} to MPX (MetaPost pictures).
1984 \item[dvitype] \dvi{} to human-readable text.
1985 \item[gftodvi] Generic font proofsheets.
1986 \item[gftopk] Generic to packed fonts.
1987 \item[gftype] GF to human-readable text.
1988 \item[mf] Creating typeface families.
1989 \item[mft] Prettyprinting \MF{} source.
1990 \item[mpost] Creating technical diagrams.
1991 \item[patgen] Creating hyphenation patterns.
1992 \item[pktogf] Packed to generic fonts.
1993 \item[pktype] PK to human-readable text.
1994 \item[pltotf] Plain text property list to TFM.
1995 \item[pooltype] Display \web{} pool files.
1996 \item[tangle] \web{} to Pascal.
1997 \item[tex] Typesetting.
1998 \item[tftopl] TFM to plain text property list.
1999 \item[vftovp] Virtual font to virtual property list.
2000 \item[vptovf] Virtual property list to virtual font.
2001 \item[weave] \web{} to \TeX.
2002 \end{cmddescription}
2003
2004 \noindent The precise functions and syntax of these programs are
2005 described in the documentation of the individual packages and of \Webc{}
2006 itself. However, knowing a few principles governing the whole family of
2007 programs will help you take advantage of your \Webc{} installation.
2008
2009 All programs honor these standard \GNU options:
2010 \begin{ttdescription}
2011 \item[-{}-help] print basic usage summary.
2012 \item[-{}-version] print version information, then exit.
2013 \end{ttdescription}
2014
2015 And most also honor:
2016 \begin{ttdescription}
2017 \item[-{}-verbose] print detailed progress report.
2018 \end{ttdescription}
2019
2020 For locating files the \Webc{} programs use the path searching library
2021 \KPS{} (\url{https://tug.org/kpathsea}). This library uses a combination
2022 of environment variables and configuration files to optimize searching
2023 the (huge) collection of \TeX{} files. \Webc{} can look at many
2024 directory trees simultaneously, which is useful in maintaining \TeX's
2025 standard distribution and local and personal extensions in distinct
2026 trees. To speed up file searches, the root of each tree has a file
2027 \file{ls-R}, containing an entry showing the name and relative pathname
2028 for all files under that root.
2029
2030
2031 \subsection{Kpathsea path searching}
2032 \label{sec:kpathsea}
2033
2034 Let us first describe the generic path searching mechanism of the \KPS{}
2035 library.
2036
2037 We call a \emph{search path} a colon- or semicolon\hyph sepa\-rated list
2038 of \emph{path elements}, which are basically directory names. A
2039 search path can come from (a combination of) many sources. To look up
2040 a file \samp{my-file} along a path \samp{.:/dir}, \KPS{} checks each
2041 element of the path in turn: first \file{./my-file}, then
2042 \file{/dir/my-file}, returning the first match (or possibly all
2043 matches).
2044
2045 In order to adapt optimally to all operating systems' conventions, on
2046 non-Unix systems \KPS{} can use filename separators different from
2047 colon (\samp{:}) and slash (\samp{/}).
2048
2049 To check a particular path element \var{p}, \KPS{} first checks if a
2050 prebuilt database (see ``Filename data\-base'' on
2051 page~\pageref{sec:filename-database}) applies to \var{p}, i.e., if the
2052 database is in a directory that is a prefix of \var{p}. If so, the path
2053 specification is matched against the contents of the database.
2054
2055 Although the simplest and most common path element is a directory
2056 name, \KPS{} supports additional features in search paths: layered
2057 default values, environment variable names, config file values, users'
2058 home directories, and recursive subdirectory searching. Thus, we say
2059 that \KPS{} \emph{expands} a path element, meaning it transforms all
2060 the specifications into basic directory name or names. This is
2061 described in the following sections in the same order as it takes
2062 place.
2063
2064 Note that if the filename being searched for is absolute or explicitly
2065 relative, i.e., starts with \samp{/} or \samp{./} or \samp{../},
2066 \KPS{} simply checks if that file exists.
2067
2068 \ifSingleColumn
2069 \else
2070 \begin{figure*}
2071 \verbatiminput{examples/ex5.tex}
2072 \setlength{\abovecaptionskip}{0pt}
2073 \caption{An illustrative configuration file sample}
2074 \label{fig:config-sample}
2075 \end{figure*}
2076 \fi
2077
2078 \subsubsection{Path sources}
2079 \label{sec:path-sources}
2080
2081 A search path can come from many sources. In the order in which
2082 \KPS{} uses them:
2083
2084 \begin{enumerate}
2085 \item
2086 A user-set environment variable, for instance, \envname{TEXINPUTS}\@.
2087 Environment variables with a period and a program name appended
2088 override; e.g., if \samp{latex} is the name of the program being run,
2089 then \envname{TEXINPUTS.latex} will override \envname{TEXINPUTS}.
2090 \item
2091 A program-specific configuration file, for exam\-ple, a line
2092 \samp{S /a:/b} in \cmdname{dvips}'s \file{config.ps}.
2093 \item A \KPS{} configuration file \file{texmf.cnf}, containing a line like
2094 \samp{TEXINPUTS=/c:/d} (see below).
2095 \item The compile-time default.
2096 \end{enumerate}
2097 \noindent You can see each of these values for a given search path by
2098 using the debugging options (see ``Debugging actions'' on
2099 page~\pageref{sec:debugging}).
2100
2101 \subsubsection{Config files}
2102 \label{sec:configfiles}
2103
2104 \KPS{} reads \emph{runtime configuration files} named \file{texmf.cnf}
2105 for search path and other definitions. The search path
2106 \envname{TEXMFCNF} is used to look for these files, but we do not
2107 recommend setting this (or any) environment variable to override the
2108 system directories.
2109
2110 Instead, normal installation results in a file
2111 \file{.../2025/texmf.cnf}. If you must make changes to the defaults
2112 (not normally necessary), this is the place to put them. The main
2113 configuration file is in \file{.../2025/texmf-dist/web2c/texmf.cnf}.
2114 You should not edit this latter file, as your changes will be lost when
2115 the distributed version is updated.
2116
2117 As an aside, if you merely wish to add a personal directory to a
2118 particular search path, setting an environment variable is a reasonable
2119 method:
2120 \begin{verbatim}
2121 TEXINPUTS=.:/my/macro/dir:
2122 \end{verbatim}
2123 To keep the setting maintainable and portable over the years, use a
2124 trailing \samp{:} (\samp{;} on Windows) to insert the system paths,
2125 instead of trying to write them all out explicitly (see
2126 section~\ref{sec:default-expansion}). Another option is to use the
2127 \envname{TEXMFHOME} tree (see section~\ref{sec:directories}).
2128
2129 \emph{All} \file{texmf.cnf} files in the search path will be read and
2130 definitions in earlier files override those in later files. For
2131 example, with a search path of \verb|.:$TEXMF|, values from
2132 \file{./texmf.cnf} override those from \verb|$TEXMF/texmf.cnf|.
2133
2134 \begin{itemize*}
2135 \item
2136 Comments start with \code{\%}, either at the beginning of a line or
2137 preceded by whitespace, and continue to the end of the line.
2138 \item
2139 Blank lines are ignored.
2140 \item
2141 A \bs{} at the end of a line acts as a continuation character,
2142 i.e., the next line is appended. Whitespace at the beginning of
2143 continuation lines is not ignored.
2144 \item
2145 Each remaining line has the form:\\
2146 \hspace*{2em}\texttt{\var{variable} \textrm{[}.\var{progname}\textrm{]}
2147 \textrm{[}=\textrm{]} \var{value}}\\[1pt]
2148 where the \samp{=} and surrounding whitespace are optional.
2149 (But if \var{value} begins with \samp{.}, it is simplest to use the
2150 \samp{=} to avoid the period being interpreted as the program name
2151 qualifier.)
2152 \item
2153 The \ttvar{variable} name may contain any character other
2154 than whitespace, \samp{=}, or \samp{.}, but sticking to
2155 \samp{A-Za-z\_} is safest.
2156 \item
2157 If \samp{.\var{progname}} is present, the definition only
2158 applies if the program that is running is named
2159 \texttt{\var{progname}} or \texttt{\var{progname}.exe}. This allows
2160 different flavors of \TeX{} to have different search paths, for
2161 example.
2162 \item Considered as strings, \var{value} may contain any character.
2163 However, in practice most \file{texmf.cnf} values are related to path
2164 expansion, and since various special characters are used in expansion
2165 (see section~\ref{sec:cnf-special-chars}), such as braces and commas,
2166 they cannot be used in directory names.
2167
2168 A \samp{;} in \var{value} is translated to \samp{:} if running under
2169 Unix, in order to have a single \file{texmf.cnf} that can support both
2170 Unix and Windows systems. This translation happens with any value, not
2171 just search paths, but fortunately in practice \samp{;} is not needed
2172 in other values.
2173
2174 The \code{\$\var{var}.\var{prog}} feature is not available on the
2175 right-hand side; instead, you must use an additional variable.
2176
2177 \item
2178 All definitions are read before anything is expanded, so
2179 variables can be referenced before they are defined.
2180 \end{itemize*}
2181 A configuration file fragment illustrating most of these points is
2182 \ifSingleColumn
2183 shown below:
2184
2185 \verbatiminput{examples/ex5.tex}
2186 \else
2187 shown in figure~\ref{fig:config-sample}.
2188 \fi
2189
2190 \subsubsection{Path expansion}
2191 \label{sec:path-expansion}
2192
2193 \KPS{} recognizes certain special characters and constructions in
2194 search paths, similar to those available in Unix shells. As a
2195 general example, the path
2196 \verb+~$USER/{foo,bar}//baz+, expands to all subdirectories under
2197 directories \file{foo} and \file{bar} in \texttt{\$USER}'s home
2198 directory that contain a directory or file \file{baz}. These
2199 expansions are explained in the sections below.
2200 %$
2201 \subsubsection{Default expansion}
2202 \label{sec:default-expansion}
2203
2204 If the highest-priority search path (see ``Path sources'' on
2205 page~\pageref{sec:path-sources}) contains an \emph{extra colon} (i.e.,
2206 leading, trailing, or doubled), \KPS{} inserts at that point the
2207 next-highest-prio\-rity search path that is defined. If that inserted
2208 path has an extra colon, the same happens with the next highest. For
2209 example, given an environment variable setting
2210
2211 \begin{alltt}
2212 > \Ucom{setenv TEXINPUTS /home/karl:}
2213 \end{alltt}
2214 and a \code{TEXINPUTS} value from \file{texmf.cnf} of
2215
2216 \begin{alltt}
2217 .:\$TEXMF//tex
2218 \end{alltt}
2219 then the final value used for searching will be:
2220
2221 \begin{alltt}
2222 /home/karl:.:\$TEXMF//tex
2223 \end{alltt}
2224
2225 Since it would be useless to insert the default value in more than one
2226 place, \KPS{} changes only one extra \samp{:}\ and leaves any others in
2227 place. It checks first for a leading \samp{:}, then a trailing
2228 \samp{:}, then a doubled \samp{:}.
2229
2230 \subsubsection{Brace expansion}
2231 \label{sec:brace-expansion}
2232
2233 A useful feature is brace expansion, which means that, for instance,
2234 \verb+v{a,b}w+ expands to \verb+vaw:vbw+. Nesting is allowed.
2235 This is used to implement multiple \TeX{} hierarchies, by
2236 assigning a brace list to \code{\$TEXMF}.
2237 In the distributed \file{texmf.cnf}, a definition like this
2238 (simplified for this example) is made:
2239 \begin{verbatim}
2240 TEXMF = {$TEXMFVAR,$TEXMFHOME,!!$TEXMFLOCAL,!!$TEXMFDIST}
2241 \end{verbatim}
2242 We then use this to define, for example, the \TeX\ input path:
2243 \begin{verbatim}
2244 TEXINPUTS = .;$TEXMF/tex//
2245 \end{verbatim}
2246 %$
2247 which means that, after looking in the current directory, the
2248 \code{\$TEXMFVAR/tex}, \code{\$TEXMFHOME/tex}, \code{\$TEXMFLOCAL/tex}
2249 and \code{\$TEXMFDIST/tex} trees will be searched (the
2250 last two using \file{ls-R} data base files).
2251
2252 \subsubsection{Subdirectory expansion}
2253 \label{sec:subdirectory-expansion}
2254
2255 Two or more consecutive slashes in a path element following a directory
2256 \var{d} is replaced by all subdirectories of \var{d\/}: first those
2257 subdirectories directly under \var{d}, then the subsubdirectories under
2258 those, and so on. At each level, the order in which the directories are
2259 searched is \emph{unspecified}.
2260
2261 If you specify any filename components after the \samp{//}, only
2262 subdirectories with matching components are included. For example,
2263 \samp{/a//b} expands into directories \file{/a/1/b}, \file{/a/2/b},
2264 \file{/a/1/1/b}, and so on, but not \file{/a/b/c} or \file{/a/1}.
2265
2266 Multiple \samp{//} constructs in a path are possible, but
2267 \samp{//} at the beginning of a path is ignored.
2268
2269 \subsubsection{Summary of special characters in \file{texmf.cnf} files}
2270 \label{sec:cnf-special-chars}
2271
2272 The following list summarizes the special characters and constructs in
2273 \KPS{} configuration files.
2274
2275 % need a wider space for the item labels here.
2276 \newcommand{\CODE}[1]{\makebox[3em][l]{\code{#1}}}
2277 \begin{ttdescription}
2278 \item[\CODE{:}] Separator in path specification; at the beginning or
2279 the end of a path, or doubled in the middle, it substitutes the
2280 default path expansion.\par
2281 \item[\CODE{;}] Separator on non-Unix systems (acts like \code{:}).
2282 \item[\CODE{\$}] Variable expansion.
2283 \item[\CODE{\string~}] Represents the user's home directory.
2284 \item[\CODE{\char`\{...\char`\}}] Brace expansion.
2285 \item[\CODE{,}] Separates items in brace expansion.
2286 \item[\CODE{//}] Subdirectory expansion (can occur anywhere in
2287 a path, except at its beginning).
2288 \item[\CODE{\%{\rm\ and }\#}] Start of comment.
2289 \item[\CODE{\bs}] At the end of a line, continuation character to allow
2290 multi-line entries.
2291 \item[\CODE{!!}] Search \emph{only} database to locate file, \emph{do
2292 not} search the disk.
2293 \end{ttdescription}
2294
2295 Exactly when a character will be considered special or act as itself
2296 depends on the context in which it is used. The rules are inherent in
2297 the multiple levels of interpretation of the configuration (parsing,
2298 expansion, search, \ldots)\ and so cannot be concisely stated,
2299 unfortunately. There is no general escape mechanism; in particular,
2300 \samp{\bs} is not an ``escape character'' in \file{texmf.cnf} files.
2301
2302 When it comes choosing directory names for installation, it is safest to
2303 avoid them all.
2304
2305 \subsection{Filename databases}
2306 \label{sec:filename-database}
2307
2308 \KPS{} goes to some lengths to minimize disk accesses for searches.
2309 Nevertheless, in the standard \TL, or at any installation with enough
2310 directories, searching every possible directory for a given file will
2311 take an excessively long time. Therefore, \KPS{} can use an
2312 externally-built plain text ``database'' file named \file{ls-R} that
2313 maps files to directories, thus avoiding the need to exhaustively search
2314 the disk.
2315
2316 A second database file \file{aliases} allows you to give additional
2317 names to the files listed in \file{ls-R}.
2318
2319 \subsubsection{The filename database}
2320 \label{sec:ls-R}
2321
2322 As explained above, the name of the main filename database must be
2323 \file{ls-R}. You can put one at the root of each \TeX{} hierarchy in
2324 your installation that you wish to be searched (\code{\$TEXMF} by
2325 default). \KPS{} looks for
2326 \file{ls-R} files along the \code{TEXMFDBS} path.
2327
2328 The recommended way to create and maintain \samp{ls-R} is to run the
2329 \code{mktexlsr} script included with the distribution. It is invoked
2330 by the various \samp{mktex}\dots\ scripts. In principle, this script
2331 just runs the command
2332 \begin{alltt}
2333 cd \var{/your/texmf/root} && \path|\|ls -1LAR ./ >ls-R
2334 \end{alltt}
2335 presuming your system's \code{ls} produces the right output format
2336 (\GNU \code{ls} is all right). To ensure that the database is
2337 always up-to-date, it is easiest to rebuild it regularly via
2338 \code{cron}, so that it is automatically updated when the installed
2339 files change, such as after installing or updating a \LaTeX{} package.
2340
2341 If a file is not found in the database, by default \KPS{} goes ahead
2342 and searches the disk. If a particular path element begins with
2343 \samp{!!}, however, \emph{only} the database will be searched for that
2344 element, never the disk.
2345
2346
2347 \subsubsection{kpsewhich: Standalone path searching}
2348 \label{sec:invoking-kpsewhich}
2349
2350 The \texttt{kpsewhich} program exercises path searching independent of any
2351 particular application. This can be useful as a sort of \code{find}
2352 program to locate files in \TeX{} hierarchies (this is used heavily in
2353 the distributed \samp{mktex}\dots\ scripts).
2354
2355 \begin{alltt}
2356 > \Ucom{kpsewhich \var{option}\dots{} \var{filename}\dots{}}
2357 \end{alltt}
2358 The options specified in \ttvar{option} start with either \samp{-}
2359 or \samp{-{}-}, and any unambiguous abbreviation is accepted.
2360
2361 \KPS{} looks up each non-option argument on the command line as a
2362 filename, and returns the first file found. There is no option to
2363 return all the files with a particular name (you can run the Unix
2364 \samp{find} utility for that).
2365
2366 The most common options are described next.
2367
2368 \begin{ttdescription}
2369 \item[\texttt{-{}-dpi=\var{num}}]\mbox{}
2370 Set the resolution to \ttvar{num}; this only affects \samp{gf}
2371 and \samp{pk} lookups. \samp{-D} is a synonym, for compatibility
2372 with \cmdname{dvips}. Default is 600.
2373
2374 \item[\texttt{-{}-format=\var{name}}]\mbox{}\\
2375 Set the format for lookup to \ttvar{name}. By default, the
2376 format is guessed from the filename. For formats which do not have
2377 an associated unambiguous suffix, such as \MP{} support files and
2378 \cmdname{dvips} configuration files, you have to specify the name as
2379 known to \KPS{}, such as \texttt{tex} or \texttt{enc files}. Run
2380 \texttt{kpsewhich -{}-help-formats} for a list.
2381
2382 \item[\texttt{-{}-mode=\var{string}}]\mbox{}\\
2383 Set the mode name to \ttvar{string}; this only affects \samp{gf}
2384 and \samp{pk} lookups. No default: any mode will be found.
2385 \item[\texttt{-{}-must-exist}]\mbox{}\\
2386 Do everything possible to find the files, notably including
2387 searching the disk. By default, only the \file{ls-R} database is
2388 checked, in the interest of efficiency.
2389 \item[\texttt{-{}-path=\var{string}}]\mbox{}\\
2390 Search along the path \ttvar{string} (colon-separated as usual),
2391 instead of guessing the search path from the filename. \samp{//} and
2392 all the usual expansions are supported. The options \samp{-{}-path}
2393 and \samp{-{}-format} are mutually exclusive.
2394 \item[\texttt{-{}-progname=\var{name}}]\mbox{}\\
2395 Set the program name to \texttt{\var{name}}.
2396 This can affect the search paths via the \texttt{.\var{progname}}
2397 feature.
2398 The default is \cmdname{kpsewhich}.
2399 \item[\texttt{-{}-show-path=\var{name}}]\mbox{}\\
2400 shows the path used for file lookups of file type \texttt{\var{name}}.
2401 Either a filename extension (\code{.pk}, \code{.vf}, etc.) or a
2402 name can be used, just as with \samp{-{}-format} option.
2403 \item[\texttt{-{}-debug=\var{num}}]\mbox{}\\
2404 sets the debugging options to \texttt{\var{num}}.
2405 \end{ttdescription}
2406
2407
2408 \subsubsection{Examples of use}
2409 \label{sec:examples-of-use}
2410
2411 Let us now have a look at \KPS{} in action. Here's a straightforward search:
2412
2413 \begin{alltt}
2414 > \Ucom{kpsewhich article.cls}
2415 /usr/local/texmf-dist/tex/latex/base/article.cls
2416 \end{alltt}
2417 We are looking for the file \file{article.cls}. Since the \samp{.cls}
2418 suffix is unambiguous we do not need to specify that we want to look for a
2419 file of type \optname{tex} (\TeX{} source file directories). We find it in
2420 the subdirectory \file{tex/latex/base} below the \samp{texmf-dist} \TL\
2421 directory. Similarly, all of the following are found without problems
2422 thanks to their unambiguous suffix.
2423 \begin{alltt}
2424 > \Ucom{kpsewhich array.sty}
2425 /usr/local/texmf-dist/tex/latex/tools/array.sty
2426 > \Ucom{kpsewhich latin1.def}
2427 /usr/local/texmf-dist/tex/latex/base/latin1.def
2428 > \Ucom{kpsewhich size10.clo}
2429 /usr/local/texmf-dist/tex/latex/base/size10.clo
2430 > \Ucom{kpsewhich small2e.tex}
2431 /usr/local/texmf-dist/tex/latex/base/small2e.tex
2432 > \Ucom{kpsewhich tugboat.bib}
2433 /usr/local/texmf-dist/bibtex/bib/beebe/tugboat.bib
2434 \end{alltt}
2435
2436 By the way, that last is a \BibTeX{} bibliography database for
2437 \textsl{TUGboat} articles.
2438
2439 \begin{alltt}
2440 > \Ucom{kpsewhich cmr10.pk}
2441 \end{alltt}
2442 Font bitmap glyph files of type \file{.pk} are used by display
2443 programs like \cmdname{dvips} and \cmdname{xdvi}. Nothing is returned in
2444 this case since there are no pre-generated Computer Modern \samp{.pk}
2445 files in \TL{}\Dash the Type~1 variants are used by default.
2446 \begin{alltt}
2447 > \Ucom{kpsewhich wsuipa10.pk}
2448 \ifSingleColumn /usr/local/texmf-var/fonts/pk/ljfour/public/wsuipa/wsuipa10.600pk
2449 \else /usr/local/texmf-var/fonts/pk/ljfour/public/
2450 ... wsuipa/wsuipa10.600pk
2451 \fi\end{alltt}
2452 For these fonts (a phonetic alphabet from the University of Washington)
2453 we had to generate \samp{.pk} files, and since the default \MF{} mode on
2454 our installation is \texttt{ljfour} with a base resolution of 600\dpi{}
2455 (dots per inch), this instantiation is returned.
2456 \begin{alltt}
2457 > \Ucom{kpsewhich -dpi=300 wsuipa10.pk}
2458 \end{alltt}
2459 In this case, when specifying that we are interested in a resolution
2460 of 300\dpi{} (\texttt{-dpi=300}) we see that no such font is available on
2461 the system. A program like \cmdname{dvips} or \cmdname{xdvi} would
2462 go off and actually build the required \texttt{.pk} files
2463 using the script \cmdname{mktexpk}.
2464
2465 Next we turn our attention to \cmdname{dvips}'s header and configuration
2466 files. We first look at one of the commonly used files, the general
2467 prologue \file{tex.pro} for \TeX{} support, before turning our attention
2468 to the generic configuration file (\file{config.ps}) and the \PS{} font
2469 map \file{psfonts.map}\Dash as of 2004, map and encoding files have
2470 their own search paths and new location in \dirname{texmf} trees. As
2471 the \samp{.ps} suffix is ambiguous we have to specify explicitly which
2472 type we are considering (\optname{dvips config}) for the file
2473 \texttt{config.ps}.
2474 \begin{alltt}
2475 > \Ucom{kpsewhich tex.pro}
2476 /usr/local/texmf/dvips/base/tex.pro
2477 > \Ucom{kpsewhich --format="dvips config" config.ps}
2478 /usr/local/texmf/dvips/config/config.ps
2479 > \Ucom{kpsewhich psfonts.map}
2480 /usr/local/texmf/fonts/map/dvips/updmap/psfonts.map
2481 \end{alltt}
2482
2483 We now take a closer look at the URW Times \PS{} support
2484 files. The prefix for these in the standard font naming scheme is
2485 \samp{utm}. The first file we look at is the configuration file,
2486 which contains the name of the map file:
2487 \begin{alltt}
2488 > \Ucom{kpsewhich --format="dvips config" config.utm}
2489 /usr/local/texmf-dist/dvips/psnfss/config.utm
2490 \end{alltt}
2491 The contents of that file is
2492 \begin{alltt}
2493 p +utm.map
2494 \end{alltt}
2495 which points to the file \file{utm.map}, which we want to
2496 locate next.
2497 \begin{alltt}
2498 > \Ucom{kpsewhich utm.map}
2499 /usr/local/texmf-dist/fonts/map/dvips/times/utm.map
2500 \end{alltt}
2501 This map file defines the file names of the Type~1 \PS{} fonts in
2502 the URW collection. Its contents look like (we only show part of the
2503 lines):
2504 \begin{alltt}
2505 utmb8r NimbusRomNo9L-Medi ... <utmb8a.pfb
2506 utmbi8r NimbusRomNo9L-MediItal... <utmbi8a.pfb
2507 utmr8r NimbusRomNo9L-Regu ... <utmr8a.pfb
2508 utmri8r NimbusRomNo9L-ReguItal... <utmri8a.pfb
2509 utmbo8r NimbusRomNo9L-Medi ... <utmb8a.pfb
2510 utmro8r NimbusRomNo9L-Regu ... <utmr8a.pfb
2511 \end{alltt}
2512 Let us, for instance, take the Times Roman instance
2513 \file{utmr8a.pfb} and find its position in the \file{texmf} directory
2514 tree with a search for Type~1 font files:
2515 \begin{alltt}
2516 > \Ucom{kpsewhich utmr8a.pfb}
2517 \ifSingleColumn /usr/local/texmf-dist/fonts/type1/urw/times/utmr8a.pfb
2518 \else /usr/local/texmf-dist/fonts/type1/
2519 ... urw/utm/utmr8a.pfb
2520 \fi\end{alltt}
2521
2522 It should be evident from these examples how you can easily locate the
2523 whereabouts of a given file. This is especially important if you suspect
2524 that the wrong version of a file is picked up somehow, since
2525 \cmdname{kpsewhich} will show you the first file encountered.
2526
2527 \subsubsection{Debugging actions}
2528 \label{sec:debugging}
2529
2530 Sometimes it is necessary to investigate how a program resolves file
2531 references. To make this practical, \KPS{} offers various levels of
2532 debugging output:
2533
2534 \begin{ttdescription}
2535 \item[\texttt{\ 1}] \texttt{stat} calls (disk lookups). When running
2536 with an up-to-date \file{ls-R} database this should almost give no
2537 output.
2538 \item[\texttt{\ 2}] References to hash tables (such as \file{ls-R}
2539 databases, map files, configuration files).
2540 \item[\texttt{\ 4}] File open and close operations.
2541 \item[\texttt{\ 8}] General path information for file types
2542 searched by \KPS. This is useful to find out where a particular
2543 path for the file was defined.
2544 \item[\texttt{16}] Directory list for each path element (only relevant
2545 for searches on disk).
2546 \item[\texttt{32}] File searches.
2547 \item[\texttt{64}] Variable values.
2548 \end{ttdescription}
2549 A value of \texttt{-1} will set all the above options; in practice,
2550 this is usually the most convenient.
2551
2552 Similarly, with the \cmdname{dvips} program, by setting a combination of
2553 debug switches, one can follow in detail where files are being picked up
2554 from. Alternatively, when a file is not found, the debug trace shows in
2555 which directories the program looks for the given file, so that one can
2556 get an indication what the problem~is.
2557
2558 Generally speaking, as most programs call the \KPS{} library
2559 internally, one can select a debug option by using the
2560 \envname{KPATHSEA\_DEBUG} environment variable, and setting it to (a
2561 combination of) values as described in the above list.
2562
2563 (Note for Windows users: it is not easy to redirect
2564 all messages to a file in this system. For diagnostic purposes
2565 you can temporarily \texttt{SET KPATHSEA\_DEBUG\_OUTPUT=err.log}).
2566
2567 Let us consider, as an example, a small \LaTeX{} source file,
2568 \file{hello-world.tex}, which contains the following input.
2569 \begin{verbatim}
2570 \documentclass{article}
2571 \begin{document}
2572 Hello World!
2573 \end{document}
2574 \end{verbatim}
2575 This little file only uses the font \file{cmr10}, so let us look at
2576 how \cmdname{dvips} prepares the \PS{} file (we want to use the Type~1
2577 version of the Computer Modern fonts, hence the option \texttt{-Pcms}).
2578 \begin{alltt}
2579 > \Ucom{dvips -d4100 hello-world -Pcms -o}
2580 \end{alltt}
2581 In this case we have combined \cmdname{dvips}'s debug class 4 (font
2582 paths) with \KPS's path element expansion (see the \cmdname{dvips}
2583 reference manual).
2584 The output (slightly rearranged) appears in
2585 Figure~\ref{fig:dvipsdbga}.
2586 \begin{figure*}[tp]
2587 \centering
2588 \input{examples/ex6a.tex}
2589 \caption{Finding configuration files}\label{fig:dvipsdbga}
2590 \end{figure*}
2591
2592 \cmdname{dvips} starts by locating its working files. First,
2593 \file{texmf.cnf} is found, which gives the definitions of the search
2594 paths for the other files, then the file database \file{ls-R} (to
2595 optimize file searching) and the file \file{aliases}, which makes it
2596 possible to declare several names (e.g., a short DOS-like 8.3 and
2597 a more natural longer version) for the same file. Then \cmdname{dvips}
2598 goes on to find the generic configuration file \file{config.ps}
2599 before looking for the customization file \file{.dvipsrc} (which, in
2600 this case is \emph{not found}). Finally, \cmdname{dvips} locates the
2601 config file for the Computer Modern \PS{} fonts \file{config.cms}
2602 (this was initiated with the \texttt{-Pcms} option on the \cmdname{dvips}
2603 command). This file contains the list of the map files which
2604 define the relation between the \TeX{}, \PS{} and file system
2605 names of the fonts.
2606 \begin{alltt}
2607 > \Ucom{more /usr/local/texmf/dvips/cms/config.cms}
2608 p +ams.map
2609 p +cms.map
2610 p +cmbkm.map
2611 p +amsbkm.map
2612 \end{alltt}
2613 \cmdname{dvips} thus goes on to find all these files, plus the generic
2614 map file \file{psfonts.map}, which is always loaded (it contains
2615 declarations for commonly used \PS{} fonts; see the last part of
2616 section~\ref{sec:examples-of-use} for more details about \PS{} map
2617 file handling).
2618
2619 At this point \cmdname{dvips} identifies itself to the user:
2620 \begin{alltt}
2621 This is dvips(k) 5.92b Copyright 2002 Radical Eye Software
2622 \end{alltt}
2623 \ifSingleColumn
2624 Then it goes on to look for the prolog file \file{texc.pro}:
2625 \begin{alltt}\small
2626 kdebug:start search(file=texc.pro, must\_exist=0, find\_all=0,
2627 path=.:~/tex/dvips//:!!/usr/local/texmf/dvips//:
2628 ~/tex/fonts/type1//:!!/usr/local/texmf/fonts/type1//).
2629 kdebug:search(texc.pro) => /usr/local/texmf/dvips/base/texc.pro
2630 \end{alltt}
2631 \else
2632 Then it goes on to look for the prolog file \file{texc.pro} (see
2633 Figure~\ref{fig:dvipsdbgb}).
2634 \fi
2635
2636 After having found the file in question, \cmdname{dvips} outputs
2637 the date and time, and informs us that it will generate the
2638 file \file{hello-world.ps}, then that it needs the font file
2639 \file{cmr10}, and that the latter is declared as ``resident'' (no
2640 bitmaps needed):
2641 \begin{alltt}\small
2642 TeX output 1998.02.26:1204' -> hello-world.ps
2643 Defining font () cmr10 at 10.0pt
2644 Font cmr10 <CMR10> is resident.
2645 \end{alltt}
2646 Now the search is on for the file \file{cmr10.tfm}, which is found,
2647 then a few more prolog files (not shown) are referenced, and finally
2648 the Type~1 instance \file{cmr10.pfb} of the font is located and
2649 included in the output file (see last line).
2650 \begin{alltt}\small
2651 kdebug:start search(file=cmr10.tfm, must\_exist=1, find\_all=0,
2652 path=.:~/tex/fonts/tfm//:!!/usr/local/texmf/fonts/tfm//:
2653 /var/tex/fonts/tfm//).
2654 kdebug:search(cmr10.tfm) => /usr/local/texmf/fonts/tfm/public/cm/cmr10.tfm
2655 kdebug:start search(file=texps.pro, must\_exist=0, find\_all=0,
2656 ...
2657 <texps.pro>
2658 kdebug:start search(file=cmr10.pfb, must\_exist=0, find\_all=0,
2659 path=.:~/tex/dvips//:!!/usr/local/texmf/dvips//:
2660 ~/tex/fonts/type1//:!!/usr/local/texmf/fonts/type1//).
2661 kdebug:search(cmr10.pfb) => /usr/local/texmf/fonts/type1/public/cm/cmr10.pfb
2662 <cmr10.pfb>[1]
2663 \end{alltt}
2664
2665 \subsection{Runtime options}
2666
2667 Another useful feature of \Webc{} is its possibility to control a number
2668 of memory parameters (in particular, array sizes) via the runtime file
2669 \file{texmf.cnf} read by \KPS{}. The memory settings can be found in
2670 Part~3 of that file in the \TL{} distribution. The more important
2671 are:
2672
2673 \begin{ttdescription}
2674 \item[\texttt{main\_memory}]
2675 Total words of memory available, for
2676 \TeX{}, \MF{} and \MP. You must make a new format file for each
2677 different setting. For instance, you could generate a ``huge''
2678 version of \TeX{}, and call the format file \texttt{hugetex.fmt}.
2679 Using the standard way of specifying the program name used by \KPS{},
2680 the particular value of the \texttt{main\_memory} variable will then
2681 be read from \file{texmf.cnf}.
2682 \item[\texttt{extra\_mem\_bot}]
2683 Extra space for ``large'' \TeX{} data structures:
2684 boxes, glue, breakpoints, etc. Especially useful if you use
2685 \PiCTeX{}.
2686 \item[\texttt{font\_mem\_size}]
2687 Number of words for font information available for \TeX. This
2688 is more or less the total size of all TFM files read.
2689 \item[\texttt{hash\_extra}]
2690 Additional space for the hash table of control sequence names; its
2691 default value is \texttt{600000}.
2692 \end{ttdescription}
2693
2694 \noindent This facility is no substitute for truly dynamic
2695 arrays and memory allocation, but since these are extremely difficult to
2696 implement in the present \TeX{} source, these runtime parameters provide
2697 a practical compromise allowing some flexibility.
2698
2699 \htmlanchor{texmfdotdir}
2700 \subsection{\texttt{\$TEXMFDOTDIR}}
2701 \label{sec:texmfdotdir}
2702
2703 In various places above, we gave various search paths starting with
2704 \code{.} (to search the current directory first), as in
2705 \begin{alltt}\small
2706 TEXINPUTS=.;$TEXMF/tex//
2707 \end{alltt}
2708
2709 This is a simplification. The \code{texmf.cnf} file we distribute in
2710 \TL{} uses \filename{$TEXMFDOTDIR} instead of just \samp{.}, as in:
2711 \begin{alltt}\small
2712 TEXINPUTS=$TEXMFDOTDIR;$TEXMF/tex//
2713 \end{alltt}
2714 (In the distributed file, the second path element is also slightly more
2715 complicated than \filename{$TEXMF/tex//}. But that's minor; here we want
2716 to discuss the \filename{$TEXMFDOTDIR} feature.)
2717
2718 The reason to use the variable \filename{$TEXMFDOTDIR} in the path
2719 definitions instead of simply \samp{.} is purely so that it can be
2720 overridden. For example, a complex document may have many source files
2721 arranged in many subdirectories. To handle that, you can set
2722 \filename{TEXMFDOTDIR} to \filename{.//} (for example, in the environment when
2723 you build the document) and they will all get searched. (Warning: don't
2724 use \filename{.//} by default; it's usually highly undesirable, and
2725 potentially insecure, to search through all subdirectories for an
2726 arbitrary document.)
2727
2728 As another example, you may wish not to search the current directory at
2729 all, e.g., if you have arranged for all the files to be found via
2730 explicit paths. You can set \filename{$TEXMFDOTDIR} to, say,
2731 \filename{/nonesuch} or any nonexistent directory for this.
2732
2733 The default value of \filename{$TEXMFDOTDIR} is just \samp{.}, as set in our
2734 \filename{texmf.cnf}.
2735
2736 \htmlanchor{ack}
2737 \section{Acknowledgements}
2738
2739 \TL{} is a joint effort by virtually all of the \TeX{} user groups.
2740 This edition of \TL{} was overseen by Karl Berry. The other principal
2741 contributors, past and present, are listed below.
2742
2743 \begin{itemize*}
2744
2745 \item The English, German, Dutch, and Polish \TeX{} user groups
2746 (TUG, DANTE e.V., NTG, and GUST,
2747 respectively), which provide the necessary technical and administrative
2748 infrastructure. Please join the \TeX\ user group near you! (See
2749 \url{https://tug.org/usergroups.html}.)
2750
2751 \item The CTAN team (\url{https://ctan.org}), which distributes
2752 the \TL{} images and provides the common infrastructure for package
2753 updates, upon which \TL{} depends.
2754
2755 \item Nelson Beebe, for making many platforms available to \TL\
2756 developers, and his own comprehensive testing and unparalleled
2757 bibliographic efforts.
2758
2759 \item John Bowman, for making many changes to his advanced graphics
2760 program Asymptote to make it work in \TL.
2761
2762 \item Peter Breitenlohner and the \eTeX\ team for the stable foundation
2763 of future \TeX's, and Peter specifically for years of stellar help with
2764 \GNU\ autotools and keeping sources up to date. Peter passed away in
2765 October 2015, and we dedicate the continuing work to his memory.
2766
2767 \item Jin-Hwan Cho and all of the DVIPDFM$x$ team, for their
2768 excellent driver and responsiveness to configuration issues.
2769
2770 \item Thomas Esser, without whose marvelous \teTeX{} package \TL{}
2771 would have never existed.
2772
2773 \item Michel Goossens, who co-authored the original documentation.
2774
2775 \item Eitan Gurari, whose \TeX4ht is used to create the \HTML{}
2776 version of this documentation, and who worked tirelessly to improve it
2777 at short notice, every year. Eitan prematurely passed away in June
2778 2009, and we dedicate this documentation to his memory.
2779
2780 \item Hans Hagen, for much testing and making his \ConTeXt\ package
2781 (\url{https://pragma-ade.com}) work within \TL's framework, and
2782 continually driving \TeX\ development.
2783
2784 \item \Thanh, Martin Schr\"oder, and the pdf\TeX\ team
2785 (\url{http://pdftex.org}), for continuing enhancements of \TeX's
2786 abilities.
2787
2788 \item Hartmut Henkel, for significant development contributions to
2789 pdf\TeX, Lua\TeX, and more.
2790
2791 \item Shunshaku Hirata, for much original and continuing work on DVIPDFM$x$.
2792
2793 \item Taco Hoekwater, for major renewed development efforts on MetaPost and
2794 (Lua)\TeX\ (\url{http://luatex.org}) itself, incorporating
2795 \ConTeXt\ into \TL, giving Kpathsea multi-threaded functionality, and
2796 much more.
2797
2798 \item Khaled Hosny, for substantial work on \XeTeX, DVIPDFM$x$, and
2799 efforts with Arabic and other fonts.
2800
2801 \item Pawe{\l} Jackowski, for the Windows installer \cmdname{tlpm},
2802 and Tomasz {\L}uczak, for \cmdname{tlpmgui}, used in past releases.
2803
2804 \item Akira Kakuto, for providing the Windows
2805 binaries from his W32TEX and W64TEX distributions for Japanese \TeX\
2806 (\url{http://w32tex.org}), and many other development contributions.
2807
2808 \item Jonathan Kew, for developing the remarkable \XeTeX{} engine and
2809 taking the time and trouble to integrate it in \TL{}, as well as the
2810 initial version of the Mac\TeX\ installer, and also for our recommended
2811 front-end \TeX{}works.
2812
2813 \item Hironori Kitagawa, for maintenance of (e)p\TeX\ and related support.
2814
2815 \item Dick Koch, for maintaining Mac\TeX\ (\url{https://tug.org/mactex})
2816 in very close tandem with \TL{}, and for his great good cheer in doing
2817 so.
2818
2819 \item Reinhard Kotucha, for major contributions to the \TL{} 2008
2820 infrastructure and installer, as well as Windows research efforts, the
2821 \texttt{getnonfreefonts} script, and more.
2822
2823 \item Siep Kroonenberg, also for major contributions to the \TL{} 2008
2824 infrastructure and installer, especially on Windows, and for the bulk of
2825 work updating this manual describing those features.
2826
2827 \item Clerk Ma, for engine bug fixes and extensions.
2828
2829 \item Mojca Miklavec, for much help with \ConTeXt, building many binary
2830 sets, and plenty more.
2831
2832 \item Heiko Oberdiek, for the \pkgname{epstopdf} package and many
2833 others, compressing the huge \pkgname{pst-geo} data files so we could
2834 include them, and most of all, for his remarkable work on
2835 \pkgname{hyperref}.
2836
2837 \item Phelype Oleinik, for the group-delimited \cs{input} across engines
2838 in 2020, and more.
2839
2840 \item Petr Ol\v{s}ak, who coordinated and checked all the Czech and Slovak
2841 material very carefully.
2842
2843 \item Toshio Oshima, for his \cmdname{dviout} previewer for Windows.
2844
2845 \item Manuel P\'egouri\'e-Gonnard, for helping with package updates,
2846 documentation improvements, and \cmdname{texdoc} development.
2847
2848 \item Fabrice Popineau, for the original Windows support in \TL{} and
2849 work on the French documentation.
2850
2851 \item Norbert Preining, the principal architect of the current \TL{}
2852 infrastructure and installer, and also for coordinating the Debian
2853 version of \TL{} (together with Frank K\"uster), and doing so much work
2854 along the way.
2855
2856 \item Sebastian Rahtz, for originally creating \TL{} and maintaining it
2857 for many years. Sebastian passed away in March 2016, and we dedicate
2858 the continuing work to his memory.
2859
2860 \item Luigi Scarso, for continuing development of MetaPost, Lua\TeX, and
2861 much more.
2862
2863 \item Andreas Scherer, for \texttt{cwebbin}, the CWEB implementation
2864 used in \TL{}, and continuing maintenance of the original CWEB.
2865
2866 \item Tim Stewart, for creating the torrents.
2867
2868 \item Takuji Tanaka, for maintenance of (e)(u)p\TeX\ and related support.
2869
2870 \item Tomasz Trzeciak, for wide-ranging help with Windows.
2871
2872 \item Vladimir Volovich, for substantial help with porting and other
2873 maintenance issues, and especially for making it feasible to include
2874 \cmdname{xindy}.
2875
2876 \item Staszek Wawrykiewicz, a principal tester for all of \TL{},
2877 and coordinator of the many major Polish contributions: fonts, Windows
2878 installation, and more. Staszek passed away in February 2018, and we
2879 dedicate the continuing work to his memory.
2880
2881 \item Olaf Weber, for his patient maintenance of \Webc\ in past years.
2882
2883 \item Gerben Wierda, for creating and maintaining the original \macOS\
2884 support.
2885
2886 \item Graham Williams, the originator of the \TeX\ Catalogue.
2887
2888 \item Joseph Wright, for much work on making the same primitive
2889 functionality available across engines.
2890
2891 \item Hironobu Yamashita, for much work on p\TeX\ and related support.
2892
2893 \end{itemize*}
2894
2895 Builders of the binaries:
2896 Marc Baudoin (\pkgname{amd64-netbsd}, \pkgname{i386-netbsd}),
2897 Ken Brown (\pkgname{x86\_64-cygwin}),
2898 Akira Kakuto (\pkgname{windows}),
2899 Dick Koch (\pkgname{universal-darwin}),
2900 Mojca Miklavec (\pkgname{x86\_64-darwinlegacy}),
2901 Norbert Preining (%
2902 \pkgname{aarch64-linux},
2903 \pkgname{armhf-linux},
2904 \pkgname{i386-freebsd}, \pkgname{amd64-freebsd},
2905 \pkgname{i386-linux}, \pkgname{x86\_64-linux},
2906 \pkgname{i386-solaris}, \pkgname{x86\_64-solaris},
2907 \pkgname{x86\_64-linuxmusl}).
2908 For information on the \TL{} build process, see
2909 \url{https://tug.org/texlive/build.html}.
2910
2911 Translators of this manual:
2912 Takuto Asakura (Japanese),
2913 Denis Bitouz\'e \& Patrick Bideault (French),
2914 Carlos Enriquez Figueras (Spanish),
2915 Jjgod Jiang, Jinsong Zhao, Yue Wang, \& Helin Gai (Chinese),
2916 Nikola Le\v{c}i\'c (Serbian),
2917 Marco Pallante \& Carla Maggi (Italian),
2918 Petr Sojka \& Jan Busa (Czech\slash Slovak),
2919 Boris Veytsman \& Vladimir Lomov (Russian),
2920 Uwe Ziegenhagen (German). The \TL{} documentation web page
2921 is \url{https://tug.org/texlive/doc.html}.
2922
2923 Of course the most important acknowledgement must go to Donald Knuth,
2924 first for inventing \TeX, and then for giving it to the world.
2925
2926
2927 \section{Release history}
2928 \label{sec:history}
2929
2930 \subsection{Past}
2931
2932 Discussion began in late 1993 when the Dutch \TeX{} Users Group was
2933 starting work on its 4All\TeX{} \CD{} for MS-DOS users, and it
2934 was hoped at that time to issue a single, rational, \CD{} for all
2935 systems. This was too ambitious a target for the time, but it did spawn
2936 not only the very successful 4All\TeX{} \CD{}, but also the TUG
2937 Technical Council working group on a \emph{\TeX{} Directory Structure}
2938 (\url{https://tug.org/tds}), which specified how to create consistent and
2939 manageable collections of \TeX{} support files. A complete draft of the
2940 \TDS{} was published in the December 1995 issue of \textsl{TUGboat}, and
2941 it was clear from an early stage that one desirable product would be a
2942 model structure on \CD{}. The distribution you now have is a very direct
2943 result of the working group's deliberations. It was also clear that the
2944 success of the 4All\TeX{} \CD{} showed that Unix users would benefit
2945 from a similarly easy system, and this is the other main strand of
2946 \TL.
2947
2948 We first undertook to make a new Unix-based \TDS{} \CD{} in the autumn
2949 of 1995, and quickly identified Thomas Esser's \teTeX{} as the ideal
2950 setup, as it already had multi-platform support and was built with
2951 portability across file systems in mind. Thomas agreed to help, and work
2952 began seriously at the start of 1996. The first edition was released in
2953 May 1996. At the start of 1997, Karl Berry completed a major new release
2954 of Web2c, which included nearly all the features which Thomas Esser had
2955 added in \teTeX, and we decided to base the 2nd edition of the \CD{} on
2956 the standard \Webc, with the addition of \teTeX's \texttt{texconfig}
2957 script. The 3rd edition of the \CD{} was based on a major revision of
2958 \Webc, 7.2, by Olaf Weber; at the same time, a new revision of \teTeX
2959 was being made, and \TL{} included almost all of its features. The
2960 4th edition followed the same pattern, using a new version of \teTeX,
2961 and a new release of \Webc{} (7.3). The system now included a complete
2962 Windows setup, thanks to Fabrice Popineau.
2963
2964 For the 5th edition (March 2000) many parts of the \CD{} were revised
2965 and checked, updating hundreds of packages. Package details were stored
2966 in XML files. But the major change for \TL~5 was that all
2967 non-free software was removed. Everything in \TL{} is now intended
2968 to be compatible with the Debian Free Software Guidelines
2969 (\url{https://debian.org/intro/free}); we have done our best to check
2970 the license conditions of all packages, but we would very much
2971 appreciate hearing of any mistakes.
2972
2973 The 6th edition (July 2001) had much more material updated. The major
2974 change was a new install concept: the user could select a more exact set
2975 of needed collections. Language-related collections were completely
2976 reorganized, so selecting any of them installs not only macros, fonts,
2977 etc., but also prepares an appropriate \texttt{language.dat}.
2978
2979 The 7th edition of 2002 had the notable addition of \macOS{} support,
2980 and the usual myriad of updates to all sorts of packages and
2981 programs. An important goal was integration of the source back with
2982 \teTeX, to correct the drift apart in versions~5 and~6.
2983
2984 \subsubsection{2003}
2985
2986 In 2003, with the continuing flood of updates and additions, we found
2987 that \TL{} had grown so large it could no longer be contained on a
2988 single \CD, so we split it into three different distributions (see
2989 section~\ref{sec:tl-coll-dists}, \p.\pageref{sec:tl-coll-dists}). In
2990 addition:
2991
2992 \begin{itemize*}
2993 \item At the request of the \LaTeX{} team, we changed the standard
2994 \cmdname{latex} and \cmdname{pdflatex} commands to now use \eTeX{} (see
2995 \p.\pageref{text:etex}).
2996 \item The new Latin Modern fonts were included (and are recommended).
2997 \item Support for Alpha OSF was removed
2998 (HPUX support was removed previously), since no one had (or
2999 volunteered) hardware available on which to compile new binaries.
3000 \item Windows setup was substantially changed; for the first time
3001 an integrated environment based on XEmacs was introduced.
3002 \item Important supplementary programs for Windows
3003 (Perl, Ghost\-script, Image\-Magick, Ispell) are now installed
3004 in the \TL{} installation directory.
3005 \item Font map files used by \cmdname{dvips}, \cmdname{dvipdfm}
3006 and \cmdname{pdftex} are now generated by the new program
3007 \cmdname{updmap} and installed into \dirname{texmf/fonts/map}.
3008 \item \TeX{}, \MF{}, and \MP{} now, by default, output most input
3009 characters (32 and above) as themselves in output (e.g.,
3010 \verb|\write|) files,
3011 log files, and the terminal, i.e., \emph{not} translated using the
3012 \verb|^^| notation. In \TL{}~7, this translation was
3013 dependent on the system locale settings; now, locale settings do
3014 not influence the \TeX{} programs' behavior. If for some reason
3015 you need the \verb|^^| output, rename the file
3016 \verb|texmf/web2c/cp8bit.tcx|. (Future releases will have cleaner
3017 ways to control this.)
3018 \item This documentation was substantially revised.
3019 \item Finally, since the edition numbers had grown unwieldy,
3020 the version is now simply identified by the year: \TL{} 2003.
3021 \end{itemize*}
3022
3023
3024 \subsubsection{2004}
3025
3026 2004 saw many changes:
3027
3028 \begin{itemize}
3029
3030 \item If you have locally-installed fonts which use their own
3031 \filename{.map} or (much less likely) \filename{.enc} support files, you
3032 may need to move those support files.
3033
3034 \filename{.map} files are now searched for in subdirectories of
3035 \dirname{fonts/map} only (in each \filename{texmf} tree), along the
3036 \envname{TEXFONTMAPS} path. Similarly, \filename{.enc} files are now
3037 searched for in subdirectories of \dirname{fonts/enc} only, along the
3038 \envname{ENCFONTS} path. \cmdname{updmap} will attempt to warn about
3039 problematic files.
3040
3041 For methods of handling this and other information, please see
3042 \url{https://tug.org/texlive/mapenc.html}.
3043
3044 \item The \TK\ has been expanded with the addition of a \MIKTEX-based
3045 installable \CD, for those who prefer that implementation to Web2C.
3046 See section~\ref{sec:overview-tl} (\p.\pageref{sec:overview-tl}).
3047
3048 \item Within \TL, the single large \dirname{texmf} tree of previous
3049 releases has been replaced by three: \dirname{texmf},
3050 \dirname{texmf-dist}, and \dirname{texmf-doc}. See
3051 section~\ref{sec:tld} (\p.\pageref{sec:tld}), and the \filename{README}
3052 files for each.
3053
3054 \item All \TeX-related input files are now collected in
3055 the \dirname{tex} subdirectory of \dirname{texmf*} trees, rather than
3056 having separate sibling directories \dirname{tex}, \dirname{etex},
3057 \dirname{pdftex}, \dirname{pdfetex}, etc. See
3058 \CDref{texmf-dist/doc/generic/tds/tds.html\#Extensions}
3059 {\texttt{texmf-dist/doc/generic/tds/tds.html\#Extensions}}.
3060
3061 \item Helper scripts (not meant to be invoked by users) are now located
3062 in a new \dirname{scripts} subdirectory of \dirname{texmf*} trees, and
3063 can be searched for via \verb|kpsewhich -format=texmfscripts|. So if you have
3064 programs which call such scripts, they'll need to be adjusted. See
3065 \url{https://tug.org/tds/tds.html\#Scripts}.
3066
3067 \item Almost all formats leave most characters printable as
3068 themselves via the ``translation file'' \filename{cp227.tcx}, instead of
3069 translating them with the \verb|^^| notation. Specifically, characters
3070 at positions 32--256, plus tab, vertical tab, and form feed are
3071 considered printable and not translated. The exceptions are plain \TeX\
3072 (only 32--126 printable), \ConTeXt\ (0--255 printable), and the
3073 \OMEGA-related formats. This default behavior is almost the same as in
3074 \TL\ 2003, but it's implemented more cleanly, with more possibilities
3075 for customization. See \CDref{texmf-dist/doc/web2c/web2c.html\#TCX-files}
3076 {\texttt{texmf-dist/doc/web2c/web2c.html\#TCX-files}}.
3077 (By the way, with Unicode input, \TeX\ may output partial character
3078 sequences when showing error contexts, since it is byte-oriented.)
3079
3080 \item \pkgname{pdfetex} is now the default engine for all formats
3081 except (plain) \pkgname{tex} itself. (Of course it generates DVI
3082 when run as \pkgname{latex}, etc.) This means, among other things, that
3083 the microtypographic features of \pkgname{pdftex} are available in
3084 \LaTeX, \ConTeXt, etc., as well as the \eTeX\ features
3085 (\OnCD{texmf-dist/doc/etex/base/}).
3086
3087 It also means it's \emph{more important than ever} to use the
3088 \pkgname{ifpdf} package (works with both plain and \LaTeX) or equivalent
3089 code, because simply testing whether \cs{pdfoutput} or some other
3090 primitive is defined is not a reliable way to determine if PDF
3091 output is being generated. We made this backward compatible as best we
3092 could this year, but next year, \cs{pdfoutput} may be defined even when
3093 DVI is being written.
3094
3095 \item pdf\TeX\ (\url{http://pdftex.org}) has many new features:
3096
3097 \begin{itemize*}
3098
3099 \item \cs{pdfmapfile} and \cs{pdfmapline} provide font map support
3100 from within a document.
3101
3102 \item Microtypographic font expansion can be used more easily.\\
3103 \url{http://www.ntg.nl/pipermail/ntg-pdftex/2004-May/000504.html}
3104
3105 \item All parameters previously set through the special configuration
3106 file \filename{pdftex.cfg} must now be set through primitives,
3107 typically in \filename{pdftexconfig.tex}; \filename{pdftex.cfg} is no
3108 longer supported. Any extant \filename{.fmt} files must be redumped
3109 when \filename{pdftexconfig.tex} is changed.
3110
3111 \item See the pdf\TeX\ manual for more: \OnCD{texmf-dist/doc/pdftex/manual/pdftex-a.pdf}.
3112
3113 \end{itemize*}
3114
3115 \item The \cs{input} primitive in \cmdname{tex} (and \cmdname{mf} and
3116 \cmdname{mpost}) now accepts double quotes containing spaces and other
3117 special characters. Typical examples:
3118 \begin{verbatim}
3119 \input "filename with spaces" % plain
3120 \input{"filename with spaces"} % latex
3121 \end{verbatim}
3122 See the Web2C manual for more: \OnCD{texmf-dist/doc/web2c}.
3123
3124 \item enc\TeX\ support is now included within Web2C and consequently all
3125 \TeX\ programs, via the \optname{-enc} option\Dash \emph{only when
3126 formats are built}. enc\TeX\ supports general re-encoding of input and
3127 output, enabling full support of Unicode (in UTF-8). See
3128 \OnCD{texmf-dist/doc/generic/enctex/} and
3129 \url{http://olsak.net/enctex.html}.
3130
3131 \item Aleph, a new engine combining \eTeX\ and \OMEGA, is available.
3132 Some information is available in \OnCD{texmf-dist/doc/aleph/base}
3133 and \url{https://texfaq.org/FAQ-enginedev}. The
3134 \LaTeX-based format for Aleph is named \pkgname{lamed}.
3135
3136 \item The latest \LaTeX\ release has a new version of the
3137 LPPL\Dash now officially a Debian-approved license. Assorted
3138 other updates, see the \filename{ltnews} files in
3139 \OnCD{texmf-dist/doc/latex/base}.
3140
3141 \item \cmdname{dvipng}, a new program for converting DVI to
3142 PNG image files, is included. See
3143 \url{https://ctan.org/pkg/dvipng}.
3144
3145 \item We reduced the \pkgname{cbgreek} package to a ``medium'' sized set
3146 of fonts, with the assent and advice of the author (Claudio Beccari).
3147 The excised fonts are the invisible, outline, and transparency ones,
3148 which are relatively rarely used, and we needed the space. The full set
3149 is of course available from CTAN (\url{https://ctan.org/pkg/cbgreek-complete}).
3150
3151 \item \cmdname{oxdvi} has been removed; just use \cmdname{xdvi}.
3152
3153 \item The \cmdname{ini} and \cmdname{vir} commands (links) for
3154 \cmdname{tex}, \cmdname{mf}, and \cmdname{mpost} are no longer created,
3155 such as \cmdname{initex}. The \cmdname{ini} functionality has been
3156 available through the command-line option \optname{-ini} for years now.
3157
3158 \item \pkgname{i386-openbsd} platform support was removed. Since the
3159 \pkgname{tetex} package in the BSD Ports system is available, and
3160 GNU/Linux and FreeBSD binaries were available, it seemed
3161 volunteer time could be better spent elsewhere.
3162
3163 \item On \pkgname{sparc-solaris} (at least), you may have to set the
3164 \envname{LD\_LIBRARY\_PATH} environment variable to run the
3165 \pkgname{t1utils} programs. This is because they are compiled with C++,
3166 and there is no standard location for the runtime libraries. (This is
3167 not new in 2004, but wasn't previously documented.) Similarly, on
3168 \pkgname{mips-irix}, the MIPSpro 7.4 runtimes are required.
3169
3170 \end{itemize}
3171
3172 \subsubsection{2005}
3173
3174 2005 saw the usual huge number of updates to packages and programs.
3175 The infrastructure stayed relatively stable from 2004, but inevitably
3176 there were some changes there as well:
3177
3178 \begin{itemize}
3179
3180 \item New scripts \cmdname{texconfig-sys}, \cmdname{updmap-sys}, and
3181 \cmdname{fmtutil-sys} were introduced, which modify the
3182 configuration in the system trees. The \cmdname{texconfig},
3183 \cmdname{updmap}, and \cmdname{fmtutil} scripts now modify
3184 user-specific files, under \dirname{$HOME/.texlive2005}.
3185
3186 \item Corresponding new variables \envname{TEXMFCONFIG} and
3187 \envname{TEXMFSYSCONFIG} to specify the trees where configuration
3188 files (user or system, respectively) are found. Thus, you may
3189 need to move personal versions of \filename{fmtutil.cnf} and
3190 \filename{updmap.cfg} to these places; another option is to
3191 redefine \envname{TEXMFCONFIG} or \envname{TEXMFSYSCONFIG} in
3192 \filename{texmf.cnf}. In any case the real location of these files
3193 and the values of \envname{TEXMFCONFIG} and \envname{TEXMFSYSCONFIG}
3194 must agree.
3195 See section~\ref{sec:texmftrees}, \p.\pageref{sec:texmftrees}.
3196
3197 \item Last year, we kept \verb|\pdfoutput| and other primitives undefined
3198 for \dvi\ output, even though the \cmdname{pdfetex} program was
3199 being used. This year, as promised, we undid that compatibility
3200 measure. So if your document uses \verb|\ifx\pdfoutput\undefined|
3201 to test if PDF is being output, it will need to be changed. You
3202 can use the package \pkgname{ifpdf.sty} (which works under both
3203 plain \TeX\ and \LaTeX) to do this, or steal its logic.
3204
3205 \item Last year, we changed most formats to output (8-bit) characters as
3206 themselves (see previous section). The new TCX file
3207 \filename{empty.tcx} now provides an easier way to get the
3208 original \verb|^^| notation if you so desire, as in:
3209 \begin{verbatim}
3210 latex --translate-file=empty.tcx yourfile.tex
3211 \end{verbatim}
3212
3213 \item The new program \cmdname{dvipdfmx} is included for translation of
3214 DVI to PDF; this is an actively maintained update of
3215 \cmdname{dvipdfm} (which is also still available for now, though
3216 no longer recommended).
3217
3218 \item The new programs \cmdname{pdfopen} and \cmdname{pdfclose} are included
3219 to allow reloading of PDF files in the Adobe Acrobat Reader without
3220 restarting the program. (Other PDF readers, notably \cmdname{xpdf},
3221 \cmdname{gv}, and \cmdname{gsview}, have never suffered from this
3222 problem.)
3223
3224 \item For consistency, the variables \envname{HOMETEXMF} and
3225 \envname{VARTEXMF} have been renamed to \envname{TEXMFHOME} and
3226 \envname{TEXMFSYSVAR}, respectively. There is also
3227 \envname{TEXMFVAR}, which is by default user-specific. See the
3228 first point above.
3229
3230 \end{itemize}
3231
3232
3233 \subsubsection{2006--2007}
3234
3235 In 2006--2007, the major new addition to \TL{} was the \XeTeX{} program,
3236 available as the \texttt{xetex} and \texttt{xelatex} programs; see
3237 \url{https://scripts.sil.org/xetex}.
3238
3239 MetaPost also received a notable update, with more planned for the
3240 future (\url{https://tug.org/metapost/articles}), likewise pdf\TeX{}
3241 (\url{https://tug.org/applications/pdftex}).
3242
3243 The \TeX\ \filename{.fmt} (high-speed format) and the similar files for
3244 MetaPost and \MF\ are now stored in subdirectories of \dirname{texmf/web2c},
3245 instead of in the directory itself (although the directory is still
3246 searched, for the sake of existing \filename{.fmt}'s). The
3247 subdirectories are named for the `engine' in use, such as \filename{tex}
3248 or \filename{pdftex} or \filename{xetex}. This change should be
3249 invisible in normal use.
3250
3251 The (plain) \texttt{tex} program no longer reads \texttt{\%\&} first
3252 lines to determine what format to run; it is the pure Knuthian \TeX.
3253 (\LaTeX\ and everything else do still read \texttt{\%\&} lines).
3254
3255 Of course the year also saw (the usual) hundreds of other updates to
3256 packages and programs. As usual, please check CTAN
3257 (\url{https://ctan.org}) for updates.
3258
3259 Internally, the source tree is now stored in Subversion, with a standard
3260 web interface for viewing the tree, as linked from our home page.
3261 Although not visible in the final distribution, we expect this will
3262 provide a stable development foundation for future years.
3263
3264 Finally, in May 2006 Thomas Esser announced that he would no longer be
3265 updating te\TeX{} (\url{https://tug.org/tetex}). As a result, there was
3266 a surge of interest in \TL{}, especially among \GNU/Linux
3267 distributors. (There is a new \texttt{tetex} installation scheme in
3268 \TL{}, which provides an approximate equivalent.) We hope this will
3269 eventually translate to improvements in the \TeX\ environment for
3270 everyone.
3271
3272 \subsubsection{2008}
3273
3274 In 2008, the entire \TL{} infrastructure was redesigned and
3275 reimplemented. Complete information about an installation is now stored
3276 in a plain text file \filename{tlpkg/texlive.tlpdb}.
3277
3278 Among other things, this finally makes possible upgrading a \TL{}
3279 installation over the Internet after the initial installation, a feature
3280 MiK\TeX\ has provided for many years. We expect to regularly update new
3281 packages as they are released to \CTAN.
3282
3283 The major new engine Lua\TeX\ (\url{http://luatex.org}) is included;
3284 besides a new level of flexibility in typesetting, this provides an
3285 excellent scripting language for use both inside and outside of \TeX\
3286 documents.
3287
3288 Support among Windows and the Unix-based platforms is now much more
3289 uniform. In particular, most Perl and Lua scripts are now available on
3290 Windows, using the Perl internally distributed with \TL.
3291
3292 The new \cmdname{tlmgr} script (section~\ref{sec:tlmgr}) is the
3293 general interface for managing \TL{} after the initial installation.
3294 It handles package updates and consequent regeneration of formats, map
3295 files, and language files, optionally including local additions.
3296
3297 With the advent of \cmdname{tlmgr}, the \cmdname{texconfig} actions to
3298 edit the format and hyphenation configuration files are now disabled.
3299
3300 The \cmdname{xindy} indexing program
3301 (\url{http://xindy.sourceforge.net/}) is now included on most platforms.
3302
3303 The \cmdname{kpsewhich} tool can now report all matches for a given file
3304 (option \optname{-{}-all}) and limit matches to a given subdirectory
3305 (option \optname{-{}-subdir}).
3306
3307 The \cmdname{dvipdfmx} program now includes functionality to extract
3308 bounding box information, via the command name \cmdname{extractbb}; this
3309 was one of the last features provided by \cmdname{dvipdfm} not in
3310 \cmdname{dvipdfmx}.
3311
3312 The font aliases \filename{Times-Roman}, \filename{Helvetica}, and so on
3313 have been removed. Different packages expected them to behave
3314 differently (in particular, to have different encodings), and there was
3315 no good way to resolve this.
3316
3317 The \pkgname{platex} format has been removed, to resolve a name conflict
3318 with a completely different Japanese \pkgname{platex}; the
3319 \pkgname{polski} package is now the main Polish support.
3320
3321 Internally, the \web\ string pool files are now compiled into the
3322 binaries, to ease upgrades.
3323
3324 Finally, the changes made by Donald Knuth in his `\TeX\ tuneup of 2008'
3325 are included in this release. See
3326 \url{https://tug.org/TUGboat/Articles/tb29-2/tb92knut.pdf}.
3327
3328 \subsubsection{2009}
3329
3330 In 2009, the default output format for Lua\AllTeX\ is now PDF, to take
3331 advantage of Lua\TeX's OpenType support, et al. New executables named
3332 \code{dviluatex} and \code{dvilualatex} run Lua\TeX\ with DVI output.
3333 The Lua\TeX\ home page is \url{http://luatex.org}.
3334
3335 The original Omega engine and Lambda format have been excised, after
3336 discussions with the Omega authors. The updated Aleph and Lamed remain,
3337 as do the Omega utilities.
3338
3339 A new release of the AMS \TypeI\ fonts is included, including Computer
3340 Modern: a few shape changes made over the years by Knuth in the Metafont
3341 sources have been integrated, and the hinting has been updated. The
3342 Euler fonts have been thoroughly reshaped by Hermann Zapf (see
3343 \url{https://tug.org/TUGboat/Articles/tb29-2/tb92hagen-euler.pdf}). In
3344 all cases, the metrics remain unchanged. The AMS fonts home page is
3345 \url{https://ams.org/tex/amsfonts.html}.
3346
3347 The new \GUI{} front end \TeX{}works is included for Windows, and also in
3348 Mac\TeX. For other platforms, and more information, see the \TeX{}works
3349 home page, \url{https://tug.org/texworks}. It is a cross-platform
3350 front-end inspired by the \macOS\ TeXShop editor, aiming at
3351 ease-of-use.
3352
3353 The graphics program Asymptote is included for several platforms. This
3354 implements a text-based graphics description language vaguely akin to
3355 MetaPost, but with advanced 3D support and other features. Its home
3356 page is \url{https://asymptote.sourceforge.io}.
3357
3358 The separate \code{dvipdfm} program has been replaced by
3359 \code{dvipdfmx}, which operates in a special compatibility mode under
3360 that name. \code{dvipdfmx} includes CJK support and has
3361 accumulated many other fixes over the years since the last
3362 \code{dvipdfm} release.
3363
3364 Executables for the \pkgname{cygwin} and \pkgname{i386-netbsd} platforms
3365 are now included, while we were advised that OpenBSD users get
3366 \TeX\ through their package systems, plus there were difficulties in
3367 making binaries that have a chance of working on more than one version.
3368
3369 A miscellany of smaller changes: we now use \pkgname{xz} compression,
3370 the stable replacement for \pkgname{lzma}
3371 (\url{https://tukaani.org/xz/}); a literal |$| is allowed in filenames
3372 when it does not introduce a known variable name; the Kpathsea library
3373 is now multi-threaded (made use of in MetaPost); the entire \TL{} build
3374 is now based on Automake.
3375
3376 Final note on the past: all releases of \TL{}, along with ancillary
3377 material such as \CD\ labels, are available at
3378 \url{ftp://tug.org/historic/systems/texlive}.
3379
3380
3381 \subsubsection{2010}
3382 \label{sec:2010news} % keep with 2010
3383
3384 In 2010, the default version for PDF output is now 1.5, enabling more
3385 compression. This applies to all the \TeX\ engines when used to produce
3386 PDF and to \code{dvipdfmx}. Loading the \pkgname{pdf14} \LaTeX\ package
3387 changes back to PDF~1.4, or set |\pdfminorversion=4|.
3388
3389 pdf\AllTeX\ now \emph{automatically} converts a requested Encapsulated
3390 PostScript (EPS) file to PDF, via the \pkgname{epstopdf} package, when
3391 and if the \LaTeX\ \code{graphics.cfg} configuration file is loaded, and
3392 PDF is being output. The default options are intended to eliminate any
3393 chance of hand-created PDF files being overwritten, but you can also
3394 prevent \code{epstopdf} from being loaded at all by putting
3395 |\newcommand{\DoNotLoadEpstopdf}{}| (or |\def...|) before the
3396 \cs{documentclass} declaration. It is also not loaded if the
3397 \pkgname{pst-pdf} package is used. For more details, see the
3398 \pkgname{epstopdf} package documentation
3399 (\url{https://ctan.org/pkg/epstopdf-pkg}).
3400
3401 A related change is that execution of a very few external commands from
3402 \TeX, via the \cs{write18} feature, is now enabled by default. These
3403 commands are \code{repstopdf}, \code{makeindex}, \code{kpsewhich},
3404 \code{bibtex}, and \code{bibtex8}; the list is defined in
3405 \code{texmf.cnf}. Environments which must disallow all such external
3406 commands can deselect this option in the installer (see
3407 section~\ref{sec:options}), or override the value after installation by
3408 running |tlmgr conf texmf shell_escape 0|.
3409
3410 Yet another related change is that \BibTeX\ and Makeindex now refuse to
3411 write their output files to an arbitrary directory (like \TeX\ itself),
3412 by default. This is so they can now be enabled for use by the
3413 restricted \cs{write18}. To change this, the \envname{TEXMFOUTPUT}
3414 environment variable can be set, or the |openout_any| setting changed.
3415
3416 \XeTeX\ now supports margin kerning along the same lines as pdf\TeX.
3417 (Font expansion is not presently supported.)
3418
3419 By default, \prog{tlmgr} now saves one backup of each package updated
3420 (\code{tlmgr option autobackup 1}), so broken package updates can be
3421 easily reverted with \code{tlmgr restore}. If you do post-install
3422 updates, and don't have the disk space for the backups, run \code{tlmgr
3423 option autobackup 0}.
3424
3425 New programs included: the p\TeX\ engine and related utilities for
3426 typesetting Japanese; the \BibTeX{}U program for Unicode-enabled
3427 \BibTeX; the \prog{chktex} utility
3428 (originally from \url{http://baruch.ev-en.org/proj/chktex}) for checking
3429 \AllTeX\
3430 documents; the \prog{dvisvgm} (\url{https://dvisvgm.de})
3431 DVI-to-SVG translator.
3432
3433 Executables for these new platforms are included: \code{amd64-freebsd},
3434 \code{amd64-kfreebsd}, \code{i386-freebsd}, \code{i386-kfreebsd},
3435 \code{x86\_64-darwin}, \code{x86\_64-solaris}.
3436
3437 A change in \TL{} 2009 that we failed to note: numerous \TeX4ht-related
3438 executables (\url{https://tug.org/tex4ht}) were removed from the binary
3439 directories. The generic \code{mk4ht} program can be used to run any of
3440 the various \code{tex4ht} combinations.
3441
3442 Finally, the \TL{} release on the \TK\ \DVD\ can no longer be run live
3443 (oddly enough). A single \DVD\ no longer has enough room. One
3444 beneficial side effect is that installation from the physical \DVD\ is
3445 much faster.
3446
3447 \subsubsection{2011}
3448
3449 The \macOS\ binaries (\code{universal-darwin} and
3450 \code{x86\_64-darwin}) now work only on Leopard or later; Panther and
3451 Tiger are no longer supported.
3452
3453 The \code{biber} program for bibliography processing is included on
3454 common platforms. Its development is closely coupled with the
3455 \code{biblatex} package, which completely reimplements the
3456 bibliographical facilities provided by LaTeX.
3457
3458 The MetaPost (\code{mpost}) program no longer creates or uses
3459 \code{.mem} files. The needed files, such as \code{plain.mp}, are
3460 simply read on every run. This is related to supporting MetaPost as a
3461 library, which is another significant though not user-visible change.
3462
3463 The \code{updmap} implementation in Perl, previously used only on
3464 Windows, has been revamped and is now used on all platforms. There
3465 shouldn't be any user-visible changes as a result, except that it runs
3466 much faster.
3467
3468 The \cmdname{initex} and \cmdname{inimf} programs were restored (but no
3469 other \cmdname{ini*} variants).
3470
3471 \subsubsection{2012}
3472
3473 \code{tlmgr} supports updates from multiple network repositories. The
3474 section on multiple repositories in the \code{tlmgr help} output has
3475 more.
3476
3477 The parameter \cs{XeTeXdashbreakstate} is set to~1 by default, for both
3478 \code{xetex} and \code{xelatex}. This allows line breaks after
3479 em-dashes and en-dashes, which has always been the behavior of plain
3480 \TeX, \LaTeX, Lua\TeX, etc. Existing \XeTeX\ documents which must
3481 retain perfect line-break compatibility will need to set
3482 \cs{XeTeXdashbreakstate} to~0 explicitly.
3483
3484 The output files generated by \code{pdftex} and \code{dvips}, among
3485 others, can now exceed 2 gigabytes.
3486
3487 The 35 standard PostScript fonts are included in the output of
3488 \code{dvips} by default, since so many different versions of them are
3489 extant.
3490
3491 In the restricted \cs{write18} execution mode, set by default,
3492 \code{mpost} is now an allowed program.
3493
3494 A \code{texmf.cnf} file is also found in \filename{../texmf-local},
3495 e.g., \filename{/usr/local/texlive/texmf-local/web2c/texmf.cnf}, if it
3496 exists.
3497
3498 The \code{updmap} script reads a per-tree \code{updmap.cfg} instead of
3499 one global config. This change should be invisible, unless you edited
3500 your updmap.cfg's directly. The \verb|updmap --help| output has more.
3501
3502 Platforms: \pkgname{armel-linux} and \pkgname{mipsel-linux} added;
3503 \pkgname{sparc-linux} and \pkgname{i386-netbsd} are no longer in the
3504 main distribution.
3505
3506 \subsubsection{2013}
3507
3508 Distribution layout: the top-level \code{texmf/} directory has been
3509 merged into \code{texmf-dist/}, for simplicity. Both the
3510 \code{TEXMFMAIN} and \code{TEXMFDIST} Kpathsea variables now point to
3511 \code{texmf-dist}.
3512
3513 Many small language collections have been merged together, to simplify
3514 installation.
3515
3516 \MP: native support for PNG output and floating-point (IEEE double) has
3517 been added.
3518
3519 Lua\TeX: updated to Lua 5.2, and includes a new library
3520 (\code{pdfscanner}) to process external PDF page content, among much
3521 else (see its web pages).
3522
3523 \XeTeX\ (also see its web pages for more):
3524 \begin{itemize*}
3525 \item The HarfBuzz library is now used for font layout instead of
3526 ICU. (ICU is still used to support input encodings, bidirectionality,
3527 and the optional Unicode line breaking.)
3528 \item Graphite2 and HarfBuzz are used instead of SilGraphite for Graphite
3529 layout.
3530 \item On Macs, Core Text is used instead of the (deprecated) ATSUI.
3531 \item Prefer TrueType/OpenType fonts to Type1 when the names are the same.
3532 \item Fix occasional mismatch in font finding between \XeTeX\ and
3533 \code{xdvipdfmx}.
3534 \item Support OpenType math cut-ins.
3535 \end{itemize*}
3536
3537 \cmdname{xdvi}: now uses FreeType instead of \code{t1lib} for rendering.
3538
3539 \pkgname{microtype.sty}: some support for \XeTeX\ (protrusion) and
3540 Lua\TeX\ (protrusion, font expansion, tracking), among other
3541 enhancements.
3542
3543 \cmdname{tlmgr}: new \code{pinning} action to ease configuring multiple
3544 repositories; that section in \verb|tlmgr --help| has more, online at
3545 \url{https://tug.org/texlive/doc/tlmgr.html#MULTIPLE-REPOSITORIES}.
3546
3547 Platforms: \pkgname{armhf-linux}, \pkgname{mips-irix},
3548 \pkgname{i386-netbsd}, and \pkgname{amd64-netbsd} added or revived;
3549 \pkgname{powerpc-aix} removed.
3550
3551 \subsubsection{2014}
3552
3553 2014 saw another \TeX\ tune-up from Knuth; this affected all engines,
3554 but the only visible change likely is the restoration of the
3555 \code{preloaded format} string on the banner line. Per Knuth, this now
3556 reflects the format that \emph{would} be loaded by default, rather than
3557 an undumped format that is actually preloaded in the binary; it may be
3558 overridden in various ways.
3559
3560 pdf\TeX: new warning-suppression parameter
3561 \cs{pdfsuppresswarningpagegroup}; new primitives for fake interword
3562 spaces to help with PDF text reflowing: \cs{pdfinterwordspaceon},
3563 \cs{pdfinterwordspaceoff}, \cs{pdffakespace}.
3564
3565 Lua\TeX: Notable changes and fixes were made to font loading and
3566 hyphenation. The biggest addition is a new engine variant,
3567 \code{luajittex} and its siblings \code{texluajit} and
3568 \code{texluajitc}. This uses a just-in-time Lua compiler (detailed
3569 \textsl{TUGboat} article at
3570 \url{https://tug.org/TUGboat/tb34-1/tb106scarso.pdf}). \code{luajittex}
3571 is still in development, is not available on all platforms, and is
3572 considerably less stable than \code{luatex}. Neither we nor its
3573 developers recommend using it except for the specific purpose of
3574 experimenting with jit on Lua code.
3575
3576 \XeTeX: The same image formats are now supported on all platforms
3577 (including Mac); avoid Unicode compatibility decomposition fallback (but
3578 not other variants); prefer OpenType to Graphite fonts, for
3579 compatibility with previous \XeTeX\ versions.
3580
3581 \MP: A new numbersystem \code{decimal} is supported, along with a
3582 companion internal \code{numberprecision}; a new definition of
3583 \code{drawdot} in \filename{plain.mp}, per Knuth; bug fixes in
3584 SVG and PNG output, among others.
3585
3586 The \cmdname{pstopdf} \ConTeXt\ utility will be removed as a standalone
3587 command at some point after the release, due to conflicts with OS
3588 utilities of the same name. It can still (and now) be invoked as
3589 \code{mtxrun --script pstopdf}.
3590
3591 \cmdname{psutils} has been substantially revised by a new maintainer.
3592 As a result, several seldom-used utilities (\code{fix*}, \code{getafm},
3593 \code{psmerge}, \code{showchar}) are now only in the \dirname{scripts/}
3594 directory rather than being user-level executables (this can be reversed
3595 if it turns out to be problematic). A new script, \code{psjoin}, has
3596 been added.
3597
3598 The Mac\TeX\ redistribution of \TL\ (section~\ref{sec:macosx}) no
3599 longer includes the optional Mac-only packages for the Latin Modern and
3600 \TeX\ Gyre fonts, since it is easy enough for individual users to make
3601 them available to the system. The \cmdname{convert} program from
3602 ImageMagick has also been excised, since \TeX4ht (specifically
3603 \code{tex4ht.env}) now uses Ghostscript directly.
3604
3605 The \pkgname{langcjk} collection for Chinese, Japanese, and Korean
3606 support has been split into individual language collections for the sake
3607 of more moderate sizes.
3608
3609 Platforms: \pkgname{x86\_64-cygwin} added, \pkgname{mips-irix} removed;
3610 Microsoft no longer supports Windows XP, so our programs may
3611 start failing there at any time.
3612
3613 \subsubsection{2015}
3614
3615 \LaTeXe\ now incorporates, by default, changes previously included only
3616 by explicitly loading the \pkgname{fixltx2e} package, which is now a
3617 no-op. A new \pkgname{latexrelease} package and other mechanisms allow
3618 for controlling what is done. The included \LaTeX\ News \#22 and
3619 ``\LaTeX\ changes'' documents have details. Incidentally, the
3620 \pkgname{babel} and \pkgname{psnfss} packages, while core parts of
3621 \LaTeX, are maintained separately and are not affected by these changes
3622 (and should still work).
3623
3624 Internally, \LaTeXe\ now includes Unicode-related engine configuration
3625 (what characters are letters, naming of primitives, etc.) which was
3626 previously part of \TL. This change is intended to be invisible
3627 to users; a few low-level internal control sequences have been renamed
3628 or removed, but the behavior should be just the same.
3629
3630 pdf\TeX: Support JPEG Exif as well as JFIF; do not
3631 emit a warning if \cs{pdfinclusionerrorlevel} is negative; sync
3632 with \prog{xpdf}~3.04.
3633
3634 Lua\TeX: New library \pkgname{newtokenlib} for scanning tokens; bug
3635 fixes in the \code{normal} random number generator and other places.
3636
3637 \XeTeX: Image handling fixes; \prog{xdvipdfmx} binary looked for first
3638 as a sibling to \prog{xetex}; internal \code{XDV} opcodes changed.
3639
3640 MetaPost: New numbersystem \code{binary}; new Japanese-enabled
3641 \prog{upmpost} and \prog{updvitomp} programs, analogous to
3642 \prog{up*tex}.
3643
3644 Mac\TeX:\ Updates to the included Ghostscript package for CJK
3645 support. The \TeX\ Distribution Preference Pane now works in Yosemite
3646 (\macOS~10.10). Resource-fork font suitcases (generally without an
3647 extension) are no longer supported by \XeTeX; data-fork suitcases
3648 (\code{.dfont}) remain supported.
3649
3650 Infrastructure: The \prog{fmtutil} script has been reimplemented to read
3651 \filename{fmtutil.cnf} on a per-tree basis, analogous to \prog{updmap}.
3652 Web2C \prog{mktex*} scripts (including \prog{mktexlsr}, \prog{mktextfm},
3653 \prog{mktexpk}) now prefer programs in their own directory, instead of
3654 always using the existing \envname{PATH}.
3655
3656 Platforms: \pkgname{*-kfreebsd} removed, since \TL\ is now easily
3657 available through the system platform mechanisms.
3658 Support for some additional platforms is available as custom binaries
3659 (\url{https://tug.org/texlive/custom-bin.html}). In addition, some
3660 platforms are now omitted from the \DVD\ (simply to save space), but can
3661 be installed normally over the net.
3662
3663 %
3664 \subsubsection{2016}
3665
3666 Lua\TeX: Sweeping changes to primitives, both renames and removals,
3667 along with some node structure rearrangements. The changes are
3668 summarized in an article by Hans Hagen, ``Lua\TeX\ 0.90 backend changes
3669 for PDF and more''
3670 (\url{https://tug.org/TUGboat/tb37-1/tb115hagen-pdf.pdf}); for all the
3671 details, see the Lua\TeX\ manual,
3672 \OnCD{texmf-dist/doc/luatex/base/luatex.pdf}.
3673
3674 Metafont: New highly experimental sibling programs MFlua and MFluajit,
3675 integrating Lua with \MF, for trial testing purposes.
3676
3677 MetaPost: Bug fixes and internal preparations for MetaPost 2.0.
3678
3679 \code{SOURCE\_DATE\_EPOCH} support in all engines except Lua\TeX\ (which
3680 will come in the next release) and original \code{tex} (intentionally
3681 omitted): if the environment variable \code{SOURCE\_DATE\_EPOCH} is set,
3682 its value is used for timestamps in the PDF output. If
3683 \code{SOURCE\_DATE\_EPOCH\_TEX\_PRIMITIVES} is also set, the
3684 \code{SOURCE\_DATE\_EPOCH} value is used to initialize the \TeX\
3685 primitives \cs{year}, \cs{month}, \cs{day}, \cs{time}. The pdf\TeX\
3686 manual has examples and details.
3687
3688 pdf\TeX: Three new primitives \cs{pdfinfoomitdate},
3689 \cs{pdfsuppressptexinfo}, and \cs{pdftrailerid}, to control values
3690 appearing in the output which normally change with each run. These
3691 features are for PDF output only, not DVI.
3692
3693 Xe\TeX: New primitives \cs{XeTeXhyphenatablelength},
3694 \cs{XeTeXgenerateactualtext},\\ \cs{XeTeXinterwordspaceshaping},
3695 \cs{mdfivesum}; character class limit increased to 4096; DVI id byte
3696 incremented.
3697
3698 Other utilities:
3699 \begin{itemize*}
3700 \item \code{gregorio} is a new program, part of the \code{gregoriotex}
3701 package for typesetting Gregorian chant scores; it is included in
3702 \code{shell\_escape\_commands} by default.
3703
3704 \item \code{upmendex} is an index creation program, mostly compatible
3705 with \code{makeindex}, with support for Unicode sorting, among other
3706 changes.
3707
3708 \item \code{afm2tfm} now makes only accent-based height adjustments
3709 upward; a new option \code{-a} omits all adjustments.
3710
3711 \item \code{ps2pk} can handle extended PK/GF fonts.
3712 \end{itemize*}
3713
3714 Mac\TeX:\ The \TeX\ Distribution Preference Pane is gone; its
3715 functionality is now in \TL\ Utility; bundled GUI applications
3716 upgraded; new script \code{cjk-gs-integrate} to be run by users who wish
3717 to incorporate various CJK fonts into Ghostscript.
3718
3719 Infrastructure: System-level \code{tlmgr} configuration file supported;
3720 verify package checksums; if GPG is available, verify signature of
3721 network updates. These checks happen with both the installer and
3722 \code{tlmgr}. If GPG is not available, updates proceed as usual.
3723
3724 Platforms: \code{alpha-linux} and \code{mipsel-linux} removed.
3725
3726 %
3727 \subsubsection{2017}
3728
3729 Lua\TeX: More callbacks, more typesetting control, more access to
3730 internals; \code{ffi} library for dynamic code loading added on some
3731 platforms.
3732
3733 pdf\TeX: Environment variable |SOURCE_DATE_EPOCH_TEX_PRIMITIVES| from
3734 last year renamed to |FORCE_SOURCE_DATE|, with no changes in
3735 functionality; if the \cs{pdfpageattr} token list contains the string
3736 \code{/MediaBox}, omit output of the default \code{/MediaBox}.
3737
3738 Xe\TeX: Unicode/OpenType math now based on HarfBuzz's MATH table support;
3739 some bug fixes.
3740
3741 Dvips: Make the last papersize special win, for consistency with
3742 \code{dvipdfmx} and package expectations; the \code{-L0} option (\code{L0}
3743 config setting) restores the previous behavior of the first special
3744 winning.
3745
3746 ep\TeX, eup\TeX: New primitives \cs{pdfuniformdeviate},
3747 \cs{pdfnormaldeviate}, \cs{pdfrandomseed}, \cs{pdfsetrandomseed},
3748 \cs{pdfelapsedtime}, \cs{pdfresettimer}, from pdf\TeX.
3749
3750 Mac\TeX:\ As of this year, only \macOS\ releases for which Apple still
3751 releases security patches will be supported in Mac\TeX, under the
3752 platform name |x86_64-darwin|; currently this means Yosemite,
3753 El~Capitan, and Sierra (10.10 and newer). Binaries for older \macOS\
3754 versions are not included in Mac\TeX, but are still available in \TL\
3755 (|x86_64-darwinlegacy|, \code{i386-darwin}, \code{powerpc-darwin}).
3756
3757 Infrastructure: The \envname{TEXMFLOCAL} tree is now searched before
3758 \envname{TEXMFSYSCONFIG} and \envname{TEXMFSYSVAR} (by default); the
3759 hope is that this will better match expectations of local files
3760 overriding system files. Also, \code{tlmgr} has a new mode \code{shell}
3761 for interactive and scripted use, and a new action \code{conf auxtrees}
3762 to easily add and remove extra trees.
3763
3764 \code{updmap} and \code{fmtutil}: These scripts now give a warning when
3765 invoked without explicitly specifying either so-called system mode
3766 (\code{updmap-sys}, \code{fmtutil-sys}, or option \code{-sys}), or user
3767 mode (\code{updmap-user}, \code{fmtutil-user}, or option \code{-user}).
3768 The hope is that this will reduce the perennial problem of invoking user
3769 mode by accident and thus losing future system updates. See
3770 \url{https://tug.org/texlive/scripts-sys-user.html} for details.
3771
3772 \code{install-tl}: Personal paths such as \envname{TEXMFHOME} are now
3773 set to Mac\TeX\ values (|~/Library/...|)\ by default on Macs. New
3774 option \code{-init-from-profile} to start an installation with the
3775 values from a given profile; new command \code{P} to explicitly save a
3776 profile; new profile variable names (but previous ones are still
3777 accepted).
3778
3779 Sync\TeX: the name of the temporary file now looks like
3780 \code{foo.synctex(busy)}, instead of \code{foo.synctex.gz(busy)}
3781 (no~\code{.gz}). Front-ends and build systems that want to remove temp
3782 files may need adjusting.
3783
3784 Other utilities: \code{texosquery-jre8} is a new cross-platform program
3785 for retrieving locale and other OS information from a \TeX\ document; it
3786 is included in |shell_escape_commands| by default for restricted
3787 shell execution. (Older JRE versions are supported by texosquery, but
3788 cannot be enabled in restricted mode, as they are no longer supported by
3789 Oracle, even for security issues.)
3790
3791 Platforms: See Mac\TeX\ entry above; no other changes.
3792
3793 %
3794 \subsubsection{2018}
3795
3796 Kpathsea: Case-insensitive filename matching now done by default in
3797 non-system directories; set \code{texmf.cnf} or environment variable
3798 \code{texmf\_casefold\_search} to~\code{0} to disable.
3799 Full details in the Kpathsea manual (\url{https://tug.org/kpathsea}).
3800
3801 ep\TeX, eup\TeX: New primitive \cs{epTeXversion}.
3802
3803 Lua\TeX: Preparation for moving to Lua 5.3 in 2019: a binary
3804 \code{luatex53} is available on most platforms, but must be renamed to
3805 \code{luatex} to be effective. Or use the \ConTeXt\ Garden
3806 (\url{https://wiki.contextgarden.net}) files; more information there.
3807
3808 MetaPost: Fixes for wrong path directions, TFM and PNG output.
3809
3810 pdf\TeX: Allow encoding vectors for bitmap fonts; current directory not
3811 hashed into PDF ID; bug fixes for \cs{pdfprimitive} and related.
3812
3813 Xe\TeX: Support \code{/Rotate} in PDF image inclusion; exit nonzero if
3814 the output driver fails; various obscure UTF-8 and other primitive
3815 fixes.
3816
3817 Mac\TeX:\ See version support changes below. In addition, the files
3818 installed in \code{/Applications/TeX/} by Mac\TeX\ have been reorganized for
3819 greater clarity; now this location contains four GUI programs (BibDesk,
3820 LaTeXiT, \TL\ Utility, and TeXShop) at the top level and folders
3821 with additional utilities and documentation.
3822
3823 \code{tlmgr}: new front-ends \code{tlshell} (Tcl/Tk) and
3824 \code{tlcockpit} (Java); JSON output; \code{uninstall} now a synonym
3825 for \code{remove}; new action/option \code{print-platform-info}.
3826
3827 Platforms:
3828 \begin{itemize*}
3829 \item
3830 Removed: \code{armel-linux}, \code{powerpc-linux}.
3831
3832 \item \code{x86\_64-darwin} supports 10.10--10.13
3833 (Yosemite, El~Capitan, Sierra, and High~Sierra).
3834
3835 \item \code{x86\_64-darwinlegacy} supports 10.6--10.10 (though
3836 \code{x86\_64-darwin} is preferred for 10.10). All support for 10.5
3837 (Leopard) is gone, that is, both the \code{powerpc-darwin} and
3838 \code{i386-darwin platforms} have been removed.
3839
3840 \item Windows: XP is no longer supported.
3841 \end{itemize*}
3842
3843 %
3844 \subsubsection{2019}
3845
3846 Kpathsea: More consistent brace expansion and path splitting; new
3847 variable \code{TEXMFDOTDIR} instead of hard-coded \code{.}\ in paths
3848 allows for easily searching additional or sub-directories (see comments
3849 in \code{texmf.cnf}).
3850
3851 ep\TeX, eup\TeX: New primitives \cs{readpapersizespecial} and
3852 \cs{expanded}.
3853
3854 Lua\TeX: Lua 5.3 now used, with concomitant arithmetic and interface changes.
3855 The homegrown library pplib is used to read pdf files, thus
3856 eliminating the dependency on poppler (and the need for C++);
3857 Lua interface changed accordingly.
3858
3859 MetaPost: \code{r-mpost} command name recognized as an
3860 alias for invocation with the \code{-{}-restricted} option, and added to
3861 the list of restricted commands available by default.
3862 Minimum precision now 2 for decimal and binary mode.
3863 Binary mode no longer available in MPlib but still available in
3864 standalone MetaPost.
3865
3866 pdf\TeX: New primitive \cs{expanded}; if new primitive parameter
3867 \cs{pdfomitcharset} is set to 1, the \code{/CharSet} string
3868 omitted from the PDF output, since it cannot feasibly be guaranteed
3869 correct, as required by PDF/A-2 and PDF/A-3.
3870
3871 Xe\TeX: New primitives for cross-engine support: \cs{expanded},
3872 \cs{creationdate},
3873 \cs{elapsedtime},
3874 \cs{filedump},
3875 \cs{filemoddate},
3876 \cs{filesize},
3877 \cs{resettimer},
3878 \cs{normaldeviate},
3879 \cs{uniformdeviate},
3880 \cs{randomseed}; extend \cs{Ucharcat} to produce active
3881 characters.
3882
3883 \code{tlmgr}: Support \code{curl} as a download program;
3884 use \code{lz4} and gzip before \code{xz} for local backups, if available;
3885 prefer system-provided binaries over binaries provided with \TL\ for
3886 compressor and download programs, unless the environment variable
3887 \code{TEXLIVE\_PREFER\_OWN} is set.
3888
3889 \code{install-tl}: New option \code{-gui} (with no argument) is the
3890 default on Windows and Macs, and invokes a new Tcl/TK GUI (see
3891 sections~\ref{sec:basic} and~\ref{sec:graphical-inst}).
3892
3893 Utilities:
3894 \begin{itemize*}
3895 \item \code{cwebbin} (\url{https://ctan.org/pkg/cwebbin}) is now the CWEB
3896 implementation in \TL, with support for more language dialects,
3897 and including the \code{ctwill} program to make mini-indexes.
3898
3899 \item \code{chkdvifont}: report font information from \dvi{} files, also
3900 from tfm/ofm, vf, gf, pk.
3901
3902 \item \code{dvispc}: make a DVI file page-independent with respect to specials.
3903 \end{itemize*}
3904
3905 Mac\TeX:\ \code{x86\_64-darwin} now supports 10.12 and higher (Sierra,
3906 High Sierra, Mojave); \code{x86\_64-darwinlegacy} still supports 10.6
3907 and newer. The spell checker Excalibur is no longer included, since it
3908 requires 32-bit support.
3909
3910 Platforms: removed \code{sparc-solaris}.
3911
3912 %
3913 \subsubsection{2020}
3914
3915 General: \begin{itemize}
3916 \item The \cs{input} primitive in all \TeX\ engines, including
3917 \texttt{tex}, now also accepts a group-delimited filename argument, as a
3918 system-dependent extension. The usage with a standard
3919 space/token-delimited filename is completely unchanged. The
3920 group-delimited argument was previously implemented in Lua\TeX; now it
3921 is available in all engines. ASCII double quote characters (\texttt{"})
3922 are removed from the filename, but it is otherwise left unchanged after
3923 tokenization. This does not currently affect \LaTeX's \cs{input} command,
3924 as that is a macro redefinition of the standard \cs{input} primitive.
3925
3926 \item New option \optname{-{}-cnf-line} for \texttt{kpsewhich}, \texttt{tex},
3927 \texttt{mf}, and all other engines, to support arbitrary configuration
3928 settings on the command line.
3929
3930 \item The addition of various primitives to various engines in this and
3931 previous years is intended to result in a common set of functionality
3932 available across all engines (\textsl{\LaTeX\ News \#31},
3933 \url{https://latex-project.org/news}).
3934
3935 \end{itemize}
3936
3937 ep\TeX, eup\TeX: Several new primitives, mostly for cross-engine support:
3938 \cs{Uchar}, \cs{Ucharcat}, \cs{current(x)spacingmode}, \cs{ifincsname};
3939 also, revise \cs{fontchar??}\ and \cs{iffontchar}. For eup\TeX\ only:
3940 \cs{currentcjktoken}.
3941
3942 Lua\TeX: Integration with HarfBuzz library, available as new engines
3943 \texttt{luahbtex} (used for \texttt{lualatex}) and \texttt{luajithbtex}.
3944 New primitives: \cs{eTeXgluestretchorder}, \cs{eTeXglueshrinkorder}.
3945
3946 pdf\TeX: New primitive \cs{pdfmajorversion}; this merely changes the
3947 version number in the PDF output; it has no effect on any PDF content.
3948 \cs{pdfximage} and similar now search for image files in the same way as
3949 \cs{openin}.
3950
3951 p\TeX: New primitives \cs{ifjfont}, \cs{iftfont}. Also in ep\TeX,
3952 up\TeX, eup\TeX.
3953
3954 Xe\TeX: Fixes for \cs{Umathchardef}, \cs{XeTeXinterchartoks}, \cs{pdfsavepos}.
3955
3956 Dvips: Output encodings for bitmap fonts, for better copy/paste
3957 capabilities
3958 (\url{https://tug.org/TUGboat/tb40-2/tb125rokicki-type3search.pdf}).
3959
3960 Mac\TeX:\ Mac\TeX\ and \texttt{x86\_64-darwin} now require 10.13 or
3961 higher (High~Sierra, Mojave, and Catalina);
3962 \texttt{x86\_64-darwinlegacy} supports 10.6 and newer. Mac\TeX\ is
3963 notarized and command line programs have hardened runtimes, as now
3964 required by Apple for install packages. BibDesk and \TL\ Utility
3965 are not in Mac\TeX\ because they are not notarized, but a
3966 \filename{README} file lists urls where they can be obtained.
3967
3968 |x86_64-darwinlegacy|: drop X11 support, including \cmdname{xdvi}.
3969
3970 \code{tlmgr} and infrastructure: \begin{itemize*}
3971 \item Automatically retry (once) packages that fail to download.
3972 \item New option \texttt{tlmgr check texmfdbs},
3973 to check consistency of \texttt{ls-R} files and \texttt{!!}\
3974 specifications for each tree.
3975 \item Use versioned filenames for the package containers, as in:\\
3976 \texttt{tlnet/archive/\textsl{pkgname}.rNNN.tar.xz}. This should be
3977 invisible to users, but is a notable change in distribution.
3978 \item \texttt{catalogue-date} information no longer propagated from the
3979 \TeX~Catalogue, since it was often unrelated to package updates.
3980 \end{itemize*}
3981
3982 %
3983 \subsubsection{2021}
3984
3985 General: \begin{itemize}
3986 \item Donald Knuth's changes for his 2021 tuneup of \TeX\ and Metafont are
3987 incorporated
3988 (\url{https://tug.org/TUGboat/tb42-1/tb130knuth-tuneup21.pdf}). They are
3989 also available on CTAN as the \code{knuth-dist} and \code{knuth-local}
3990 packages. As expected, the fixes are for obscure cases and do not affect
3991 any behavior in practice.
3992
3993 \item Except in original \TeX: if \cs{tracinglostchars} is set to 3 or
3994 more, missing characters will result in an error, not just a message in
3995 the log file, and the missing character code will be shown in hex.
3996
3997 \item Except in original \TeX: a new integer parameter
3998 \cs{tracingstacklevels}, if positive, and \cs{tracingmacros}
3999 is also positive, causes a prefix indicating the macro expansion depth
4000 to be output on each relevant log line (e.g., |~..| at depth 2).
4001 Also, macro logging is truncated at a depth $\ge$ the parameter value.
4002
4003 \end{itemize}
4004
4005 Aleph: The Aleph-based \LaTeX\ format, named \code{lamed}, has been
4006 removed. The \code{aleph} binary itself is still included and supported.
4007
4008 Lua\TeX: \begin{itemize*}
4009 \item Lua 5.3.6.
4010 \item Callback for nesting level used in \cs{tracingmacros}, as
4011 generalized variant of the new \cs{tracingstacklevels}.
4012 \item Mark math glyphs as protected to prevent processing as text.
4013 \item Removed width/ic compensation for traditional math code path.
4014 \end{itemize*}
4015
4016 MetaPost: \begin{itemize*}
4017 \item |SOURCE_DATE_EPOCH| environment variable support for reproducible output.
4018 \item Avoid wrong final \texttt{\%} in \texttt{mpto}.
4019 \item Document \texttt{-T} option, other fixes to manual.
4020 \item Value of \texttt{epsilon} changed in binary and decimal modes, so that
4021 the function |mp_solve_rising_cubic| works as expected.
4022 \end{itemize*}
4023
4024 pdf\TeX{}: \begin{itemize*}
4025 \item New primitives \cs{pdfrunninglinkoff} and
4026 \cs{pdfrunninglinkon}; e.g., for disabling generation of links in
4027 headers and footers.
4028 \item Warn instead of aborting when ``\cs{pdfendlink} ended up in
4029 different nesting level than \cs{pdfstartlink}''.
4030 \item Dump \cs{pdfglyphtounicode} assignments in \texttt{fmt} file.
4031 \item Source: \texttt{poppler} support removed, as it was too hard to
4032 keep in sync with upstream. In native \TL, pdf\TeX\ has always used
4033 \texttt{libs/xpdf}, which is cut-down and adapted code from \texttt{xpdf}.
4034 \end{itemize*}
4035
4036 Xe\TeX{}: Fixes for math kerning.
4037
4038 Dvipdfmx: \begin{itemize*}
4039 \item Ghostscript is now invoked safely by default; to override
4040 (thereby assuming all input files are trusted), use
4041 \verb|-i dvipdfmx-unsafe.cfg|. To use PSTricks with \XeTeX, this is
4042 required, as in:\\
4043 \verb|xetex -output-driver="xdvipdfmx -i dvipdfmx-unsafe.cfg -q -E" ...|
4044 \item If an image file is not found, exit with bad status.
4045 \item Extended special syntax for color support.
4046 \item Specials for manipulating |ExtGState|.
4047 \item Compatibility specials \code{pdfcolorstack} and \code{pdffontattr}.
4048 \item Experimental support for \code{dviluatex}'s extended |fnt_def|.
4049 \item Support new feature of virtual font to fallback Japanese font definition.
4050 \end{itemize*}
4051
4052 Dvips: \begin{itemize*}
4053 \item Default PostScript document title is now the basename of the input
4054 file, and can be overridden with the new option \texttt{-title}.
4055 \item If an \texttt{.eps} or other image file is not found, exit with bad
4056 status.
4057 \item Support new feature of virtual font to fallback Japanese font definition.
4058 \end{itemize*}
4059
4060 Mac\TeX{}: Mac\TeX{} and its new binary folder \texttt{universal-darwin} now
4061 require \macOS\ 10.14 or higher (Mojave, Catalina, and Big~Sur); the
4062 |x86_64-darwin| binary folder is no longer present. The
4063 |x86_64-darwinlegacy| binary folder, available only with the Unix
4064 \texttt{install-tl}, supports 10.6 and newer.
4065
4066 This is an important year for the Macintosh because Apple introduced
4067 ARM machines in November and will sell and support both ARM and Intel
4068 machines for many years. All programs in \texttt{universal-darwin} have
4069 executable code for both ARM and Intel. Both binaries are compiled from
4070 the same source code.
4071
4072 The additional programs Ghostscript, LaTeXiT, \TeX{} Live Utility, and
4073 TeXShop are all universal and are signed with a hardened runtime, so all
4074 are included in Mac\TeX{} this year.
4075
4076 \code{tlmgr} and infrastructure: \begin{itemize*}
4077 \item keep only one backup of the main repository's \texttt{texlive.tlpdb}.
4078 \item even more portability across systems and Perl versions.
4079 \item \texttt{tlmgr info} reports new \texttt{lcat-*} and \texttt{rcat-*}
4080 fields for local vs. remote Catalogue data.
4081 \item full logging of subcommands moved to a new log file:\\
4082 \texttt{texmf-var/web2c/tlmgr-commands.log}.
4083 \end{itemize*}
4084
4085 %
4086 \subsubsection{2022}
4087
4088 General: \begin{itemize}
4089 \item New engine \code{hitex}, which outputs its own HINT format,
4090 designed especially for reading technical documents on mobile devices.
4091 HINT viewers for GNU/Linux, Windows, and Android are available
4092 separately from \TL.
4093
4094 \item \code{tangle}, \code{weave}: support optional third argument to
4095 specify output file.
4096
4097 \item Knuth's program \code{twill} for making mini-indexes for original
4098 \texttt{WEB} programs now included.
4099
4100 \end{itemize}
4101
4102 Cross-engine extensions (except in original \TeX{}, Aleph, and hi\TeX{}):
4103 \begin{itemize}
4104 \item New primitive \cs{showstream} to redirect \cs{show} output to a file.
4105 \item New primitives \cs{partokenname} and \cs{partokencontext} allow
4106 overriding the name of the \cs{par} token emitted at blank lines, the
4107 end of vboxes, etc.
4108 \end{itemize}
4109
4110 ep\TeX{}, eup\TeX{}: \begin{itemize*}\raggedright
4111 \item New primitives: \cs{lastnodefont}, \cs{suppresslongerror},
4112 \cs{suppressoutererror}, \cs{suppressmathparerror}.
4113 \item pdf\TeX{} extension \cs{vadjust pre} now available.
4114 \end{itemize*}
4115
4116 Lua\TeX{}: \begin{itemize*}
4117 \item Support structured destinations from PDF 2.0.
4118 \item PNG /Smask for PDF 2.0.
4119 \item Variable font interface for \code{luahbtex}.
4120 \item Different radical style defaults in mathdefaultsmode.
4121 \item Optionally block selected discretionary creation.
4122 \item Improvements for TrueType fonts implementation.
4123 \item More efficient \cs{fontdimen} allocation.
4124 \item Ignore paragraphs with only a local \code{par} node followed by direction
4125 synchronization nodes.
4126 \end{itemize*}
4127
4128 MetaPost: Bug fix for infinite macro expansion.
4129
4130 pdf\TeX{}: \begin{itemize*}\raggedright
4131 \item Support structured destinations from PDF 2.0.
4132 \item For letterspaced fonts, use explicit \cs{fontdimen}6 if specified.
4133 \item Always start a warning at the beginning of a line.
4134 \item For characters with autokern (\cs{pdfappendkern} and
4135 \cs{pdfprependkern}), still do protrusion; likewise, autokern
4136 both implicit and explicit hyphens.
4137 \end{itemize*}
4138
4139 p\TeX{}\ et al.: \begin{itemize*}
4140 \item Major update of p\TeX{} to 4.0.0 to better support current \LaTeX{}.
4141 \item New primitives \cs{ptexlineendmode} and \cs{toucs}.
4142 \item \cs{ucs} (formerly available in uptex, euptex) now
4143 available also in p\TeX\ and ep\TeX.
4144 \item Distinguish eight-bit characters and Japanese characters,
4145 as discussed in a TUGboat article by Hironori Kitagawa
4146 (\url{https://tug.org/TUGboat/tb41-3/tb129kitagawa-char.pdf}).
4147 \end{itemize*}
4148
4149 Xe\TeX{}: New wrapper scripts \texttt{xetex-unsafe} and
4150 \texttt{xelatex-unsafe} for simpler invocation of documents requiring
4151 both \XeTeX{} and PSTricks transparency operators, which is inherently
4152 unsafe (until and unless reimplementation in Ghostscript happens). For
4153 safety, use Lua\AllTeX{}.
4154
4155 Dvipdfmx: \begin{itemize*}
4156 \item Support for PSTricks without requiring \texttt{-dNOSAFER}, except
4157 for transparency.
4158 \item The \texttt{-r} option to set bitmap font resolution works again.
4159 \end{itemize*}
4160
4161 Dvips: By default, do not attempt automatic media adjustment for rotated
4162 paper sizes; the new option \texttt{-{}-landscaperotate} re-enables.
4163
4164 \code{upmendex}: Experimental support for Arabic and Hebrew scripts;
4165 improved character classification and language support.
4166
4167 Kpathsea: First path returned from \texttt{kpsewhich -all} is now the
4168 same as a regular (non-all) search.
4169
4170 \code{tlmgr} and infrastructure: \begin{itemize*}
4171 \item use https for \code{mirror.ctan.org} by default.
4172 \item use \code{TEXMFROOT} instead of \code{SELFAUTOPARENT} for easier
4173 relocating.
4174 \item \code{install-tl}: if download or installation fails for a given
4175 package, automatically continue and later retry (once).
4176 \end{itemize*}
4177
4178 Mac\TeX{}: Mac\TeX{} and its binary folder \texttt{universal-darwin}
4179 require \macOS\ 10.14 or higher (Mojave, Catalina, Big~Sur, Monterey). The
4180 |x86_64-darwinlegacy| binary folder, available only with the Unix
4181 \texttt{install-tl}, supports 10.6 (Snow~Leopard) and newer.
4182
4183 Platforms: No changes to platform support for this year (2022). However,
4184 for next year's release (2023), we are planning to switch the Windows
4185 binaries from 32-bit to 64-bit. Unfortunately we cannot feasibly support
4186 both simultaneously.
4187
4188 %
4189 \subsubsection{2023}
4190
4191 Windows:
4192 As announced previously, \TL{} now contains 64-bit Windows
4193 binaries instead of 32-bit. The new directory name is
4194 \texttt{bin/windows} (it did not seem right to put 64-bit binaries into a
4195 directory named with ``32''). We know this will cause extra
4196 work for Windows users, but there seemed no better alternative. If you
4197 need 32-bit Windows support, you'll need to install \TL{} 2022.
4198 From Windows~11 onward, Windows on ARM supports emulation of 64-bit
4199 AMD/Intel and thus can use the current \TL. However, Windows~10 on ARM
4200 cannot emulate Intel/AMD 64-bit, and will therefore also need a 32-bit
4201 \TL. See the separate \TL{} Windows web page
4202 (\url{https://tug.org/texlive/windows.html}).
4203
4204 Cross-engine extensions (except in original \TeX{} and e-\TeX{}):
4205 \cs{special} followed by a new keyword
4206 ``\texttt{shipout}'' delays expansion of the argument tokens
4207 until \cs{shipout} time, as with a
4208 non-\verb|\immediate\write|.{\raggedright\par}
4209
4210 \noindent ep\TeX{}, eup\TeX{}:\begin{itemize*}
4211 \item ``Raw'' (u)ptex no longer built; (u)ptex now runs in
4212 e(u)ptex's compatibility mode. Same for p\TeX{} tools, listed below.
4213 \item New primitives: \cs{tojis}, \cs{ptextracingfonts},
4214 \cs{ptexfontname}.
4215 \item For \cs{font}, new syntax for JIS/UCS is supported.
4216 \end{itemize*}
4217
4218 \noindent Lua\TeX: \begin{itemize*}
4219 \item new primitive \cs{variablefam} to allow math characters to keep
4220 their class while still letting the family adapt.
4221 \item improved r2l annotation areas
4222 \item cross-engine ``late \cs{special}'' described above.
4223 \item in Lua\TeX\ 1.17.0, released in May 2023: the
4224 socket library is now disabled by default; a new command line option
4225 \code{--socket} enables it, as well as \code{--shell-escape} (not
4226 \code{--shell-restricted}). In addition, the mime library is now always
4227 available, and new functions \code{os.socketsleep} and
4228 \code{os.socketgettime} are also always available. Finally, some
4229 obscure ways to work around various security features were
4230 fixed.
4231 \end{itemize*}
4232
4233 \noindent MetaPost: Bug fixes. \texttt{svg->dx} and \texttt{svg->dy} are now
4234 \texttt{double}, for better precision; \verb|mp_begin_iteration|
4235 updated; memory leak in \texttt{mplib} fixed.
4236
4237 \noindent pdf\TeX{}: \begin{itemize*}
4238 \item new primitive \cs{pdfomitinfodict} to omit \texttt{/Info}
4239 dictionary completely.
4240 \item new primitive \cs{pdfomitprocset} to control omitting
4241 \texttt{/ProcSet} array: \texttt{/ProcSet} is included if this
4242 parameter is negative, or if this parameter is zero and pdftex is
4243 generating PDF~1.x output.
4244 \item with \cs{pdfinterwordspaceon}, if the current font's encoding
4245 has a \texttt{/space} character at slot 32, it is used; otherwise,
4246 the \texttt{/space} from the (new) default font \texttt{pdftexspace}
4247 is used. That default font can be overridden with the new primitive
4248 \cs{pdfspacefont}. This same new procedure is used for
4249 \cs{pdffakespace}.
4250 \end{itemize*}
4251
4252 \noindent p\TeX{} et al.: \begin{itemize*}
4253 \item As mentioned above, \texttt{ptex} now runs \texttt{eptex} in
4254 compatibility mode instead of being built separately.
4255
4256 \item p\TeX{} tools (pbibtex, pdvitype, ppltotf, ptftopl) merged into
4257 corresponding up\TeX{} versions, running in compatibility mode.
4258 \end{itemize*}
4259
4260 \noindent Xe\TeX: fixed \cs{topskip} and \cs{splittopskip}
4261 computation when \cs{XeTeXupwardsmode} is active; the cross-engine
4262 ``late \cs{special}'' described above.
4263
4264 \noindent Dvipdfmx: new option \texttt{-{}-pdfm-str-utf8} to make
4265 pdfmark and/or bookmark.
4266
4267 \noindent \BibTeX{}u: \begin{itemize*}
4268 \item This Bib\TeX{} variant is mostly upward-compatible with \BibTeX,
4269 with much better (Unicode-based) multilingual support. It's been in
4270 \TL{} for some years.
4271 \item This year, more features to support CJK languages have been added,
4272 some extended from the Japanese (u)pbibtex and other programs.
4273 \end{itemize*}
4274
4275 \noindent Kpathsea: Support guessing input file encodings for Unix-ish
4276 platforms, as on Windows; enabled for
4277 (\texttt{e})\texttt{p}(\texttt{la})\texttt{tex}, \texttt{pbibtex},
4278 \texttt{mendex}.
4279
4280 \noindent \code{tlmgr} and infrastructure: \begin{itemize*}
4281 \item default to text interface on \macOS.
4282 \item install core packages first, retry other packages once.
4283 \item simplistic checks are done for enough disk space.
4284 \end{itemize*}
4285
4286 \noindent Mac\TeX{}: \begin{itemize*}
4287 \item Mac\TeX{} and its binary folder \texttt{universal-darwin}
4288 require \macOS\ 10.14 or higher (Mojave, Catalina, Big~Sur, Monterey,
4289 Ventura). The \texttt{x86\_64-darwinlegacy} binary folder, available only
4290 with the Unix \texttt{install-tl}, supports 10.6 (Snow~Leopard) and
4291 later.
4292
4293 \item The GUI package in Mac\TeX{} now contains \texttt{hintview}, a \macOS\
4294 viewer for HINT documents (created by the \texttt{hitex} and
4295 \texttt{hilatex} engines for mobile devices; see the Hi\TeX{} web page,
4296 \url{https://hint.userweb.mwn.de/hint/hitex.html}). The GUI package no
4297 longer installs a folder of documents, replacing them with a short
4298 \texttt{READ~ME} for new users and a page about \texttt{hintview}.
4299
4300 \item The \texttt{Extras} folder of additional \TeX{} software on the DVD has
4301 been replaced with a document containing links to download sites.
4302 \end{itemize*}
4303
4304 \noindent Platforms: \begin{itemize*}
4305 \item As mentioned above, the new \texttt{windows} binary directory
4306 contains 64-bit Windows binaries, and
4307 \item the \texttt{bin/win32} binary directory is gone, since we cannot
4308 support 32-bit and 64-bit Windows simultaneously.
4309 \item The \texttt{i386-cygwin} binary directory is gone, since Cygwin no
4310 longer supports i386.
4311 \end{itemize*}
4312
4313 %
4314 \subsubsection{2024}
4315
4316 Cross-engine changes (except in original \TeX{}, e-\TeX{}, and Lua\TeX):
4317 \begin{itemize*}
4318 \item Avoid crashes on devious use of \cs{output} and \cs{write} braces.
4319 \item Tiny inner-loop optimization. (Both these changes are due to
4320 David Fuchs.)
4321 \end{itemize*}
4322
4323 \noindent Lua\TeX: \begin{itemize*}
4324 \item Lua-level checks for writing to files now similar to the
4325 \TeX-level checks.
4326 \item If the Lua value \code{texconfig.trace\_extra\_newline} is set,
4327 blank lines are output in the log between macro parameters. In
4328 2020--2023, this was the case by default; before that, such blank lines
4329 were never output, which is the behavior of the other engines.
4330 \item In the past, Windows \code{texlua} (not \code{luatex}, and not
4331 any other platform), internally performed wildcard expansion on the
4332 arguments. This no longer happens.
4333 \end{itemize*}
4334
4335 \noindent MetaPost: \begin{itemize*}\raggedright
4336 \item MPFI library now included for interval arithmetic; enabled with
4337 \texttt{-{}-numbersystem=interval}.
4338 \end{itemize*}
4339
4340 \noindent pdf\TeX: \begin{itemize*}
4341 \item More reliable text extraction on BigEndian systems.
4342 \item More checks against corrupt pfb, fmt, pdf files.
4343 \item Avoid writing a corrupt pdf given unusual pdf inclusions.
4344 \item Manual converted to \LaTeX\ and thoroughly reviewed, though
4345 substantive updates are minimal.
4346 \end{itemize*}
4347
4348 \noindent ep\TeX{}, eup\TeX{}: \begin{itemize*}
4349 \item New simple encoding conversion utility \texttt{ptekf}.
4350 \item \texttt{eptex} no longer built separately; it runs in \texttt{euptex}'s
4351 legacy-encoding mode.
4352 \end{itemize*}
4353
4354 \noindent Xe\TeX{}: \begin{itemize*}
4355 \item Unicode characters in filenames beyond the BMP are supported.
4356 \end{itemize*}
4357
4358 \noindent Dvipdfmx: \begin{itemize*}
4359 \item Calculate time zone offset in the same way as pdf\TeX.
4360 \item Handle variation selectors to cope with the new Adobe-Japan1-UCS2 CMap.
4361 \item Fallback multibyte characters in virtual fonts to OFM fonts for (u)p\TeX.
4362 \item Support the \code{named} keyword in the \code{pdf:image} special.
4363 \end{itemize*}
4364
4365 \noindent Kpathsea: \begin{itemize*}
4366 \item Support an extended check for safe filenames which also allows
4367 writing under \code{TEXMF}[\code{SYS}]\code{VAR}, for Lua\AllTeX{}; new
4368 functions and corresponding \code{kpsewhich} options.
4369 \item Support a new variable \code{TEXMF\_OUTPUT\_DIRECTORY} (alongside
4370 the traditional \code{TEXMFOUTPUT}), so that subprograms can have access to an
4371 \texttt{-{}-output-directory} setting in an engine invocation.
4372 \end{itemize*}
4373
4374 \noindent CWEB: \begin{itemize*}
4375 \item Support Lua\TeX{} as backend \TeX{} engine.
4376 \item Fix buffer overflow on lines with no breakpoint.
4377 \end{itemize*}
4378
4379 \noindent \code{tlmgr}: \begin{itemize*}
4380 \item New action \code{bug} to help find bug-reporting information.
4381 \item Use our own root certificate bundle on all platforms, to support LWP
4382 more widely, notably on macOS.
4383 \item Detect a remote repository older than the local installation (i.e.,
4384 a stale mirror), and don't update, to avoid incorrect package removals.
4385 \item Support \ConTeXt{} paper size setting.
4386 \item Prune backups of tlpdb files for mirrored repositories (main and
4387 tlcontrib).
4388 \end{itemize*}
4389
4390 \noindent Platforms: \begin{itemize*}
4391 \item The \ISO\ image again includes binaries for all platforms. For the
4392 last several years, some binary sets had been pruned, but this year,
4393 we are not creating a physical DVD as a user group benefit, so may
4394 as well include everything again. Also, even a maximimally-pruned
4395 image is too large to fit on a single-layer DVD, so pruning has no
4396 benefit for the 2024 volunteer burners. More info at
4397 \url{https://tug.org/texcollection/}.
4398 \item Robert Alessi provides binaries for a native \TL\ installation on
4399 OpenBSD at \url{https://sr.ht/~ralessi/texlive-openbsd/}.
4400 \end{itemize*}
4401
4402 \noindent Mac\TeX: contains the latest Ghostscript 10.03.0, updates
4403 of all four GUI programs, along with (as always) all new \TL\ changes. The
4404 binaries still support macOS~10.14 (Mojave, 2018) and later. (As usual,
4405 earlier Mac versions are supported by the \texttt{x86\_64-darwinlegacy}
4406 binaries, which are part of \TL, but not Mac\TeX{}.)
4407
4408 %
4409 \htmlanchor{news}
4410 \subsection{Present: 2025}
4411 \label{sec:tlcurrent}
4412
4413 Cross-engine changes (except in original \TeX{}):
4414 \begin{itemize*}
4415 \item Generate PDF-1.7 in all formats, both plain and \LaTeX{}; before, it was
4416 1.5. You may need an older version, especially for printing companies.
4417 You can generate, e.g., PDF-1.4 in various ways:
4418 \begin{itemize}
4419 \item Running \texttt{ps2pdf14} on the PDF file after it's generated
4420 by \TeX{}; this simple wrapper is part of Ghostscript. Other
4421 external software can do the same job.
4422 \item \LaTeX{} with PDF backends: \verb|\pdf_version_gset:n{1.4}|
4423 \item pdf\TeX{}: \verb|\pdfmajorversion=1 \pdfminorversion=4|
4424 \item Lua\TeX{}:
4425 \verb|\pdfvariable majorversion=1 \pdfvariable minorversion=4|
4426 \item \XeTeX{}:
4427 \verb|\special{pdf:majorversion:1}\special{pdf:minorversion:4}|
4428 \end{itemize}
4429 \item If \TeX{} exits due to the \texttt{-halt-on-error} option,
4430 write the help message to the log file, as happens by default.
4431 \item New primitive parameter \cs{ignoreprimitiveerror}; if set to 1,
4432 the error \texttt{"Infinite glue shrinkage found in box being
4433 split"} becomes a warning, so the program exit status is not changed
4434 to failure.
4435 Other values are reserved for future use. (Background:
4436 \url{https://www.latex-project.org/news/latex2e-news/ltnews39.pdf},
4437 section ``Enhancements to the new mark mechanism''.
4438 \item Scaling fonts to $\ge2048$pt now results in an error message, instead
4439 of (unhandled) arithmetic overflow or silent changing of the user's value.
4440 \end{itemize*}
4441
4442 \noindent Lua\TeX: \begin{itemize*}
4443 \item LuaJIT 2.1.1736781742.
4444 \item New \texttt{luaffi} lib, supporting aarch64.
4445 \item If \cs{tracinglostchars=4}, warn about missing characters when
4446 glyphs are processed, instead of waiting until typesetting needs
4447 them. If \cs{tracinglostchars=5}, make that ``early'' diagnostic
4448 into an error.
4449 \item New primitive \cs{mathemptydisplaymode}; when set to
4450 to 1, empty paragraphs before a display equation will be ignored. By
4451 default paragraphs before a display equation containing dir nodes
4452 are not ignored, which has been the traditional behavior.
4453 \item For PNG handling, we no longer set the attr on the mask. If we get
4454 a report about dropping this we could add a \texttt{maskattr}
4455 feature, but one should consider to include a correct pdf of the
4456 image instead, as it's more robust.
4457 \item Handle token combiners in immediate assignments.
4458 \item Cross-engine updates noted above.
4459 \end{itemize*}
4460
4461 %\noindent MetaPost: \begin{itemize*}\raggedright
4462 %\end{itemize*}
4463
4464 \noindent pdf\TeX: \begin{itemize*}
4465 \item new primitive \cs{pdfptexuseunderscore} to use \verb|_| instead of
4466 \verb|.|\ in various dictionary entries, e.g., \verb|PTEX_Fullbanner|
4467 instead of \verb|PTEX.Fullbanner|.
4468 \item Don't omit real spaces just because the font changes.
4469 \item Increase tolerance for detecting interword spaces in overfull lines.
4470 \item Ignore tiny resolutions like 1x1 embedded in images instead of
4471 exceeding \cs{maxdimen}.
4472 \item Cross-engine updates noted above.
4473 \end{itemize*}
4474
4475 \noindent ep\TeX{}, eup\TeX{}: \begin{itemize*}
4476 \item Support combining characters with multiple codepoints,
4477 Unicode Latin characters and 16-bit OFM Level-0 with
4478 new kcatcodes: \texttt{modifier}(20), \verb|latin_ucs|(14).
4479 \item Cross-engine updates noted above.
4480 \end{itemize*}
4481
4482 \noindent Xe\TeX{}: \begin{itemize*}
4483 \item Cross-engine updates noted above.
4484 \end{itemize*}
4485
4486 \noindent Dvipdfmx: \begin{itemize*}
4487 \item The \texttt{ebb} executable is now a separately-maintained script
4488 instead of a link to \texttt{dvipdfmx}.
4489 \item Support up\TeX{} new encoding for combining characters via virtual fonts.
4490 \item Fixes for embedded TrueType fonts with $>127$ glyphs, and more.
4491 \item Fixes for including images multiple times.
4492 \end{itemize*}
4493
4494 \noindent CWEB: \begin{itemize*}
4495 \item New option \texttt{+F} for cweave and ctwill for compound statements.
4496 \item Sync pdf bookmark pages with table-of-contents.
4497 \item Integration of Martin Ruckert's solution for faster index sorting.
4498 \item Support macro \cs{9} for sorting names-of-the-sections.
4499 \item Improved sorting algorithm in \texttt{ctwill-proofsort}.
4500 \item Output names-of-the-sections in \texttt{ctwill} format.
4501 \end{itemize*}
4502
4503 Dvips: \begin{itemize*}
4504 \item Support up\TeX{} new encoding for combining characters via
4505 virtual fonts.
4506 \end{itemize*}
4507
4508 \noindent Kpathsea: \begin{itemize*}
4509 \item \texttt{kpsewhich} outputs a blank line when a given file cannot be
4510 found, if more than one file to search for is specified.
4511 \end{itemize*}
4512
4513 \noindent \code{tlmgr}: \begin{itemize*}
4514 \item \texttt{tlmgr info}: new option \texttt{--only-files} to just
4515 report the files for a given package.
4516 \item \texttt{tlmgr search}: new option \texttt{--json}.
4517 \end{itemize*}
4518
4519 \noindent Platforms: \begin{itemize*}
4520 \item The \verb|x86_64-linux| binaries are now built on Alma Linux~8,
4521 since support for CentOS~7 (even for security updates) ended as of
4522 June~30, 2024. We regret this but see no alternative. Binaries for
4523 older systems will be available
4524 (see \url{https://tug.org/texlive/custom-bin.html}).
4525
4526 \item \TL\ now provides a file \texttt{scripts-targets.lst} with both the name
4527 and the target for symlinked scripts, for the convenience of distros.
4528 It's in the source directory
4529 \texttt{Build/source/texk/texlive/linked\_scripts}. The longstanding
4530 file \texttt{scripts.lst}, with just the targets, in that directory, is
4531 still maintained.
4532 \end{itemize*}
4533
4534 \noindent Windows:
4535 \begin{itemize*}
4536 \item Visual Basic usage in \texttt{uninstall-windows} and
4537 \texttt{runscript.tlu} has been replaced by Powershell, since VB is
4538 optional as of Windows 11.
4539 \end{itemize*}
4540
4541 \noindent Mac\TeX: \hangindent=\leftmargin
4542 Again this year, Mac\TeX{}-2025 supports both Arm and Intel processors
4543 on macOS 10.14 (Mojave, 2018), and higher. It installs:
4544 \begin{itemize*}
4545 \item \TeX{} Live 2025.
4546 \item Ghostscript-10.04.0.
4547 \item \texttt{libgs} and \texttt{mutool}, for \texttt{dvisvgm}. In
4548 previous years, this \texttt{dvisvgm} support required X11, but that
4549 requirement is eliminated in 2025 and \texttt{dvisvgm} will work both
4550 with and without X11.
4551 \item HintView 2.0, which understands the color extensions added to the
4552 latest \texttt{hitex} in \TeX{} Live 2025.
4553 \item Asymptote, which now requires macOS 11 (Big Sur, 2020) or higher.
4554 \item TeXShop 5.49, which supports Apple's latest Apple Intelligence
4555 features, including Writing Tools.
4556 \end{itemize*}
4557
4558
4559 \subsection{Future}
4560
4561 We intend to continue to release new versions of \TL, and would like to
4562 provide more documentation, more programs, an ever-improved and
4563 better-checked tree of macros and fonts, and anything else \TeX. This
4564 work is all done by volunteers in their spare time, and there is always
4565 more to do. Please see \url{https://tug.org/texlive/contribute.html}.
4566
4567 Please send corrections, suggestions, and offers of help to:
4568 \begin{quote}
4569 \email{[email protected]} {\small (you need not subscribe in order to post)}\\
4570 \url{https://tug.org/texlive}
4571 \end{quote}
4572
4573 \medskip
4574 \noindent \textsl{Happy \TeX ing!}
4575
4576 \end{document}