Debian Codegraph @

texmf-dist/tex/generic/expkv-bundle/expkv-cs.tex

raw
1 %%
2 %% This is file `expkv-cs.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% expkv-cs.dtx (with options: `tex')
8 %%
9 %% ----------------------------------------------------------------
10 %% expkv-bundle -- an expandable key=val implementation and friends
11 %% E-mail: [email protected]
12 %% Released under the LaTeX Project Public License v1.3c or later
13 %% See http://www.latex-project.org/lppl.txt
14 %% ----------------------------------------------------------------
15 %%
16 %% Copyright (C) 2020-2024 Jonathan P. Spratte
17 %%
18 %% This work may be distributed and/or modified under the conditions of the
19 %% LaTeX Project Public License (LPPL), either version 1.3c of this license or
20 %% (at your option) any later version. The latest version of this license is in
21 %% the file:
22 %%
23 %% http://www.latex-project.org/lppl.txt
24 %%
25 %% This work is "maintained" (as per LPPL maintenance status) by
26 %% Jonathan P. Spratte.
27 %%
28 %% This work consists of the files expkv-bundle.ins
29 %% expkv.dtx
30 %% expkv-cs.dtx
31 %% expkv-def.dtx
32 %% expkv-opt.dtx
33 %% expkv-pop.dtx
34 %% and the derived files expkv.sty
35 %% expkv.tex
36 %% t-expkv.tex
37 %% expkv-cs.sty
38 %% expkv-cs.tex
39 %% t-expkv-cs.tex
40 %% expkv-def.sty
41 %% expkv-def.tex
42 %% t-expkv-def.tex
43 %% expkv-opt.sty
44 %% expkv-pop.sty
45 %% expkv-pop.tex
46 %% t-expkv-pop.tex
47 %%
48 %% as well as any documentation files shipped with it.
49 %%
50 \input expkv-pop
51 \expandafter\ifx\csname ekvcVersion\endcsname\relax
52 \else
53 \expandafter\endinput
54 \fi
55 \def\ekvcVersion{1.4}
56 \def\ekvcDate{2024-12-16}
57 \csname ekvc@tmp\endcsname
58 \expandafter\chardef\csname ekvc@tmp\endcsname=\catcode`\@
59 \catcode`\@=11
60 \edef\ekvc@tripledots{\detokenize{...}}
61 \newcount\ekvc@keycount
62 \let\ekvc@long\ekv@empty
63 \let\ekvc@any@long\ekv@empty
64 \long\def\ekvc@ifdefined#1%
65 {%
66 \ifdefined#1%
67 \ifx\relax#1%
68 \ekv@fi@gobble
69 \fi
70 \@firstofone
71 \ekv@fi@firstoftwo
72 \fi
73 \@secondoftwo
74 }
75 \def\ekvc@ekvset@pre@expander#1%
76 {%
77 \expandafter\ekvc@ekvset@pre@expander@a\ekvset{#1}\ekvc@stop\ekvc@stop
78 }
79 \def\ekvc@ekvset@pre@expander@a
80 {%
81 \expandafter\ekvc@ekvset@pre@expander@b
82 }
83 \def\ekvc@ekvset@pre@expander@b#1\ekvc@stop#2\ekvc@stop
84 {%
85 \ekv@unexpanded\expandafter{\ekv@alignsafe}%
86 \ekv@unexpanded{#1}##1\ekv@unexpanded{#2}%
87 \ekv@unexpanded\expandafter{\ekv@endalignsafe}%
88 }
89 \protected\long\def\ekvcSplitAndUse#1#2%
90 {%
91 \let\ekvc@helpers@needed\@firstoftwo
92 \ekvc@ifdefined#1%
93 {\ekvc@err@already@defined#1}%
94 {\ekvcSplitAndUse@#1{}{#2}}%
95 }
96 \protected\long\def\ekvcSplitAndUse@#1#2#3%
97 {%
98 \edef\ekvc@set{\string#1}%
99 \ekvc@SetupSplitKeys{#3}%
100 \ekvc@helpers@needed
101 {%
102 \ekvc@any@long\edef#1##1%
103 {%
104 \expandafter\ekvc@ekvset@pre@expander\expandafter{\ekvc@set}%
105 \ekv@unexpanded\expandafter
106 {\csname ekvc@split@\the\ekvc@keycount\endcsname}%
107 \ekv@unexpanded\expandafter{\ekvc@initials{}#2}%
108 }%
109 }%
110 {%
111 \ekvc@any@long\edef#1##1%
112 {%
113 \expandafter\ekvc@ekvset@pre@expander\expandafter{\ekvc@set}%
114 \ekv@unexpanded{#2}%
115 \ekv@unexpanded\expandafter{\ekvc@initials}%
116 }%
117 }%
118 }
119 \protected\long\def\ekvcSplitAndForward#1#2#3%
120 {%
121 \let\ekvc@helpers@needed\@firstoftwo
122 \ekvc@ifdefined#1%
123 {\ekvc@err@already@defined#1}%
124 {\ekvcSplitAndUse@#1{{#2}}{#3}}%
125 }
126 \protected\long\def\ekvcSplit#1#2#3%
127 {%
128 \let\ekvc@helpers@needed\@secondoftwo
129 \ekvc@ifdefined#1%
130 {\ekvc@err@already@defined#1}%
131 {%
132 \expandafter
133 \ekvcSplitAndUse@\expandafter#1\csname ekvc@\string#1\endcsname{#2}%
134 \ifnum\ekvc@keycount<1
135 \ekvc@any@long\expandafter\def\csname ekvc@\string#1\endcsname{#3}%
136 \else
137 \ifnum\ekvc@keycount>9
138 \ekvc@err@toomany{#1}%
139 \let#1\ekvc@undefined
140 \else
141 \ekvcSplit@build@argspec
142 \ekvc@any@long\expandafter
143 \def\csname ekvc@\string#1\expandafter\endcsname\ekvc@tmp{#3}%
144 \fi
145 \fi
146 }%
147 }
148 \protected\def\ekvcSplit@build@argspec
149 {%
150 \begingroup
151 \edef\ekvc@tmp
152 {\endgroup\def\ekv@unexpanded{\ekvc@tmp}{\ekvcSplit@build@argspec@{1}}}%
153 \ekvc@tmp
154 }
155 \def\ekvcSplit@build@argspec@#1%
156 {%
157 \ifnum#1>\ekvc@keycount
158 \ekv@fi@gobble
159 \fi
160 \@firstofone
161 {%
162 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@#1\endcsname####}#1%
163 \expandafter\ekvcSplit@build@argspec@\expandafter{\the\numexpr#1+1}%
164 }%
165 }
166 \protected\long\def\ekvc@SetupSplitKeys
167 {%
168 \ekvc@keycount=\ekv@zero
169 \let\ekvc@any@long\ekv@empty
170 \let\ekvc@initials\ekv@empty
171 \ekvpParse@unsafe\ekvp@@p@ekvc@setup@splitkeys
172 }
173 \ekvpNewParser{ekvc@setup@splitkeys}
174 \ekvpDefType{ekvc@setup@splitkeys}{short}
175 {%
176 \let\ekvc@long\ekv@empty
177 \expandafter\ekvc@SetupSplitKeys@a\detokenize{#1}\ekv@stop{#3}%
178 }
179 \ekvpDefType{ekvc@setup@splitkeys}{long}
180 {%
181 \let\ekvc@long\long
182 \let\ekvc@any@long\long
183 \expandafter\ekvc@SetupSplitKeys@a\detokenize{#1}\ekv@stop{#3}%
184 }
185 \ekvpDefNoType{ekvc@setup@splitkeys}
186 {%
187 \let\ekvc@long\ekv@empty
188 \expandafter\ekvc@SetupSplitKeys@a\detokenize{#1}\ekv@stop{#3}%
189 }
190 \ekvpDefNoValue{ekvc@setup@splitkeys}
191 {%
192 \begingroup
193 \edef\ekvc@tmp{\detokenize{#1}}%
194 \expandafter
195 \endgroup
196 \ifx\ekvc@tripledots\ekvc@tmp
197 \advance\ekvc@keycount1
198 \begingroup\expandafter\endgroup
199 \expandafter\ekvc@SetupSplitKeys@unknown
200 \csname ekvc@splitmark@\the\ekvc@keycount\endcsname
201 \let\ekvc@any@long\long
202 \else
203 \ekvc@err@value@required{#1}%
204 \fi
205 }
206 \protected\long\def\ekvc@SetupSplitKeys@a
207 {%
208 \advance\ekvc@keycount1
209 \begingroup\expandafter\endgroup
210 \expandafter\ekvc@SetupSplitKeys@b
211 \csname ekvc@splitmark@\the\ekvc@keycount\endcsname
212 }
213 \protected\long\def\ekvc@SetupSplitKeys@b#1#2\ekv@stop#3%
214 {%
215 \long\def\ekvc@tmp##1##2#1##3{##2#1{##1}}%
216 \ifx\ekvc@long\long
217 \else
218 \expandafter\let\csname ekvc@\ekvc@set(#2)\endcsname\ekvc@tmp
219 \edef\ekvc@tmp##1%
220 {%
221 \ekv@unexpanded\expandafter{\csname ekvc@\ekvc@set(#2)\endcsname}%
222 {##1}%
223 }%
224 \fi
225 \ekvlet\ekvc@set{#2}\ekvc@tmp
226 \edef\ekvc@initials{\ekv@unexpanded\expandafter{\ekvc@initials#1{#3}}}%
227 \ekvc@helpers@needed
228 {\expandafter\ekvc@setup@splitmacro\expandafter{\the\ekvc@keycount}}%
229 {}%
230 }
231 \protected\long\def\ekvc@SetupSplitKeys@unknown#1%
232 {%
233 \long\def\ekvc@tmp##1##2##3##4#1##5{##4#1{##5, {##3} = {##1} }}%
234 \ekvletunknown\ekvc@set\ekvc@tmp
235 \long\def\ekvc@tmp##1##2##3#1##4{##3#1{##4, {##2} }}%
236 \ekvletunknownNoVal\ekvc@set\ekvc@tmp
237 \edef\ekvc@initials{\ekv@unexpanded\expandafter{\ekvc@initials#1{}}}%
238 \ekvc@helpers@needed
239 {\expandafter\ekvc@setup@splitmacro\expandafter{\the\ekvc@keycount}}%
240 {}%
241 }
242 \protected\def\ekvc@defarggobbler#1{\def\ekvc@tmp##1#1##2##{##1#1}}
243 \begingroup
244 \edef\ekvc@tmp
245 {%
246 \long\gdef\ekv@unexpanded\expandafter{\csname ekvc@split@1\endcsname}%
247 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@1\endcsname}##1%
248 ##2##3%
249 {##3{##1}##2}%
250 \long\gdef\ekv@unexpanded\expandafter{\csname ekvc@split@2\endcsname}%
251 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@1\endcsname}##1%
252 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@2\endcsname}##2%
253 ##3##4%
254 {##4{##1}{##2}##3}%
255 \long\gdef\ekv@unexpanded\expandafter{\csname ekvc@split@3\endcsname}%
256 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@1\endcsname}##1%
257 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@2\endcsname}##2%
258 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@3\endcsname}##3%
259 ##4##5%
260 {##5{##1}{##2}{##3}##4}%
261 \long\gdef\ekv@unexpanded\expandafter{\csname ekvc@split@4\endcsname}%
262 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@1\endcsname}##1%
263 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@2\endcsname}##2%
264 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@3\endcsname}##3%
265 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@4\endcsname}##4%
266 ##5##6%
267 {##6{##1}{##2}{##3}{##4}##5}%
268 \long\gdef\ekv@unexpanded\expandafter{\csname ekvc@split@5\endcsname}%
269 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@1\endcsname}##1%
270 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@2\endcsname}##2%
271 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@3\endcsname}##3%
272 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@4\endcsname}##4%
273 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@5\endcsname}##5%
274 ##6##7%
275 {##7{##1}{##2}{##3}{##4}{##5}##6}%
276 \long\gdef\ekv@unexpanded\expandafter{\csname ekvc@split@6\endcsname}%
277 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@1\endcsname}##1%
278 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@2\endcsname}##2%
279 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@3\endcsname}##3%
280 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@4\endcsname}##4%
281 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@5\endcsname}##5%
282 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@6\endcsname}##6%
283 ##7##8%
284 {##8{##1}{##2}{##3}{##4}{##5}{##6}##7}%
285 \long\gdef\ekv@unexpanded\expandafter{\csname ekvc@split@7\endcsname}%
286 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@1\endcsname}##1%
287 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@2\endcsname}##2%
288 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@3\endcsname}##3%
289 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@4\endcsname}##4%
290 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@5\endcsname}##5%
291 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@6\endcsname}##6%
292 \ekv@unexpanded\expandafter{\csname ekvc@splitmark@7\endcsname}##7%
293 ##8##9%
294 {##9{##1}{##2}{##3}{##4}{##5}{##6}{##7}##8}%
295 }
296 \ekvc@tmp
297 \endgroup
298 \protected\def\ekvc@setup@splitmacro#1%
299 {%
300 \ekv@ifdefined{ekvc@split@#1}{}%
301 {%
302 \begingroup
303 \def\ekvc@tmp##1%
304 {%
305 \ekv@unexpanded\expandafter
306 {\csname ekvc@splitmark@\the\numexpr#1-##1\relax\endcsname}%
307 }%
308 \edef\ekvc@tmp
309 {%
310 \long\gdef
311 \ekv@unexpanded\expandafter{\csname ekvc@split@#1\endcsname}%
312 ####1%
313 \ekvc@tmp{6}####2%
314 \ekvc@tmp{5}####3%
315 \ekvc@tmp{4}####4%
316 \ekvc@tmp{3}####5%
317 \ekvc@tmp{2}####6%
318 \ekvc@tmp{1}####7%
319 \ekvc@tmp{0}####8%
320 ####9%
321 {%
322 \ekv@unexpanded\expandafter
323 {\csname ekvc@split@\the\numexpr#1-7\relax\endcsname}%
324 ####1{{####2}{####3}{####4}{####5}{####6}{####7}{####8}####9}%
325 }%
326 }%
327 \ekvc@tmp
328 \endgroup
329 }%
330 }
331 \protected\long\def\ekvcHashAndUse#1#2%
332 {%
333 \let\ekvc@helpers@needed\@firstoftwo
334 \ekvc@ifdefined#1%
335 {\ekvc@err@already@defined#1}%
336 {\ekvcHashAndUse@#1{}{#2}}%
337 }
338 \protected\long\def\ekvcHashAndUse@#1#2#3%
339 {%
340 \edef\ekvc@set{\string#1}%
341 \ekvc@SetupHashKeys{#3}%
342 \ekvc@helpers@needed
343 {%
344 \ekvc@any@long\edef#1##1%
345 {%
346 \expandafter\ekvc@ekvset@pre@expander\expandafter{\ekvc@set}%
347 \ekv@unexpanded{\ekvc@hash@pack@argument}%
348 \ekv@unexpanded\expandafter{\ekvc@initials\ekvc@stop#2}%
349 }%
350 }%
351 {%
352 \ekvc@any@long\edef#1##1%
353 {%
354 \expandafter\ekvc@ekvset@pre@expander\expandafter{\ekvc@set}%
355 \ekv@unexpanded{#2}%
356 \ekv@unexpanded\expandafter{\ekvc@initials\ekvc@stop}%
357 }%
358 }%
359 }
360 \protected\long\def\ekvcHashAndForward#1#2#3%
361 {%
362 \let\ekvc@helpers@needed\@firstoftwo
363 \ekvc@ifdefined#1%
364 {\ekvc@err@already@defined#1}%
365 {\ekvcHashAndUse@#1{{#2}}{#3}}%
366 }
367 \protected\long\def\ekvcHash#1#2#3%
368 {%
369 \let\ekvc@helpers@needed\@secondoftwo
370 \ekvc@ifdefined#1%
371 {\ekvc@err@already@defined#1}%
372 {%
373 \expandafter
374 \ekvcHashAndUse@\expandafter#1\csname ekvc@\string#1\endcsname{#2}%
375 \ekvc@any@long\expandafter\def\csname ekvc@\string#1\endcsname
376 ##1\ekvc@stop
377 {#3}%
378 }%
379 }
380 \long\def\ekvc@hash@pack@argument#1\ekvc@stop#2{#2{#1}}
381 \protected\long\def\ekvc@SetupHashKeys
382 {%
383 \let\ekvc@any@long\ekv@empty
384 \let\ekvc@initials\ekv@empty
385 \ekvpParse@unsafe\ekvp@@p@ekvc@setup@hashkeys
386 }
387 \ekvpNewParser{ekvc@setup@hashkeys}
388 \ekvpDefType{ekvc@setup@hashkeys}{short}
389 {%
390 \let\ekvc@long\ekv@empty
391 \expandafter\ekvc@SetupHashKeys@a\detokenize{#1}\ekv@stop{#3}%
392 }
393 \ekvpDefType{ekvc@setup@hashkeys}{long}
394 {%
395 \let\ekvc@long\long
396 \let\ekvc@any@long\long
397 \expandafter\ekvc@SetupHashKeys@a\detokenize{#1}\ekv@stop{#3}%
398 }
399 \ekvpDefNoType{ekvc@setup@hashkeys}
400 {%
401 \let\ekvc@long\ekv@empty
402 \expandafter\ekvc@SetupHashKeys@a\detokenize{#1}\ekv@stop{#3}%
403 }
404 \ekvpDefNoValue{ekvc@setup@hashkeys}
405 {%
406 \begingroup
407 \edef\ekvc@tmp{\detokenize{#1}}%
408 \expandafter
409 \endgroup
410 \ifx\ekvc@tripledots\ekvc@tmp
411 \ekvc@SetupHashKeys@unknown
412 \let\ekvc@any@long\long
413 \else
414 \ekvc@err@value@required{#1}%
415 \fi
416 }
417 \protected\long\def\ekvc@SetupHashKeys@a#1\ekv@stop
418 {%
419 \begingroup\expandafter\endgroup
420 \expandafter\ekvc@SetupHashKeys@b\csname ekvc@hashmark@#1\endcsname{#1}%
421 }
422 \protected\long\def\ekvc@SetupHashKeys@b#1#2#3%
423 {%
424 \long\def\ekvc@tmp##1##2#1##3{##2#1{##1}}%
425 \ifx\ekvc@long\long
426 \else
427 \expandafter\let\csname ekvc@\ekvc@set(#2)\endcsname\ekvc@tmp
428 \edef\ekvc@tmp##1%
429 {%
430 \ekv@unexpanded\expandafter{\csname ekvc@\ekvc@set(#2)\endcsname}%
431 {##1}%
432 }%
433 \fi
434 \ekvlet\ekvc@set{#2}\ekvc@tmp
435 \edef\ekvc@initials{\ekv@unexpanded\expandafter{\ekvc@initials#1{#3}}}%
436 \ekvc@setup@hashmacro{#2}%
437 }
438 \def\ekvc@SetupHashKeys@unknown#1%
439 {%
440 \protected\def\ekvc@SetupHashKeys@unknown
441 {%
442 \ekvletunknown\ekvc@set\ekvc@hash@unknown@kv
443 \ekvletunknownNoVal\ekvc@set\ekvc@hash@unknown@k
444 \edef\ekvc@initials{\ekv@unexpanded\expandafter{\ekvc@initials#1{}}}%
445 \ekvc@setup@hashmacro{...}%
446 }%
447 \long\def\ekvc@hash@unknown@kv##1##2##3##4#1##5{##4#1{##5, {##3} = {##1} }}%
448 \long\def\ekvc@hash@unknown@k##1##2##3#1##4{##3#1{##4, {##2} }}%
449 }
450 \begingroup\expandafter\endgroup
451 \expandafter\ekvc@SetupHashKeys@unknown
452 \csname ekvc@hashmark@\ekvc@tripledots\endcsname
453 \protected\def\ekvc@setup@hashmacro#1%
454 {%
455 \ekv@ifdefined{ekvc@fasthash@#1}{}%
456 {%
457 \begingroup
458 \edef\ekvc@tmp
459 {%
460 \long\gdef
461 \ekv@unexpanded\expandafter{\csname ekvc@fasthash@#1\endcsname}%
462 ####1%
463 \ekv@unexpanded\expandafter
464 {\csname ekvc@hashmark@#1\endcsname}%
465 ####2####3\ekv@unexpanded{\ekvc@stop}%
466 {####2}%
467 \long\gdef
468 \ekv@unexpanded\expandafter{\csname ekvc@safehash@#1\endcsname}%
469 ####1%
470 {%
471 \ekv@unexpanded\expandafter
472 {\csname ekvc@@safehash@#1\endcsname}%
473 ####1\ekv@unexpanded{\ekvc@mark}{}%
474 \ekv@unexpanded\expandafter
475 {%
476 \csname ekvc@hashmark@#1\endcsname{}%
477 \ekvc@mark{\ekvc@err@missing@hash{#1}}\ekvc@stop
478 }%
479 }%
480 \long\gdef
481 \ekv@unexpanded\expandafter
482 {\csname ekvc@@safehash@#1\endcsname}%
483 ####1%
484 \ekv@unexpanded\expandafter
485 {\csname ekvc@hashmark@#1\endcsname}%
486 ####2####3\ekv@unexpanded{\ekvc@mark}####4####5%
487 \ekv@unexpanded{\ekvc@stop}%
488 {%
489 ####4{####2}%
490 }%
491 \long\gdef\ekv@unexpanded\expandafter
492 {\csname ekvc@fastsplithash@#1\endcsname}%
493 ####1%
494 \ekv@unexpanded\expandafter
495 {\csname ekvc@hashmark@#1\endcsname}%
496 ####2####3\ekv@unexpanded{\ekvc@stop}####4%
497 {%
498 ####4{####2}%
499 }%
500 \long\gdef\ekv@unexpanded\expandafter
501 {\csname ekvc@safesplithash@#1\endcsname}####1%
502 {%
503 \ekv@unexpanded\expandafter
504 {\csname ekvc@@safesplithash@#1\endcsname}%
505 ####1\ekv@unexpanded{\ekvc@mark\ekvc@safe@after@hash}%
506 \ekv@unexpanded\expandafter
507 {%
508 \csname ekvc@hashmark@#1\endcsname{}%
509 \ekvc@mark
510 {\ekvc@err@missing@hash{#1}\ekvc@safe@after@hash}%
511 \ekvc@stop
512 }%
513 }%
514 \long\gdef\ekv@unexpanded\expandafter
515 {\csname ekvc@@safesplithash@#1\endcsname}%
516 ####1%
517 \ekv@unexpanded\expandafter
518 {\csname ekvc@hashmark@#1\endcsname}%
519 ####2####3\ekv@unexpanded{\ekvc@mark}####4####5%
520 \ekv@unexpanded{\ekvc@stop}%
521 {%
522 ####4{####2}%
523 }%
524 }%
525 \ekvc@tmp
526 \endgroup
527 }%
528 }
529 \long\def\ekvcValue#1%
530 {%
531 \ekv@unexpanded
532 \expandafter\ekvcValue@\detokenize{#1}\ekvc@stop
533 }
534 \def\ekvcValue@#1\ekvc@stop
535 {%
536 \ekv@ifdefined{ekvc@safehash@#1}%
537 {\csname ekvc@safehash@#1\endcsname}%
538 {\ekvc@err@unknown@hash{#1}\@firstoftwo{{}}}%
539 }
540 \long\def\ekvcValueFast#1#2%
541 {\csname ekvc@fasthash@\detokenize{#1}\endcsname#2\ekvc@stop}
542 \long\def\ekvcValueSplit#1%
543 {\expandafter\ekvcValueSplit@\detokenize{#1}\ekvc@stop}
544 \def\ekvcValueSplit@#1\ekvc@stop
545 {%
546 \ekv@ifdefined{ekvc@safesplithash@#1}%
547 {\csname ekvc@safesplithash@#1\endcsname}%
548 {\ekvc@err@unknown@hash{#1}\ekvcValueSplit@recover}%
549 }
550 \long\def\ekvcValueSplit@recover#1#2{#2{}}
551 \long\def\ekvc@safe@after@hash#1#2%
552 {%
553 #2{#1}%
554 }
555 \long\def\ekvcValueSplitFast#1#2%
556 {\csname ekvc@fastsplithash@\detokenize{#1}\endcsname#2\ekvc@stop}
557 \long\def\ekvc@safehash@#1{\ekvc@err@empty@hash{}}
558 \long\def\ekvc@fasthash@#1\ekvc@stop{\ekvc@err@empty@hash}
559 \long\def\ekvc@safesplithash@#1#2{\ekvc@err@empty@hash#2{}}
560 \long\def\ekvc@fastsplithash@#1\ekvc@stop#2{\ekvc@err@empty@hash#2{}}
561 \ekvpNewParser{ekvc@setup@secondary}
562 \ekvpValueAlwaysRequired{ekvc@setup@secondary}
563 \protected\long\def\ekvcSecondaryKeys#1%
564 {%
565 \edef\ekvc@set{\string#1}%
566 \let\ekvc@long\ekv@empty
567 \ekvpParse@unsafe\ekvp@@p@ekvc@setup@secondary
568 }
569 \protected\long\def\ekvcChange#1%
570 {%
571 \ekvifdefinedset{\string#1}%
572 {%
573 \ekvc@ifdefined#1%
574 {\ekvc@change#1}%
575 {\ekvc@err@no@key@macro#1\@gobble}%
576 }%
577 {\ekvc@err@no@key@macro#1\@gobble}%
578 }
579 \protected\def\ekvc@change#1%
580 {\expandafter\ekvc@change@a\meaning#1\ekv@stop#1}
581 \def\ekvc@change@a#1%
582 {%
583 \protected\def\ekvc@change@a##1#1##2->##3\ekv@stop
584 {%
585 \ekvc@change@iflong{##1}%
586 {\ekvc@change@b{}}%
587 {\ekvc@change@b{\long}}%
588 }%
589 }
590 \expandafter\ekvc@change@a\expandafter{\detokenize{macro:}}
591 \protected\def\ekvc@change@b#1#2%
592 {\expandafter\ekvc@change@c\expandafter{#2\ekvc@stop}{#1}#2}
593 \ekv@exparg{\protected\long\def\ekvc@change@c#1#2#3#4}%
594 {%
595 \expandafter\iffalse\expandafter{\expandafter{\expandafter\fi
596 \ekvset{\string#3}{#4}%
597 \ekvc@change@d{#2}{#3}%
598 #1%
599 }}%
600 }
601 \protected\def\ekvc@change@d#1#2%
602 {#1\edef#2##1{\expandafter\ekvc@change@e\iffalse}\fi}
603 \long\def\ekvc@change@e#1\ekvc@stop
604 {\ekv@unexpanded{#1}##1\ekv@unexpanded\expandafter{\iffalse}\fi}
605 \def\ekvc@change@iflong#1%
606 {%
607 \protected\def\ekvc@change@iflong##1%
608 {\expandafter\ekv@ifempty\expandafter{\ekvc@change@iflong@##1#1}}%
609 \def\ekvc@change@iflong@##1#1{}
610 }
611 \expandafter\ekvc@change@iflong\expandafter{\string\long}
612 \long\def\ekvcPass#1#2%
613 {%
614 \ekvifdefined{\string#1}{#2}%
615 {\csname\ekv@name{\string#1}{#2}\endcsname}%
616 {\ekvc@err@unknown@key@or@macro{#1}{#2}\@gobble}%
617 }
618 \ekvpDefPrefixLet{ekvc@setup@secondary}{long}\ekvc@long\long\ekv@empty
619 \ekvpDefType{ekvc@setup@secondary}{meta}
620 {\ekvc@type@meta\ekv@exparg\ekvc@long{##1}\ekvlet{#1}{#3}}
621 \ekvpDefType{ekvc@setup@secondary}{nmeta}
622 {\ekvc@assert@not@long\ekvc@type@meta\ekv@expargtwice{}{}\ekvletNoVal{#1}{#3}}
623 \protected\long\def\ekvc@type@meta#1#2#3#4#5#6%
624 {%
625 #1\ekvc@type@meta@{\ekvmorekv{#6}}{#2}{#3}%
626 #4\ekvc@set{#5}\ekvc@tmp
627 }
628 \protected\long\def\ekvc@type@meta@#1#2#3{#2\def\ekvc@tmp#3{#1}}
629 \ekvpDefType{ekvc@setup@secondary}{alias}
630 {%
631 \ekvc@assert@not@long
632 \ekvc@assert@k@or@p@defined{#3}%
633 \ekvifdefined\ekvc@set{#3}{\ekvletkv\ekvc@set{#1}\ekvc@set{#3}}{}%
634 \ekvifdefinedNoVal\ekvc@set{#3}{\ekvletkvNoVal\ekvc@set{#1}\ekvc@set{#3}}{}%
635 }
636 \ekvpDefType{ekvc@setup@secondary}{default}
637 {%
638 \ekvc@assert@defined{#1}%
639 \ekvc@assert@not@long
640 \edef\ekvc@tmp
641 {%
642 \ekv@unexpanded\expandafter
643 {\csname\ekv@name\ekvc@set{#1}\endcsname{#3}}%
644 }%
645 \ekvletNoVal\ekvc@set{#1}\ekvc@tmp
646 }
647 \def\ekvc@enum@name#1#2#3{ekvc#1(#2)#3}
648 \ekvpDefType{ekvc@setup@secondary}{enum}
649 {\ekvpAssertTwoValues{#3}\ekvc@type@enum{#1}#3}
650 \ekvpDefType{ekvc@setup@secondary}{choice}
651 {\ekvpAssertTwoValues{#3}\ekvc@type@choice{#1}#3}
652 \protected\long\def\ekvc@type@enum@or@choice#1#2%
653 {%
654 \ekvc@assert@defined{#2}%
655 \ekvc@long\edef\ekvc@tmp##1%
656 {%
657 \ekv@unexpanded{\expandafter\ekvc@h@enum\detokenize}{##1}%
658 \ekv@unexpanded{\ekvc@stop}%
659 {\ekvc@set}{#1}%
660 }%
661 \ekvlet\ekvc@set{#1}\ekvc@tmp
662 }
663 \protected\long\def\ekvc@type@enum#1#2%
664 {%
665 \ekvc@type@enum@or@choice{#1}{#2}%
666 \def\ekvc@tmp{0}%
667 \expandafter\ekvcsvloop\expandafter
668 {\expandafter\ekvc@type@enum@\csname\ekv@name\ekvc@set{#2}\endcsname{#1}}%
669 }
670 \ekv@exparg{\protected\long\def\ekvc@type@enum@#1#2#3}%
671 {%
672 \expandafter\expandafter\expandafter\edef\expandafter
673 \csname\ekvc@enum@name\ekvc@set{#2}{\detokenize{#3}}\endcsname
674 {\ekv@unexpanded{#1}{\ekvc@tmp}}%
675 \edef\ekvc@tmp{\the\numexpr\ekvc@tmp+1\relax}%
676 }
677 \protected\long\def\ekvc@type@choice#1#2%
678 {%
679 \ekvc@type@enum@or@choice{#1}{#2}%
680 \ekv@exparg
681 {%
682 \expandafter\ekvparse\expandafter
683 {%
684 \expandafter\ekvc@type@choice@k
685 \csname\ekv@name\ekvc@set{#2}\endcsname{#1}%
686 }%
687 }%
688 {%
689 \expandafter\ekvc@type@choice@p
690 \csname\ekv@name\ekvc@set{#2}\endcsname{#1}%
691 }%
692 }
693 \ekv@exparg{\protected\long\def\ekvc@type@choice@p#1#2#3#4}%
694 {%
695 \expandafter\expandafter\expandafter\edef\expandafter
696 \csname\ekvc@enum@name\ekvc@set{#2}{\detokenize{#3}}\endcsname
697 {\ekv@unexpanded{#1{#4}}}%
698 }
699 \protected\long\def\ekvc@type@choice@k#1#2#3{\ekvc@type@choice@p#1{#2}{#3}{#3}}
700 \ekv@if@lastnamedcs
701 {%
702 \ekv@exparg{\def\ekvc@h@enum#1\ekvc@stop#2#3}%
703 {%
704 \expandafter\ifcsname\ekvc@enum@name{#2}{#3}{#1}\endcsname
705 \expandafter\ekvc@h@enum@\lastnamedcs
706 \fi
707 \ekvc@err@unknown@enum{#2}{#3}{#1}%
708 }
709 \def\ekvc@h@enum@#1\fi\ekvc@err@unknown@enum#2#3#4%
710 {%
711 \fi
712 \ifx#1\relax
713 \ekvc@err@unknown@enum{#2}{#3}{#4}%
714 \expandafter\@gobble
715 \fi
716 #1%
717 }
718 }
719 {%
720 \def\ekvc@h@enum#1%
721 {%
722 \def\ekvc@h@enum##1\ekvc@stop##2##3%
723 {%
724 \expandafter\ekvc@h@enum@
725 \csname\ifcsname#1\endcsname#1\else relax\fi\endcsname
726 {##2}{##3}{##1}%
727 }%
728 }
729 \expandafter\ekvc@h@enum\expandafter{\ekvc@enum@name{#2}{#3}{#1}}
730 \def\ekvc@h@enum@#1#2#3#4%
731 {%
732 \ifx#1\relax
733 \ekvc@err@unknown@enum{#2}{#3}{#4}%
734 \expandafter\@gobble
735 \fi
736 #1%
737 }
738 }
739 \let\ekvc@enum@name\ekvc@undefined
740 \ekvpDefType{ekvc@setup@secondary}{aggregate}
741 {%
742 \let\ekvc@type@aggregate@ifexpanded\@secondoftwo
743 \ekvc@type@aggregate{#1}{#3}%
744 }
745 \ekvpDefType{ekvc@setup@secondary}{e-aggregate}
746 {%
747 \let\ekvc@type@aggregate@ifexpanded\@firstoftwo
748 \ekvc@type@aggregate{#1}{#3}%
749 }
750 \protected\long\def\ekvc@type@aggregate#1#2%
751 {%
752 \ekvc@assert@not@long
753 \ekvpAssertTwoValues{#2}%
754 \ekvc@type@aggregate@a
755 \ekvc@type@aggregate@long\ekvc@type@aggregate@short
756 {#1}#2%
757 }
758 \protected\long\def\ekvc@type@aggregate@a#1#2#3#4#5%
759 {%
760 \ekvc@assert@defined{#4}%
761 \def\ekvc@type@aggregate@tmp##1##2{#5}%
762 \begingroup\expandafter\endgroup
763 \expandafter\ekvc@type@aggregate@b
764 \csname\ekv@name\ekvc@set{#4}\expandafter\endcsname
765 \csname ekvc@\ekvc@set(#4)\endcsname
766 #1#2%
767 {#3}%
768 }
769 \protected\long\def\ekvc@type@aggregate@b#1#2#3#4%
770 {%
771 \ekvc@type@aggregate@check@long#1#2%
772 {#3#1}%
773 {#4#2}%
774 }
775 \protected\long\def\ekvc@type@aggregate@check@long#1#2%
776 {\expandafter\ekvc@type@aggregate@check@long@a\detokenize{#2}\ekv@stop#1}
777 \protected\long\def\ekvc@type@aggregate@check@long@a#1\ekv@stop#2%
778 {%
779 \def\ekvc@type@aggregate@check@long@@##1#1{}%
780 \expandafter\ekvc@type@aggregate@check@long@b\meaning#2\ekv@stop{#1}%
781 }
782 \protected\def\ekvc@type@aggregate@check@long@b#1\ekv@stop#2%
783 {\expandafter\ekv@ifempty\expandafter{\ekvc@type@aggregate@check@long@@#1#2}}
784 \protected\long\def\ekvc@type@aggregate@long#1%
785 {%
786 \begingroup\expandafter\endgroup\expandafter
787 \ekvc@type@aggregate@long@
788 \csname\ekvc@extract@mark#1\expandafter\endcsname
789 \expandafter{\ekvc@type@aggregate@tmp{##3}{##1}}%
790 }
791 \protected\long\def\ekvc@type@aggregate@long@#1#2#3%
792 {%
793 \ekvc@type@aggregate@ifexpanded
794 {%
795 \long\def\ekvc@type@aggregate@tmp##1##2#1##3%
796 {\ekv@expanded{\ekv@unexpanded{##2#1}{#2}}}%
797 }%
798 {\long\def\ekvc@type@aggregate@tmp##1##2#1##3{##2#1{#2}}}%
799 \ekvlet\ekvc@set{#3}\ekvc@type@aggregate@tmp
800 }
801 \protected\long\def\ekvc@type@aggregate@short#1#2%
802 {%
803 \begingroup\expandafter\endgroup\expandafter
804 \ekvc@type@aggregate@short@
805 \csname\ekvc@extract@mark#1\expandafter\endcsname
806 \csname ekvc@\ekvc@set(#2)\expandafter\endcsname
807 \expandafter{\ekvc@type@aggregate@tmp{##3}{##1}}%
808 {#2}%
809 }
810 \protected\long\def\ekvc@type@aggregate@short@#1#2#3#4%
811 {%
812 \ekvdef\ekvc@set{#4}{#2{##1}}%
813 \ekvc@type@aggregate@ifexpanded
814 {\long\def#2##1##2#1##3{\ekv@expanded{\ekv@unexpanded{##2#1}{#3}}}}%
815 {\long\def#2##1##2#1##3{##2#1{#3}}}%
816 }
817 \ekvpDefType{ekvc@setup@secondary}{process}
818 {%
819 \ekvpAssertTwoValues{#3}%
820 \ifx\ekvc@long\long
821 \ekv@fi@firstoftwo
822 \fi
823 \@secondoftwo
824 {%
825 \ekvc@type@aggregate@a
826 \ekvc@type@process@long\ekvc@type@process@long
827 }%
828 {%
829 \ekvc@type@aggregate@a
830 \ekvc@type@process@short\ekvc@type@process@short
831 }%
832 {#1}#3%
833 }
834 \protected\long\def\ekvc@type@process@long#1%
835 {%
836 \begingroup\expandafter\endgroup\expandafter
837 \ekvc@type@process@long@
838 \csname\ekvc@extract@mark#1\expandafter\endcsname
839 \expandafter{\ekvc@type@aggregate@tmp{##3}{##1}}%
840 }
841 \protected\long\def\ekvc@type@process@long@#1#2#3%
842 {%
843 \long\def\ekvc@type@aggregate@tmp##1##2#1##3{#2##2#1{##3}}%
844 \ekvlet\ekvc@set{#3}\ekvc@type@aggregate@tmp
845 }
846 \protected\long\def\ekvc@type@process@short#1#2%
847 {%
848 \begingroup\expandafter\endgroup\expandafter
849 \ekvc@type@process@short@
850 \csname\ekvc@extract@mark#1\expandafter\endcsname
851 \csname ekvc@\ekvc@set(#2)\expandafter\endcsname
852 \expandafter{\ekvc@type@aggregate@tmp{##3}{##1}}%
853 {#2}%
854 }
855 \protected\long\def\ekvc@type@process@short@#1#2#3#4%
856 {%
857 \ekvdef\ekvc@set{#4}{#2{##1}}%
858 \long\def#2##1##2#1##3{#3##2#1{##3}}%
859 }
860 \ekvpDefType{ekvc@setup@secondary}{flag-bool}
861 {%
862 \ekvc@assert@not@long
863 \ekvpAssertOneValue{#3}%
864 \ifdefined#3\else\ekvcFlagNew#3\fi
865 \ekvdef\ekvc@set{#1}%
866 {%
867 \ekv@ifdefined{ekvc@flag@set@##1}%
868 {%
869 \csname ekvc@flag@set@##1\expandafter\endcsname
870 \ekvcFlagHeight#3\ekv@stop#3%
871 }%
872 {\ekvc@err@invalid@bool{##1}}%
873 }%
874 }
875 \protected\def\ekvc@type@flag#1#2#3%
876 {%
877 \ekvc@assert@not@long
878 \ekvpAssertOneValue{#3}%
879 \ifdefined#3\else\ekvcFlagNew#3\fi
880 \ekv@exparg{\ekvdefNoVal\ekvc@set{#2}}{#1#3}%
881 }
882 \ekvpDefType{ekvc@setup@secondary}{flag-true}
883 {\ekvc@type@flag\ekvcFlagSetTrue{#1}{#3}}
884 \ekvpDefType{ekvc@setup@secondary}{flag-false}
885 {\ekvc@type@flag\ekvcFlagSetFalse{#1}{#3}}
886 \ekvpDefType{ekvc@setup@secondary}{flag-raise}
887 {\ekvc@type@flag\ekvcFlagRaise{#1}{#3}}
888 \def\ekvc@flag@name{ekvcf\string}
889 \def\ekvc@flag@namescheme#1#2{ekvch#2#1}
890 \let\ekvcFlagHeight\number
891 \protected\def\ekvcFlagNew#1%
892 {%
893 \edef#1%
894 {%
895 \ekv@unexpanded{\ekvc@flag@height}%
896 \ekv@unexpanded\expandafter{\csname\ekvc@flag@name#1\endcsname}%
897 }%
898 \ekv@expargtwice
899 {\expandafter\def\csname\ekvc@flag@name#1\endcsname##1}%
900 {\expandafter\ekvc@flag@namescheme\expandafter{\string#1}{##1}}%
901 }
902 \def\ekvc@flag@height#1%
903 {%
904 \ifcsname#10\endcsname
905 \ekvc@flag@height@1\ekv@stop#1%
906 \fi
907 \@firstofone{0} % leave this space
908 }
909 \def\ekvc@flag@height@#1\ekv@stop#2\fi\@firstofone#3%
910 {%
911 \fi
912 \ifcsname#2{#1}\endcsname
913 \expandafter\ekvc@flag@height@\the\numexpr#1+1\relax\ekv@stop#2%
914 \fi
915 \@firstofone{#1}%
916 }
917 \ekv@exparg{\def\ekvcFlagRaise#1}%
918 {%
919 \expandafter\expandafter\expandafter\@gobble\expandafter
920 \csname\ekvc@flag@namescheme{\string#1}{\ekvcFlagHeight#1}\endcsname
921 }
922 \def\ekvcFlagSetTrue#1%
923 {\expandafter\ekvc@flag@set@true\ekvcFlagHeight#1\ekv@stop#1}
924 \def\ekvcFlagSetFalse#1%
925 {\expandafter\ekvc@flag@set@false\ekvcFlagHeight#1\ekv@stop#1}
926 \def\ekvc@flag@set@true#1%
927 {%
928 \def\ekvc@flag@set@true##1\ekv@stop##2%
929 {%
930 \ifodd##1
931 \ekv@fi@gobble
932 \fi
933 \@firstofone{\expandafter\@gobble\csname#1\endcsname}%
934 }%
935 \def\ekvc@flag@set@false##1\ekv@stop##2%
936 {%
937 \ifodd##1
938 \ekv@fi@firstofone
939 \fi
940 \@gobble{\expandafter\@gobble\csname#1\endcsname}%
941 }%
942 }
943 \expandafter\ekvc@flag@set@true\expandafter
944 {\ekvc@flag@namescheme{\string#2}{#1}}
945 \def\ekvcFlagIf#1%
946 {%
947 \ifodd#1%
948 \ekv@fi@firstoftwo
949 \fi
950 \@secondoftwo
951 }
952 \ekv@exparg{\def\ekvcFlagIfRaised#1}%
953 {%
954 \expandafter\ifcsname\ekvc@flag@namescheme{\string#1}0\endcsname
955 \ekv@fi@firstoftwo
956 \fi
957 \@secondoftwo
958 }
959 \protected\def\ekvcFlagReset#1%
960 {\expandafter\ekvc@flag@reset\csname\ekvc@flag@name#1\endcsname{}}
961 \protected\def\ekvcFlagResetGlobal#1%
962 {\expandafter\ekvc@flag@reset\csname\ekvc@flag@name#1\endcsname\global}
963 \protected\def\ekvc@flag@reset#1#2%
964 {%
965 \ifcsname#10\endcsname
966 #2\expandafter\let\csname#10\endcsname\ekvc@undefined
967 \ekvc@flag@reset@1\ekv@stop#1{#2}%
968 \fi
969 }
970 \protected\def\ekvc@flag@reset@#1\ekv@stop#2#3\fi
971 {%
972 \fi
973 \ifcsname#2{#1}\endcsname
974 #3\expandafter\let\csname#2{#1}\endcsname\ekvc@undefined
975 \expandafter\ekvc@flag@reset@\the\numexpr#1+1\relax\ekv@stop#2{#3}%
976 \fi
977 }
978 \def\ekvcFlagGetHeight#1%
979 {\expandafter\ekvc@flag@get@height@single\ekvcFlagHeight#1\ekv@stop}
980 \long\def\ekvc@flag@get@height@single#1\ekv@stop#2{#2{#1}}
981 \def\ekvcFlagGetHeights#1%
982 {%
983 \ekvc@flag@get@heights#1\ekv@stop{}%
984 }
985 \def\ekvc@flag@get@heights#1%
986 {%
987 \ekv@gobbleto@stop#1\ekvc@flag@get@heights@done\ekv@stop
988 \expandafter\ekvc@flag@get@heights@\ekvcFlagHeight#1\ekv@stop
989 }
990 \def\ekvc@flag@get@heights@#1\ekv@stop#2\ekv@stop#3%
991 {\ekvc@flag@get@heights#2\ekv@stop{#3{#1}}}
992 \long\def\ekvc@flag@get@heights@done
993 \ekv@stop
994 \expandafter\ekvc@flag@get@heights@\ekvcFlagHeight\ekv@stop\ekv@stop#1#2%
995 {#2{#1}}
996 \def\ekvc@extract@mark#1{\expandafter\ekvc@extract@mark@\meaning#1\ekv@stop}
997 \begingroup
998 \lccode`;=`#
999 \lccode`/=`\\
1000 \lowercase{\endgroup
1001 \def\ekvc@extract@mark@#1:#2/#3 ;#4\ekv@stop{#3}%
1002 }
1003 \ekv@exparg{\def\ekvc@assert@not@long}%
1004 {\ekvpAssertIfNot{\ifx\ekvc@long\long}{`long' not accepted}}
1005 \long\def\ekvc@assert@defined#1%
1006 {\ekvpAssertTF{\ekvifdefined\ekvc@set{#1}}{undefined key `#1'}}
1007 \long\def\ekvc@assert@k@or@p@defined#1%
1008 {%
1009 \ekvpAssertTF
1010 {\ekvifdefined\ekvc@set{#1}\@firstoftwo{\ekvifdefinedNoVal\ekvc@set{#1}}}%
1011 {undefined key `#1'}%
1012 }
1013 \protected\long\def\ekvc@errm#1{\errmessage{expkv-cs Error: #1}}
1014 \protected\long\def\ekvc@err@toomany#1%
1015 {\ekvc@errm{Too many keys for macro `\string#1'}}
1016 \protected\long\def\ekvc@err@value@required#1%
1017 {\ekvc@errm{Missing value for key `\ekv@unexpanded{#1}'}}
1018 \protected\long\def\ekvc@err@already@defined#1%
1019 {\ekvc@errm{Macro `\string#1' already defined}}
1020 \protected\long\def\ekvc@err@no@key@macro#1%
1021 {\ekvc@errm{\string#1 is no key=val macro}}
1022 \ekv@exparg{\long\def\ekvc@err#1}{\ekverr{expkv-cs}{#1}}
1023 \long\def\ekvc@err@unknown@hash#1{\ekvc@err{unknown hash `#1'}}
1024 \long\def\ekvc@err@missing@hash#1{\ekvc@err{hash `#1' not found}}
1025 \long\def\ekvc@err@empty@hash{\ekvc@err{empty hash}}
1026 \def\ekvc@err@invalid@bool#1{\ekvc@err{invalid boolean value `#1'}}
1027 \long\def\ekvc@err@unknown@key@or@macro#1#2%
1028 {\ekvc@err{unknown key `#2' for #1}}
1029 \def\ekvc@err@unknown@enum#1#2#3%
1030 {\ekvc@err{unknown choice `#3' for `#2' in #1}}
1031 \catcode`\@=\ekvc@tmp
1032 %%
1033 %%
1034 %% End of file `expkv-cs.tex'.