Debian Codegraph @

texmf-dist/doc/latex/base/ltnews27.tex

raw
1 % \iffalse meta-comment
2 %
3 % Copyright (C) 2017-2025
4 % The LaTeX Project and any individual authors listed elsewhere
5 % in this file.
6 %
7 % This file is part of the LaTeX base system.
8 % -------------------------------------------
9 %
10 % It may be distributed and/or modified under the
11 % conditions of the LaTeX Project Public License, either version 1.3c
12 % of this license or (at your option) any later version.
13 % The latest version of this license is in
14 % http://www.latex-project.org/lppl.txt
15 % and version 1.3c or later is part of all distributions of LaTeX
16 % version 2008 or later.
17 %
18 % This file has the LPPL maintenance status "maintained".
19 %
20 % The list of all files belonging to the LaTeX base distribution is
21 % given in the file `manifest.txt'. See also `legal.txt' for additional
22 % information.
23 %
24 % The list of derived (unpacked) files belonging to the distribution
25 % and covered by LPPL is defined by the unpacking scripts (with
26 % extension .ins) which are part of the distribution.
27 %
28 % \fi
29 % Filename: ltnews27.tex
30 %
31 % This is issue 27 of LaTeX News.
32
33 \documentclass{ltnews}
34 \usepackage[T1]{fontenc}
35
36 \usepackage{lmodern,url,hologo}
37
38 \publicationday{15}
39 \publicationmonth{April}
40 \publicationyear{2017}
41
42 \publicationissue{27}
43
44 \providecommand\pkg[1]{\texttt{#1}}
45 \providecommand\cls[1]{\texttt{#1}}
46 \providecommand\option[1]{\texttt{#1}}
47 \providecommand\env[1]{\texttt{#1}}
48 \providecommand\file[1]{\texttt{#1}}
49
50 \begin{document}
51
52 \maketitle
53 \tableofcontents
54
55 \setlength\rightskip{0pt plus 3em}
56
57 \section{ISO 8601 Date format}
58 Since before the first releases of \LaTeXe, \LaTeX\ has used a date
59 format in the form \textsc{yyyy/mm/dd}. This has many advantages over more
60 conventional formats, as it is easy to sort and avoids the unfortunate
61 ambiguity between different communities as to whether 01/02/2017 is the
62 1st of February or 2nd of January.
63
64 However there is another date format, formalised by the
65 International Standard ISO~8601. The basic format defined by this
66 standard is functionally equivalent to the \LaTeX\ format, but using
67 \texttt{-} rather than \texttt{/}. This date format is now supported
68 in many Operating Systems and applications
69 (for example the \verb|date --iso-8601| command in Linux and similar systems).
70
71 From this release, \LaTeX\ will accept ISO format date strings in the
72 date argument of \verb|\ProvidesPackage|, \verb|\usepackage|, etc.
73 Currently we recommend that you do not use this format in any packages
74 that need to work with older \LaTeX\ releases;
75 the \pkg{latexrelease} package may be used with older releases to
76 add this functionality. This change is handled in a special way by
77 \pkg{latexrelease}: The package always adds support for ISO dates
78 whatever format date is requested; this is required so that the
79 necessary date comparisons may be made.
80
81 The new functionality can be seen in the startup banner which
82 advertises \texttt{LaTeX2e <2017-04-15>}.
83
84 \section{Further TU encoding improvements}
85 The 2017/01/01 release saw the introduction of the new TU encoding for
86 specifying Unicode fonts with \hologo{LuaTeX} and
87 \hologo{XeTeX}. There were a number of small corrections and additions
88 in the patch releases updating 2017/01/01, and a further addition in
89 this release, notably extended support for the dot-under accent,
90 \verb|\d|.
91
92
93 \section{Disabling hyphenation}
94 The existing \LaTeX\ code for \verb|\verb| and \verb|verbatim| had some
95 issues when used with fonts that were not loaded with hyphenation
96 disabled via setting \verb|\hyphenchar| to $-1$. In this release these
97 verbatim environments use a \verb|\language| setting,
98 \verb|\l@nohyphenation|, that has no hyphenation patterns associated.
99
100 The format ensures that a language has been allocated with this name.
101 For most users this will in fact be no change as the standard
102 \pkg{babel} language has for a long time allocated a language with
103 this name.
104
105 In order that page breaks in \env{verbatim} do not influence the
106 language used in the page head and foot, the format now normalises the
107 language used in the output routine to a default language as described
108 below.
109
110 \section{Discretionary hyphenation}
111 The \LaTeX\ definition of \verb|\-| has been adjusted so that it will
112 insert the current font's \verb|\hyphenchar|, as would the
113 \TeX\ primitive. A comment in \file{source2e} has given
114 this new definition since the first releases of \LaTeXe, and in this
115 release we finally acted upon this comment. Previously \verb|\-|
116 always inserted a \texttt{-} at a break point even if a different
117 character would be used for automatic hyphenation with the current font.
118
119 \section{Default document language}
120
121 A new integer parameter \verb|\document@default@language| is
122 introduced; this is initialised to $-1$ but is set at
123 \verb|\begin{document}| to the language in force at that time if it
124 has not been set by preamble code. This is very similar to the
125 handling of the default color, and is used in a similar way to
126 normalise the settings for page head and foot as described above.
127 Users should not normally need to set this explicitly but it is expected that
128 language packages such as \pkg{babel} may set this if the default
129 behaviour is not suitable.
130
131 \section{Line spacing in parboxes}
132 Inside a \verb|\parbox|
133 \LaTeX\ normalises the baseline spacing. However it has not
134 previously reset \verb|\lineskiplimit|. This meant that
135 lines of a paragraph that have ascenders or descenders could be set
136 with \emph{closer} line spacing than lines without. This can easily
137 happen if you use a \verb|\parbox| in an AMS alignment, as they use a
138 relatively large value of \verb|\lineskiplimit|.
139 As usual, the \pkg{latexrelease} package may be used to
140 force the older behavior.
141
142 \end{document}