Debian Codegraph @

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

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