Debian Codegraph @

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

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