[latexrefman-commits] [SCM] latexrefman updated: r927 - trunk
Karl Berry
INVALID.NOREPLY at gnu.org.ua
Fri Jun 18 18:58:07 CEST 2021
Author: karl
Date: 2021-06-18 16:58:07 +0000 (Fri, 18 Jun 2021)
New Revision: 927
Modified:
trunk/ChangeLog
trunk/aspell.en.pws
trunk/latex2e.texi
Log:
tweak Expressions; overfull boxes, typos
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2021-06-12 15:11:36 UTC (rev 926)
+++ trunk/ChangeLog 2021-06-18 16:58:07 UTC (rev 927)
@@ -1,3 +1,9 @@
+2021-06-18 Karl Berry <karl at freefriends.org>
+
+ * latex2e.texi: (minipage): avoid overfull boxes from comment lines.
+ (Expressions): use \textasciitilde; other wording.
+ Fix typos.
+
2021-06-12 Jim Hefferon <jim at joshua.smcvt.edu>
* latex2e.texi (Expressions): Add section on \numberline.
Modified: trunk/aspell.en.pws
===================================================================
--- trunk/aspell.en.pws 2021-06-12 15:11:36 UTC (rev 926)
+++ trunk/aspell.en.pws 2021-06-18 16:58:07 UTC (rev 927)
@@ -273,3 +273,4 @@
Bananensis
Francorum
Respublica
+muglue
Modified: trunk/latex2e.texi
===================================================================
--- trunk/latex2e.texi 2021-06-12 15:11:36 UTC (rev 926)
+++ trunk/latex2e.texi 2021-06-18 16:58:07 UTC (rev 927)
@@ -6314,7 +6314,8 @@
@PkgIndex{siunitx}
@example
-% siunitx to have the S column specifier, which aligns numbers on decimal point
+% siunitx to have the S column specifier,
+% which aligns numbers on their decimal point.
\usepackage@{siunitx@}
\newcommand*@{\vcenteredhbox@}[1]@{\begin@{tabular@}@{@@@{@}c@@@{@}@}#1\end@{tabular@}@}
...
@@ -6325,7 +6326,8 @@
\begin@{tabular@}@{r|S@}
% \multicolumn to remove vertical bar between column headers
\multicolumn@{1@}@{r@}@{Borough@} &
- % Braces to prevent siunitx to misinterprete point as a decimal separator
+ % braces to prevent siunitx from misinterpreting the
+ % period as a decimal separator
@{Pop. (million)@} \\ \hline
The Bronx &1.5 \\
Brooklyn &2.6 \\
@@ -11143,12 +11145,12 @@
glue, or muglue, you can instead write an expression to compute that
type of quantity.
-An example is that @code{\the\dimexpr\linewidth-4pt\relax} will produce
-document output giving the length that is four points less than width of
-a line (the only purpose of @code{\the} is to show the result in the
-document). Similarly, @code{\romannumeral\numexpr6+3\relax} will
-produce @samp{ix}, and @code{\the\glueexpr 5pt plus 1pt * 2 \relax} will
-produce @samp{10.0pt plus 2.0pt}.
+An example is that @code{\the\dimexpr\linewidth-4pt\relax} will
+produce as output the length that is four points less than width of a
+line (the only purpose of @code{\the} is to show the result in the
+document). Analogously, @code{\romannumeral\numexpr6+3\relax} will
+produce @samp{ix}, and @code{\the\glueexpr 5pt plus 1pt * 2 \relax}
+will produce @samp{10.0pt plus 2.0pt}.
A convenience here over doing calculations by allocating registers and
then using @code{\advance}, etc., is that the evaluation of expressions
@@ -11163,9 +11165,10 @@
with charity for all with firmness in the right as God gives us to see
the right let us strive on to finish the work we are in to bind up the
nation's wounds, to care for him who shall have borne the battle and
-for his widow and his orphan ~ to do all which may achieve and cherish
-a just and lasting peace among ourselves and with all nations.
----Abraham Lincoln, Second Inaugural Address, from the memorial@}
+for his widow and his orphan \textasciitilde\ to do all which may
+achieve and cherish a just and lasting peace among ourselves and with
+all nations. ---Abraham Lincoln, Second Inaugural Address, from the
+memorial@}
\end@{center@}
@end example
@@ -11182,17 +11185,17 @@
of measure (pt inserted)}. This is because for @code{\dimexpr} and
@code{\glueexpr}, the input consists of a dimension or glue value
followed by an optional multiplication factor, and not the other way
-around. Thus @code{\the\dimexpr1pt*10\relax} is valid and produces
- at samp{10.0pt}, but @code{\the\dimexpr10*1pt\relax} gives the
+around. Thus @code{\the\dimexpr 1pt*10\relax} is valid and produces
+ at samp{10.0pt}, but @code{\the\dimexpr 10*1pt\relax} gives the
@code{Illegal unit} error.
The expressions absorb tokens and carry out appropriate mathematics up
to a @code{\relax} (which will be absorbed), or up to the first
-non-valid token. Thus, @code{\the\numexpr2+3px} will print @samp{5px},
-because @LaTeX{} reads the @code{\numexpr2+3}, which is made up of
-numbers, and then finds @code{px}, which is not a number. It therefore
-terminates the expression and produces the @samp{5}, followed by the
-regular text @samp{px}.
+non-valid token. Thus, @code{\the\numexpr2+3px} will print
+ at samp{5px}, because @LaTeX{} reads the @code{\numexpr2+3}, which is
+made up of numbers, and then finds the letter @code{p}, which cannot
+be part of a number. It therefore terminates the expression and
+produces the @samp{5}, followed by the regular text @samp{px}.
This termination behavior is useful in comparisons. In
@code{\ifnum\numexpr\parindent*2 < 10pt Yes\else No\fi}, the less than
@@ -11202,7 +11205,7 @@
Expressions may use the operators @code{+}, @code{-}, @code{*} and
@code{/} along with parentheses for subexpressions, @code{(...)}. In
glue expressions the @code{plus} and @code{minus} parts do not need
-parenthesis to be affected by a factor. So @code{\the\glueexpr 5pt plus
+parentheses to be affected by a factor. So @code{\the\glueexpr 5pt plus
1pt * 2 \relax} results in @samp{10pt plus 2pt}.
@TeX{} will coerce other numerical types in the same way as it does when
@@ -11216,19 +11219,20 @@
@samp{3.0pt}.
The details of the arithmetic: each factor is checked to be in the
-allowed range, numbers must be less than 2 to the power 31 in absolute
-value, and dimensions or glue components must be less than 2 to the
-power 14 points, or @code{mu}, or @code{fil}, etc. The arithmetic
-operations are performed individually, except for a scaling operation (a
-multiplication immediately followed by a division) which is done as one
-combined operation with a 64-bit product as intermediate value. The
-result of each operation is again checked to be in the allowed range.
+allowed range, numbers must be less than @math{2^{31}} in absolute
+value, and dimensions or glue components must be less than
+ at math{2^{14}} points, or @code{mu}, or @code{fil}, etc. The
+arithmetic operations are performed individually, except for a scaling
+operation (a multiplication immediately followed by a division) which
+is done as one combined operation with a 64-bit product as
+intermediate value. The result of each operation is again checked to
+be in the allowed range.
Finally, division and scaling take place with rounding (unlike @TeX{}'s
@code{\divide}, which truncates). Thus
- at code{\the\dimexpr5pt*(3/2)\relax} puts @samp{10.0pt} in the document,
+ at code{\the\dimexpr 5pt*(3/2)\relax} puts @samp{10.0pt} in the document,
because it rounds @code{3/2} to @code{2}, while
- at code{\the\dimexpr5pt*(4/3)\relax} produces @samp{5.0pt}.
+ at code{\the\dimexpr 5pt*(4/3)\relax} produces @samp{5.0pt}.
@node Making paragraphs
@@ -19200,7 +19204,7 @@
Note that the @code{hyperref} package changes the definition of
@code{\contentsline} (and @code{\addcontentsline}) to add more
-arguments, to make hyperlinks. Ths is the source of the error
+arguments, to make hyperlinks. This is the source of the error
@code{Argument of \contentsline has an extra @}}. Fix this error by
deleting the @file{.toc} or @file{.lof} or @file{.lot} file, and running
@LaTeX{} again.
@@ -19261,7 +19265,7 @@
\contentsline @{section@}@{\numberline @{1@}First section@}@{2@}
@end example
-This command is fragile, so you may need to preceed it with
+This command is fragile, so you may need to precede it with
@code{\protect} (@pxref{\protect}). An example is the use of
@code{\protect} in the command
@code{\addcontentsline@{toc@}@{section@}@{\protect\numberline@{@}Summary@}}
More information about the latexrefman-commits
mailing list.