Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankMittelbach committed Jun 7, 2021
1 parent a12a72b commit 6a2af1d
Show file tree
Hide file tree
Showing 6 changed files with 238 additions and 160 deletions.
13 changes: 5 additions & 8 deletions base/changes.txt
@@ -1,11 +1,3 @@
2021-06-05 Frank Mittelbach <Frank.Mittelbach@latex-project.org>

* ltcmd.dtx,
* ltdefns.dtx,
* ltmiscen.dtx,
Normalize message texts


================================================================================
This file lists changes to the LaTeX2e files in reverse chronological order of
publication (therefore the dates might be out of sequence if there are hotfixes).
Expand All @@ -14,6 +6,11 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
================================================================================

2021-06-05 Frank Mittelbach <Frank.Mittelbach@latex-project.org>

* ltcmd.dtx, ltdefns.dtx, ltmiscen.dtx:
Normalize message texts

================================================================================
All changes above are only part of the development branch for the next release.
================================================================================
Expand Down
5 changes: 3 additions & 2 deletions base/ltcmd.dtx
Expand Up @@ -3693,10 +3693,11 @@
but~this~was~not~defined~using~xparse.
}
\msg_new:nnnn { cmd } { split-excess-tokens }
{ Too~many~'#1'~tokens~when~trying~to~split~argument. }
% { Too~many~'#1'~tokens~when~trying~to~split~argument. }
{ Too~many~'#1'~tokens~in~argument. }
{
LaTeX~was~asked~to~split~the~input~'#3'~
at~each~occurrence~of~the~token~'#1',~up~to~a~maximum~of~#2~parts.~
at~each~occurrence~of~the~token~'#1'~into~#2~parts.~
There~were~too~many~'#1'~tokens.
}
\msg_new:nnnn { cmd } { unknown }
Expand Down
182 changes: 111 additions & 71 deletions base/testfiles-ltcmd/ltcmd004.luatex.tlg
Expand Up @@ -24,77 +24,77 @@ TEST 2: Basic definitions R-type arguments
============================================================
TEST 3: r-type argument errors
============================================================
! LaTeX cmd Error: XMissing required argument for command '\foo'.
! LaTeX cmd Error: Required argument missing for command '\foo'.
For immediate help type H <return>.
...
l. ... }
The current command '\foo' expects an argument starting with '('. LaTeX did
not find it and will insert a default value to be processed.
The command '\foo' expects one of its arguments to start with '('. LaTeX did
not find this argument and will insert a default value for further processing.
(-NoValue-)(-NoValue-)(there)
! LaTeX cmd Error: XMissing required argument for command '\foo'.
! LaTeX cmd Error: Required argument missing for command '\foo'.
For immediate help type H <return>.
...
l. ... }
The current command '\foo' expects an argument starting with '('. LaTeX did
not find it and will insert a default value to be processed.
The command '\foo' expects one of its arguments to start with '('. LaTeX did
not find this argument and will insert a default value for further processing.
(nothing)(-NoValue-)(there)
! LaTeX cmd Error: XMissing required argument for command '\foo'.
! LaTeX cmd Error: Required argument missing for command '\foo'.
For immediate help type H <return>.
...
l. ... }
The current command '\foo' expects an argument starting with '['. LaTeX did
not find it and will insert a default value to be processed.
The command '\foo' expects one of its arguments to start with '['. LaTeX did
not find this argument and will insert a default value for further processing.
(stuff)(is)(-NoValue-)
! LaTeX cmd Error: XMissing required argument for command '\foo'.
! LaTeX cmd Error: Required argument missing for command '\foo'.
For immediate help type H <return>.
...
l. ... }
The current command '\foo' expects an argument starting with '('. LaTeX did
not find it and will insert a default value to be processed.
! LaTeX cmd Error: XMissing required argument for command '\foo'.
The command '\foo' expects one of its arguments to start with '('. LaTeX did
not find this argument and will insert a default value for further processing.
! LaTeX cmd Error: Required argument missing for command '\foo'.
For immediate help type H <return>.
...
l. ... }
The current command '\foo' expects an argument starting with '('. LaTeX did
not find it and will insert a default value to be processed.
The command '\foo' expects one of its arguments to start with '('. LaTeX did
not find this argument and will insert a default value for further processing.
(-NoValue-)(-NoValue-)
============================================================
============================================================
TEST 4: R-type argument errors
============================================================
! LaTeX cmd Error: XMissing required argument for command '\foo'.
! LaTeX cmd Error: Required argument missing for command '\foo'.
For immediate help type H <return>.
...
l. ... }
The current command '\foo' expects an argument starting with '('. LaTeX did
not find it and will insert a default value to be processed.
The command '\foo' expects one of its arguments to start with '('. LaTeX did
not find this argument and will insert a default value for further processing.
(-NoValue-)(drat)(there)
! LaTeX cmd Error: XMissing required argument for command '\foo'.
! LaTeX cmd Error: Required argument missing for command '\foo'.
For immediate help type H <return>.
...
l. ... }
The current command '\foo' expects an argument starting with '('. LaTeX did
not find it and will insert a default value to be processed.
The command '\foo' expects one of its arguments to start with '('. LaTeX did
not find this argument and will insert a default value for further processing.
(nothing)(drat)(there)
! LaTeX cmd Error: XMissing required argument for command '\foo'.
! LaTeX cmd Error: Required argument missing for command '\foo'.
For immediate help type H <return>.
...
l. ... }
The current command '\foo' expects an argument starting with '['. LaTeX did
not find it and will insert a default value to be processed.
The command '\foo' expects one of its arguments to start with '['. LaTeX did
not find this argument and will insert a default value for further processing.
(stuff)(is)(drat)
! LaTeX cmd Error: XMissing required argument for command '\foo'.
! LaTeX cmd Error: Required argument missing for command '\foo'.
For immediate help type H <return>.
...
l. ... }
The current command '\foo' expects an argument starting with '('. LaTeX did
not find it and will insert a default value to be processed.
! LaTeX cmd Error: XMissing required argument for command '\foo'.
The command '\foo' expects one of its arguments to start with '('. LaTeX did
not find this argument and will insert a default value for further processing.
! LaTeX cmd Error: Required argument missing for command '\foo'.
For immediate help type H <return>.
...
l. ... }
The current command '\foo' expects an argument starting with '('. LaTeX did
not find it and will insert a default value to be processed.
The command '\foo' expects one of its arguments to start with '('. LaTeX did
not find this argument and will insert a default value for further processing.
(drat)(drat)
============================================================
============================================================
Expand Down Expand Up @@ -535,7 +535,7 @@ TEST 13: Test ## in expandable argument specification
============================================================
! Undefined control sequence.
<argument> \::error
! cmd: XMissing required argument for \foobar.
! cmd: Required argument missing for \foobar.
l. ... }
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
Expand Down Expand Up @@ -630,45 +630,77 @@ undefined
============================================================
TEST 16: Optional+mandatory with same delimiter
============================================================
LaTeX cmd Warning: Since the mandatory argument 'R/r' has the same delimiter
(cmd) '[' as a previous optional argument, it will not be
(cmd) possible to omit all optional arguments when calling this
(cmd) command.
LaTeX cmd Warning: Optional and mandatory argument with same delimiter '['.
(cmd)
(cmd) The mandatory argument specified with 'r' or 'R' has the
(cmd) same delimiter '[' as an earlier optional argument. It will
(cmd) therefore not be possible to omit all the optional
(cmd) arguments when calling this command.
(cmd)
(cmd) This may be intentional, but then it my be a mistake.
|a|b|
LaTeX cmd Warning: Since the mandatory argument 'R/r' has the same delimiter
(cmd) '[' as a previous optional argument, it will not be
(cmd) possible to omit all optional arguments when calling this
(cmd) command.
LaTeX cmd Warning: Optional and mandatory argument with same delimiter '['.
(cmd)
(cmd) The mandatory argument specified with 'r' or 'R' has the
(cmd) same delimiter '[' as an earlier optional argument. It will
(cmd) therefore not be possible to omit all the optional
(cmd) arguments when calling this command.
(cmd)
(cmd) This may be intentional, but then it my be a mistake.
|a|b|
LaTeX cmd Warning: Since the mandatory argument 'R/r' has the same delimiter
(cmd) ':' as a previous optional argument, it will not be
(cmd) possible to omit all optional arguments when calling this
(cmd) command.
LaTeX cmd Warning: Optional and mandatory argument with same delimiter ':'.
(cmd)
(cmd) The mandatory argument specified with 'r' or 'R' has the
(cmd) same delimiter ':' as an earlier optional argument. It will
(cmd) therefore not be possible to omit all the optional
(cmd) arguments when calling this command.
(cmd)
(cmd) This may be intentional, but then it my be a mistake.
|a:b,c|d|
LaTeX cmd Warning: Since the mandatory argument 'R/r' has the same delimiter
(cmd) ':' as a previous optional argument, it will not be
(cmd) possible to omit all optional arguments when calling this
(cmd) command.
LaTeX cmd Warning: Optional and mandatory argument with same delimiter ':'.
(cmd)
(cmd) The mandatory argument specified with 'r' or 'R' has the
(cmd) same delimiter ':' as an earlier optional argument. It will
(cmd) therefore not be possible to omit all the optional
(cmd) arguments when calling this command.
(cmd)
(cmd) This may be intentional, but then it my be a mistake.
|a:b,c|d|
LaTeX cmd Warning: Since the mandatory argument 'R/r' has the same delimiter
(cmd) '[' as a previous optional argument, it will not be
(cmd) possible to omit all optional arguments when calling this
(cmd) command.
LaTeX cmd Warning: Optional and mandatory argument with same delimiter '['.
(cmd)
(cmd) The mandatory argument specified with 'r' or 'R' has the
(cmd) same delimiter '[' as an earlier optional argument. It will
(cmd) therefore not be possible to omit all the optional
(cmd) arguments when calling this command.
(cmd)
(cmd) This may be intentional, but then it my be a mistake.
|-NoValue-|\BooleanTrue |a|
LaTeX cmd Warning: Since the mandatory argument 'R/r' has the same delimiter
(cmd) '*' as a previous optional argument, it will not be
(cmd) possible to omit all optional arguments when calling this
(cmd) command.
LaTeX cmd Warning: Optional and mandatory argument with same delimiter '*'.
(cmd)
(cmd) The mandatory argument specified with 'r' or 'R' has the
(cmd) same delimiter '*' as an earlier optional argument. It will
(cmd) therefore not be possible to omit all the optional
(cmd) arguments when calling this command.
(cmd)
(cmd) This may be intentional, but then it my be a mistake.
|\BooleanTrue |a|
LaTeX cmd Warning: Since the mandatory argument 'R/r' has the same delimiter
(cmd) '(' as a previous optional argument, it will not be
(cmd) possible to omit all optional arguments when calling this
(cmd) command.
LaTeX cmd Warning: Optional and mandatory argument with same delimiter '('.
(cmd)
(cmd) The mandatory argument specified with 'r' or 'R' has the
(cmd) same delimiter '(' as an earlier optional argument. It will
(cmd) therefore not be possible to omit all the optional
(cmd) arguments when calling this command.
(cmd)
(cmd) This may be intentional, but then it my be a mistake.
|\BooleanTrue |a(b)c|\BooleanTrue |
LaTeX cmd Warning: Since the mandatory argument 'R/r' has the same delimiter
(cmd) '_' as a previous optional argument, it will not be
(cmd) possible to omit all optional arguments when calling this
(cmd) command.
LaTeX cmd Warning: Optional and mandatory argument with same delimiter '_'.
(cmd)
(cmd) The mandatory argument specified with 'r' or 'R' has the
(cmd) same delimiter '_' as an earlier optional argument. It will
(cmd) therefore not be possible to omit all the optional
(cmd) arguments when calling this command.
(cmd)
(cmd) This may be intentional, but then it my be a mistake.
|{_}{a}|\BooleanFalse ||
|{a}{-NoValue-}|\BooleanFalse |abc|
|{-NoValue-}{-NoValue-}|\BooleanTrue |a|
Expand Down Expand Up @@ -707,10 +739,14 @@ TEST 18: Environments and expansion
============================================================
TEST 19: Expandable r type
============================================================
LaTeX cmd Warning: Since the mandatory argument 'R/r' has the same delimiter
(cmd) '[' as a previous optional argument, it will not be
(cmd) possible to omit all optional arguments when calling this
(cmd) command.
LaTeX cmd Warning: Optional and mandatory argument with same delimiter '['.
(cmd)
(cmd) The mandatory argument specified with 'r' or 'R' has the
(cmd) same delimiter '[' as an earlier optional argument. It will
(cmd) therefore not be possible to omit all the optional
(cmd) arguments when calling this command.
(cmd)
(cmd) This may be intentional, but then it my be a mistake.
|a|b|
|a|b|
============================================================
Expand Down Expand Up @@ -780,10 +816,14 @@ TEST 26: Non-character token delimiters
============================================================
abc
def
LaTeX cmd Warning: Since the mandatory argument 'R/r' has the same delimiter
(cmd) '\(' as a previous optional argument, it will not be
(cmd) possible to omit all optional arguments when calling this
(cmd) command.
LaTeX cmd Warning: Optional and mandatory argument with same delimiter '\('.
(cmd)
(cmd) The mandatory argument specified with 'r' or 'R' has the
(cmd) same delimiter '\(' as an earlier optional argument. It
(cmd) will therefore not be possible to omit all the optional
(cmd) arguments when calling this command.
(cmd)
(cmd) This may be intentional, but then it my be a mistake.
abc/def
abc/def
abc/-NoValue-
Expand Down

0 comments on commit 6a2af1d

Please sign in to comment.