Debian Codegraph @

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

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