Debian Codegraph @

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

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