Debian Codegraph @

texmf-dist/tex/latex/xkeyval/xkvltxp.sty

raw
1 %%
2 %% This is file `xkvltxp.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% xkeyval.dtx (with options: `xkvltxpatch')
8 %%
9 %% ---------------------------------------
10 %% Copyright (C) 2004-2022 Hendri Adriaens
11 %% 2025 David Carlisle for latex-package-repositories
12 %% ---------------------------------------
13 %%
14 %% This work may be distributed and/or modified under the
15 %% conditions of the LaTeX Project Public License, either version 1.3
16 %% of this license or (at your option) any later version.
17 %% The latest version of this license is in
18 %% http://www.latex-project.org/lppl.txt
19 %% and version 1.3 or later is part of all distributions of LaTeX
20 %% version 2003/12/01 or later.
21 %%
22 %% This work has the LPPL maintenance status "maintained".
23 %%
24 %% This Current Maintainer of this work is Hendri Adriaens.
25 %%
26 %% This work consists of the file xkeyval.dtx and derived files
27 %% keyval.tex, xkvtxhdr.tex, xkeyval.sty, xkeyval.tex, xkvview.sty,
28 %% xkvltxp.sty, xkvutils.tex, pst-xkey.tex, pst-xkey.sty, xkveca.cls,
29 %% xkvecb.cls, xkvesa.sty, xkvesb.sty, xkvesc.sty, xkvex1.tex,
30 %% xkvex2.tex, xkvex3.tex and xkvex4.tex.
31 %%
32 %% The following files constitute the xkeyval bundle and must be
33 %% distributed as a whole: readme, xkeyval.pdf, keyval.tex,
34 %% pst-xkey.sty, pst-xkey.tex, xkeyval.sty, xkeyval.tex, xkvview.sty,
35 %% xkvltxp.sty, xkvtxhdr.tex, xkvutils.tex, pst-xkey.dtx and xkeyval.dtx.
36 %%
37 %%
38 %% Based on latex.ltx.
39 %%
40 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
41 \ProvidesPackage{xkvltxp}[2014/05/25 v1.3 LaTeX2e kernel patch (HA)]
42 \input xkvutils
43 \def\@pass@ptions#1#2#3{%
44 \def\reserved@a{#2}%
45 \def\reserved@b{\CurrentOption}%
46 \ifx\reserved@a\reserved@b
47 \@ifundefined{opt@#3.#1}{\@temptokena\expandafter{#2}}{%
48 \@temptokena\expandafter\expandafter\expandafter
49 {\csname opt@#3.#1\endcsname}%
50 \@temptokena\expandafter\expandafter\expandafter{%
51 \expandafter\the\expandafter\@temptokena\expandafter,#2}%
52 }%
53 \else
54 \@ifundefined{opt@#3.#1}{\@temptokena{#2}}{%
55 \@temptokena\expandafter\expandafter\expandafter
56 {\csname opt@#3.#1\endcsname}%
57 \@temptokena\expandafter{\the\@temptokena,#2}%
58 }%
59 \fi
60 \expandafter\xdef\csname opt@#3.#1\endcsname{\the\@temptokena}%
61 }
62 \def\OptionNotUsed{%
63 \ifx\@currext\@clsextension
64 \let\reserved@a\CurrentOption
65 \@onelevel@sanitize\reserved@a
66 \xdef\@unusedoptionlist{%
67 \ifx\@unusedoptionlist\@empty\else\@unusedoptionlist,\fi
68 \reserved@a}%
69 \fi
70 }
71 \def\@use@ption{%
72 \let\reserved@a\CurrentOption
73 \@onelevel@sanitize\reserved@a
74 \@expandtwoargs\@removeelement\reserved@a
75 \@unusedoptionlist\@unusedoptionlist
76 \csname ds@\CurrentOption\endcsname
77 }
78 \def\@fileswith@pti@ns#1[#2]#3[#4]{%
79 \XKV@sp@deflist\XKV@resb{#2}%
80 \ifx#1\@clsextension
81 \ifx\@classoptionslist\relax
82 \let\@classoptionslist\XKV@resb
83 \def\reserved@a{%
84 \@onefilewithoptions#3[#2][#4]#1%
85 \@documentclasshook}%
86 \else
87 \def\reserved@a{%
88 \@onefilewithoptions#3[#2][#4]#1}%
89 \fi
90 \else
91 \def\reserved@b##1,{%
92 \ifx\@nil##1\relax\else
93 \ifx\relax##1\relax\else
94 \noexpand\@onefilewithoptions##1%
95 [\XKV@resb][#4]\noexpand\@pkgextension
96 \fi
97 \expandafter\reserved@b
98 \fi}%
99 \edef\reserved@a{\zap@space#3 \@empty}%
100 \edef\reserved@a{\expandafter\reserved@b\reserved@a,\@nil,}%
101 \fi
102 \reserved@a}
103 \let\@@fileswith@pti@ns\@fileswith@pti@ns
104 \endinput
105 %%
106 %% End of file `xkvltxp.sty'.