File tree Expand file tree Collapse file tree 4 files changed +54
-3
lines changed Expand file tree Collapse file tree 4 files changed +54
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ to completeness or accuracy and it contains some references to files that are
6
6
not part of the distribution.
7
7
================================================================================
8
8
9
+ 2024-06-03 Joseph Wright <
[email protected] >
10
+ * ltkeys.dtx:
11
+ Correct addition to unused option list with unknown key property (gh/1183)
12
+
9
13
2024-06-19 David Carlisle <
[email protected] >
10
14
11
15
* fontdef.dtx:
Original file line number Diff line number Diff line change 33
33
% <*driver>
34
34
% \fi
35
35
\ProvidesFile {ltkeys.dtx}
36
- [2024/06/20 v1.0o LaTeX Kernel (Keyval options)]
36
+ [2024/06/25 v1.0p LaTeX Kernel (Keyval options)]
37
37
% \iffalse
38
38
\documentclass {l3doc }
39
39
\GetFileInfo {ltkeys.dtx}
361
361
% \changes{v1.0h}{2022/06/20}{Use raw options data}
362
362
% \changes{v1.0m}{2024/01/13}{Trim spaces off key names}
363
363
% \changes{v1.0n}{2024/06/19}{Refactor function}
364
+ % \changes{v1.0p}{2024/06/25}
365
+ % {Correct unused option tracking where unknown keys are allowed}
364
366
% \begin{macro}{\@@_options_class:nnn}
365
367
% \changes{v1.0h}{2022/06/20}{New function}
366
368
% \changes{v1.0i}{2022/07/05}{Correct naming of raw class options storage}
387
389
{
388
390
\exp _args:Ne \@@ _options_class:nnn
389
391
{ \tl _trim_spaces:e { \@@ _remove_equals:n {##1} } }
390
- {##1} {#1}
392
+ {##1} {#1}
391
393
}
392
394
}
393
395
}
400
402
}
401
403
{
402
404
\keys _if_exist:nnTF {#3} { unknown }
403
- { \@@ _options_class:nn {#1} {#2} }
405
+ { \clist _put_right:Nn \l _@@_options_clist {#2} }
404
406
{
405
407
\clist _if_in:NnF \@unusedoptionlist {#1}
406
408
{ \clist _put_right:Nn \@unusedoptionlist {#1} }
Original file line number Diff line number Diff line change
1
+ \input{test2e}
2
+
3
+ \begin{filecontents}[overwrite]{github-1183.cls}
4
+ \NeedsTeXFormat{LaTeX2e}
5
+ \ProvidesClass{github-1183}
6
+ \LoadClassWithOptions{article}
7
+
8
+ \DeclareKeys[testwork]{%
9
+ test .code = \newcommand{\foo}{#1},
10
+ test .usage = load,
11
+ % the following three lines give an equivalent definition of your bertha
12
+ % option as defined with `\DeclareOption{bertha}{}`
13
+ bertha .code = {},
14
+ bertha .value_forbidden:n = true,
15
+ bertha .usage = load,
16
+ % if you use this unknown handler, you get "test" and "bertha" as unknown
17
+ % options, if you omit it you get "a4paper" as unknown option
18
+ unknown .code = {}
19
+ }
20
+ \ProcessKeyOptions[testwork]
21
+
22
+ \endinput
23
+ \end{filecontents}
24
+ \documentclass[a4paper,test=wtf,bertha]{github-1183}
25
+
26
+ \START
27
+ \begin{document}
28
+ \END
Original file line number Diff line number Diff line change
1
+ This is a generated file for the LaTeX2e validation system.
2
+ Don't change this file in any respect.
3
+ (github-1183.aux)
4
+ LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line ....
5
+ LaTeX Font Info: ... okay on input line ....
6
+ LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line ....
7
+ LaTeX Font Info: ... okay on input line ....
8
+ LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line ....
9
+ LaTeX Font Info: ... okay on input line ....
10
+ LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line ....
11
+ LaTeX Font Info: ... okay on input line ....
12
+ LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line ....
13
+ LaTeX Font Info: ... okay on input line ....
14
+ LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line ....
15
+ LaTeX Font Info: ... okay on input line ....
16
+ LaTeX Font Info: Checking defaults for U/cmr/m/n on input line ....
17
+ LaTeX Font Info: ... okay on input line ....
You can’t perform that action at this time.
0 commit comments