summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/interfaces/interfaces-pgfkeys.sty
blob: a25a16f2dd709534e2ab4f882f839a5b30a4f1a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
%%
%% This is file `interfaces-pgfkeys.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% interfaces.dtx  (with options: `pgfkeys')
%% 
%% This is a generated file.
%% 
%% interfaces : 2010/11/21 v2.3 - interfaces : interfaces with keys for other packages (FC)
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3 of this license or (at your option) any later
%% version. The latest version of this license is in
%%    http://www.latex-project.org/lppl.txt
%% 
%% This work consists of the main source file interfaces.dtx
%% and the derived files
%%     interfaces.sty, interfaces.pdf, interfaces.ins,
%%     interfaces-base.sty,
%%     interfaces-LaTeX.sty,
%%     interfaces-tikz.sty,
%%     interfaces-titlesec.sty,
%%     interfaces-hyperref.sty,
%%     interfaces-bookmark.sty,
%%     interfaces-hypbmsec.sty,interfaces-hypbmsec.code.tex,
%%     interfaces-fancyhdr.sty,
%%     interfaces-marks.sty,
%%     interfaces-tocloft.sty,
%%     interfaces-makecell.sty,
%%     interfaces-enumitem.sty,
%%     interfaces-truncate.sty,
%%     interfaces-appendix.sty,
%%     interfaces-embedfile.sty,
%%     interfaces-environ.sty,
%%     interfaces-umrand.sty,
%%     interfaces-scrlfile.sty,
%%     interfaces-pgfkeys.sty,
%%     interfaces-etoolbox.sty
%% 
%% interfaces: interfaces with keys for other packages (FC)
%% Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr>
%% 
\ProvidesPackage{interfaces-pgfkeys}
   [2010/11/21 v2.3 pgfkeys handlers definitions (FC)]
\RequirePackage{interfaces-base}
\ifdefined\pgfkeys@ifexecutehandler % pgf version 2.1
\def\itf@pgfkeys{%
   \global\let\pgfkeys@unpack       \itf@pgfkeys@unpack
   \global\let\pgfkeys@case@three   \itf@pgfkeys@case@three
   \global\let\pgfkeys@case@three@handleall\itf@pgfkeys@case@three@handleall
}% \itf@pgfkeys
\else
\def\itf@pgfkeys{%
   \global\let\pgfkeys@unpack       \itf@pgfkeys@unpack
   \global\let\pgfkeys@case@three   \itf@pgfkeys@case@three
   \global\let\pgfkeysaddvalue      \itf@pgfkeysaddvalue
   \global\let\pgfkeys@exp@call     \itf@pgfkeys@exp@call
}% \itf@pgfkeys
\fi
\AtBeginDocument{%
   \itf@pgfkeys
   \let\itf@pgfkeys\relax
}% AtBeginDocument
\providecommand*\pgfkeysmeaning[1]{%
   \pgfkeysifdefined{#1}
      {\expandafter\meaning\csname pgfk@#1\endcsname}
      {\meaning\@undefined}%
}%
\def\pgfkeysvalueof@unexpanded#1{%
   \unexpanded\expandafter\expandafter\expandafter{%
                        \csname pgfk@#1\endcsname}%
}% \pgfkeysvalueof@unexpanded
\ifdefined\pgfkeys@ifexecutehandler \else % pgf v2.1: bug fixed
\def\itf@pgfkeysaddvalue#1#2#3{% (pgf v2.0: bug in pgfkeys.code.tex)
   \edef\pgfkeys@global@temp{%
      \unexpanded{#2}%
      \ifcsname pgfk@#1\endcsname
         \unexpanded\expandafter\expandafter\expandafter{%
                           \csname pgfk@#1\endcsname}%
      \fi
      \unexpanded{#3}}%
   \pgfkeyslet{#1}\pgfkeys@global@temp
}% \itf@pgfkeysaddvalue
\fi
\ifdefined\pgfkeys@ifexecutehandler \long \fi % pgf version 2.1
\def\pgfkeysEsetvalue#1#2{%
   \expandafter\edef\csname pgfk@#1\endcsname{#2}%
}% \pgfkeysEsetvalue
\ifdefined\pgfkeys@ifexecutehandler \long \fi % pgf v2.1
\def\pgfkeysEaddvalue#1#2#3{% \csepreappto{pgfk@#1}{#2}{#3}
   \edef\pgfkeys@global@temp{%
      #2%
      \ifcsname pgfk@#1\endcsname
         \unexpanded\expandafter\expandafter\expandafter{%
            \csname pgfk@#1\endcsname}%
      \fi
      #3}%
   \pgfkeyslet{#1}\pgfkeys@global@temp
}% \pgfkeysEaddvalue
%% missed a pair of braces around the argument in pgfkeys.code.tex (pgf v2.0)
%% ( the code could break if it contains = or , )
\ifdefined\pgfkeys@ifexecutehandler\else % (bug corrected in pgf v2.1)
   \def\itf@pgfkeys@exp@call#1{\pgfkeysalso{\pgfkeyscurrentpath={#1}}}%
\fi
%% The value is now checked by \itf@pgfkeys@default@blank@required:
\ifdefined\pgfkeys@ifexecutehandler \long \fi % pgf v2.1
\def\itf@pgfkeys@unpack#1=#2=#3\pgfkeys@stop{%
  \pgfkeys@spdef\pgfkeyscurrentkey{#1}%
  \edef\pgfkeyscurrentkey{\pgfkeyscurrentkey}%
  \ifx\pgfkeyscurrentkey\pgfkeys@empty
    % Skip
  \else%
    \pgfkeys@add@path@as@needed
    \pgfkeys@spdef\pgfkeyscurrentvalue{#2}%
    \itf@pgfkeys@default@blank@required % <FC>
                     \pgfkeyscurrentkey % <FC>
                      \pgfkeys@case@one % <FC>
  \fi
}% \itf@pgfkeys@unpack
\def\itf@pgfkeys@default@blank@required#1#2{%
   \ifx\pgfkeyscurrentvalue\pgfkeysnovalue@text% Hmm... no value
      \pgfkeysifdefined{#1/.@def}%
         {\pgfkeysgetvalue{#1/.@def}\pgfkeyscurrentvalue}
         {}% no default, so leave it
   \fi
   \ifx\pgfkeyscurrentvalue\@empty
      \pgfkeysifdefined{#1/.@blank}
         {\pgfkeysgetvalue{#1/.@blank}\pgfkeyscurrentvalue}
         {}% no /.blank specified
   \ifx\pgfkeyscurrentvalue\pgfkeysnovalue@text% in case /.blank -> \pgfkeysnovalue
      \pgfkeysifdefined{#1/.@def}%
         {\pgfkeysgetvalue{#1/.@def}\pgfkeyscurrentvalue}
         {}% no default, so leave it
   \fi\fi
   \ifx\pgfkeyscurrentvalue\pgfkeysvaluerequired
      \pgfkeysvalueof{/errors/value required/.@cmd}\pgfkeyscurrentkey
                                                   \pgfkeyscurrentvalue
                                                   \pgfeov
   \else
      #2%
   \fi
}% \itf@pgfkeys@default@blank@required
%% To handle the cases of: /handler/.default= /handler/.blank= /handler/.value required,
%% it is necessary to redefine \pgfkeys@case@three
\def\itf@pgfkeys@case@three{%
   \pgfkeys@split@path
   \pgfkeysifdefined{/handlers/\pgfkeyscurrentname/.@cmd}
      {%
      \itf@pgfkeys@default@blank@required{/handlers/\pgfkeyscurrentname}%
         {\pgfkeysgetvalue{/handlers/\pgfkeyscurrentname/.@cmd}\pgfkeys@code
          \expandafter\pgfkeys@code\pgfkeyscurrentvalue\pgfeov}%
      }
     \pgfkeys@unknown % no handler, thus the key is unknown
}% \itf@pgfkeys@case@three
\ifdefined\pgfkeys@ifexecutehandler
   \let\itf@pgfkeys@case@three@handleall \itf@pgfkeys@case@three
\fi
\itf@pgfkeys
\pgfkeys{%
   /handlers/.alias/.code=\itf@pgfkeys@ifaliasexists{#1}{%
      \pgfkeysedef\pgfkeyscurrentpath{%
                  \noexpand\pgfkeysalso{\pgfkeysdefaultpath#1={##1}}}},%
      /handlers/.alias/.value required,%
   /handlers/.blank/.code=\pgfkeyssetvalue{\pgfkeyscurrentpath/.@blank}{#1},%
      /handlers/.blank/.default=\pgfkeysnovalue,%
}% /.alias   and  /.blank
\def\itf@pgfkeys@ifaliasexists#1#2{%
   \pgfkeysifdefined{\pgfkeysdefaultpath#1/.@cmd}{#2}
      {\pgfkeysifdefined{\pgfkeysdefaultpath#1}
         {#2}
         {\itf@pgfkeys@aliaserror{#1}}}%
}% \itf@pgfkeys@ifaliasexists
\def\itf@pgfkeys@aliaserror#1{%
   \PackageError{interfaces-pgfkeys}
      {You want the key \pgfkeyscurrentpath\space
      \MessageBreak to be an alias for \pgfkeysdefaultpath#1
      \MessageBreak but the key \pgfkeysdefaultpath#1
      \MessageBreak is not defined!}\@eha\@gobble
}% \itf@pgfkeys@aliaserror
\pgfkeys{
   /handlers/.alias*/.code=\itf@pgfkeys@ifaliasexists{#1}{%
      \pgfkeysedef\pgfkeyscurrentpath{\noexpand\pgfkeysalso{\pgfkeysdefaultpath#1={##1}}}%
      \@tfor\x:=+-*\do{%
         \pgfkeysifdefined{\pgfkeysdefaultpath#1\x/.@cmd}
            {\pgfkeysedef{\pgfkeyscurrentpath\x}{%
               \noexpand\pgfkeysalso{\pgfkeysdefaultpath#1\x={##1}}}}
            {}%
      }},%
   /handlers/.alias*/.value required,%
}% /.alias*
\pgfkeys{%
   /handlers/.is private/.code=\pgfkeysdef\pgfkeyscurrentpath{%
      \PackageError{#1}{Key \pgfkeyscurrentkey\space is private
      \MessageBreak and should not be modified}\@ehd},%
   /handlers/.is private to class/.code=\pgfkeysdef\pgfkeyscurrentpath{%
      \ClassError{#1}{Key \pgfkeyscurrentkey\space is private
      \MessageBreak and should not be modified}\@ehd}%
}% /.is private
\def\itf@pgfkeys@choice[#1]#2#3{%
   \pgfkeys{\pgfkeyscurrentpath/.cd,%
      .is choice,%
      #2/.code={#3},%
      .default/.expanded=\@firstoftwo#1}%
}% \itf@pgfkeys@choice
\pgfkeys{%
   /handlers/.true/.code=\itf@pgfkeys@choice[{true}{false}]{true}{#1},%
   /handlers/.false/.code=\itf@pgfkeys@choice[{true}{false}]{false}{#1},%
   /handlers/.on/.code=\itf@pgfkeys@choice[{on}{off}]{on}{#1},%
   /handlers/.off/.code=\itf@pgfkeys@choice[{on}{off}]{off}{#1},%
}% /.true /.false
\pgfkeys{%
   /handlers/.store in cs/.code=\pgfkeysdef\pgfkeyscurrentpath{\csdef{#1}{##1}},%
   /handlers/.estore in cs/.code=\pgfkeysdef\pgfkeyscurrentpath{\csedef{#1}{##1}},%
}% /.store in cs
%% /.store as code handlers
\pgfkeys{%
   /handlers/.store as code/.code={%
      \pgfkeysedef\pgfkeyscurrentpath{%
         \noexpand\pgfkeyslet{\pgfkeyscurrentpath}\noexpand\pgfkeyscurrentvalue}%
      \pgfkeyslet\pgfkeyscurrentpath\@empty
      \pgfkeyslet{\pgfkeyscurrentpath/.@def}\@empty
      \@tfor\x:=#1\do{%
         \pgfkeysedef{\pgfkeyscurrentpath\x}{%
            \noexpand\pgfkeysalso{\pgfkeyscurrentpath/.expanded={%
               \noexpand\pgfkeysvalueof@unexpanded{\pgfkeyscurrentpath}%
               \noexpand\unexpanded{##1}}}}%
      \pgfkeyslet{\pgfkeyscurrentpath\x/.@def}\@empty
      }},%
   /handlers/.store as code/.default=*+,%
}% /.store as code
\pgfkeys{%
   /handlers/.estore as code/.code={%
      \pgfkeysedef\pgfkeyscurrentpath{%
         \noexpand\pgfkeysEsetvalue{\pgfkeyscurrentpath}{##1}}%
      \pgfkeyslet\pgfkeyscurrentpath\@empty
      \@tfor\x:=#1\do{%
         \pgfkeysedef{\pgfkeyscurrentpath\x}{%
            \noexpand\pgfkeysalso{\pgfkeyscurrentpath/.expanded={%
               \noexpand\pgfkeysvalueof@unexpanded{\pgfkeyscurrentpath}%
               \noexpand\unexpanded{##1}}}}%
      }},%
   /handlers/.estore as code/.default=*+,%
}% /.estore as code
\pgfkeys{%
   /handlers/.store as code in cs/.code={%
      \pgfkeysdef\pgfkeyscurrentpath{%
         \ifx\pgfkeyscurrentvalue\pgfkeysnovalue@text
         \else\csdef{#1}{##1}\fi}%
      \@tfor\x:=*+\do{%
         \pgfkeysedef{\pgfkeyscurrentpath\x}{%
            \noexpand\pgfkeysalso{\pgfkeyscurrentpath/.expanded={%
               \noexpand\ifcsname#1\endcsname
                  \noexpand\expandafter\noexpand\expandonce
                     \noexpand\csname#1\endcsname
               \noexpand\fi
               \noexpand\unexpanded{##1}}}}%
         \pgfkeyslet{\pgfkeyscurrentpath\x/.@def}\@empty
      }},%
   /handlers/.store as code in cs/.value required,%
}% /.store as code in cs
\pgfkeys{%
   /handlers/.estore as code in cs/.code={%
      \pgfkeysdef\pgfkeyscurrentpath{%
         \ifx\pgfkeyscurrentvalue\pgfkeysnovalue@text
         \else\csedef{#1}{##1}\fi}%
      \@tfor\x:=*+\do{%
         \pgfkeysedef{\pgfkeyscurrentpath\x}{%
            \noexpand\pgfkeysalso{\pgfkeyscurrentpath/.expanded={%
               \noexpand\ifcsname#1\endcsname
                  \noexpand\expandafter\noexpand\expandonce
                        \noexpand\csname#1\endcsname
               \noexpand\fi
               \noexpand\unexpanded{##1}}}}%
      }},%  default if \pgfkeysnovalue which expands to \@empty
   /handlers/.estore as code in cs/.value required,%
}% /.estore as code in cs
\protected\def\itf@pgfk@color#1#2\@nil{%
   \ifx\@let@token\color
      \def\pgfkeyscurrentvalue{#2}%
   \else\ifx\@let@token\normalcolor
      \def\pgfkeyscurrentvalue{default}%
   \else\ifx\@let@token\pgfkeysnovalue
      \def\pgfkeyscurrentvalue{default}%
   \fi\fi\fi
}% \itf@pgfk@color
\pgfkeys{%
   /handlers/.store as color/.code=%
      \pgfkeysedef\pgfkeyscurrentpath{%
         \futurelet\noexpand\@let@token\itf@pgfk@color
                        ##1\noexpand\pgfkeysnovalue\noexpand\@nil
         \noexpand\pgfkeyslet{\pgfkeyscurrentpath}\noexpand\pgfkeyscurrentvalue}%
}% /.store as color
\pgfkeys{%
   /handlers/.store as color in cs/.code=%
      \pgfkeysedef\pgfkeyscurrentpath{%
         \futurelet\noexpand\@let@token\itf@pgfk@color
                        ##1\noexpand\pgfkeysnovalue\noexpand\@nil
         \cslet{#1}\pgfkeyscurrentvalue}%
}% /.store as color in cs
\protected\def\itf@pgfk@colorcmd#1\@nil{%
   \ifcat @\noexpand\@let@token
      \def\pgfkeyscurrentvalue{\color{#1}}%
   \else\ifcat 0\noexpand\@let@token
      \def\pgfkeyscurrentvalue{\color{#1}}%
   \else\ifx\@let@token\@nil
      \let\pgfkeyscurrentvalue\normalcolor
   \fi\fi\fi
}% \itf@pgfk@colorcmd
\pgfkeys{%
   /handlers/.store as color command/.code=%
      \pgfkeysedef\pgfkeyscurrentpath{%
         \futurelet\noexpand\@let@token\itf@pgfk@colorcmd
                        ##1\noexpand\@nil
         \noexpand\pgfkeyslet{\pgfkeyscurrentpath}\noexpand\pgfkeyscurrentvalue}%
      \pgfkeyssetvalue{\pgfkeyscurrentpath/.@def}\normalcolor
}% /.store as color command
\pgfkeys{%
   /handlers/.store as color command in cs/.code=%
      \pgfkeysedef\pgfkeyscurrentpath{%
         \futurelet\noexpand\@let@token\itf@pgfk@colorcmd
                        ##1\noexpand\@nil
         \cslet{#1}\noexpand\pgfkeyscurrentvalue}%
      \pgfkeyssetvalue{\pgfkeyscurrentpath/.@def}\normalcolor
}% /.store as color command in cs
\pgfkeys{%
   /handlers/.store as number/.code={%
      \pgfkeysedef\pgfkeyscurrentpath{%
         \noexpand\pgfkeyssetvalue{\pgfkeyscurrentpath}{\numexpr##1\relax}}%
      \pgfkeyslet\pgfkeyscurrentpath\z@
      \pgfkeyslet{\pgfkeyscurrentpath/.@def}\z@
      \pgfkeyslet{\pgfkeyscurrentpath/.@blank}\z@
      \@tfor\x:=#1\do{%
         \pgfkeysedef{\pgfkeyscurrentpath\x}{%
            \noexpand\pgfkeysalso{\pgfkeyscurrentpath/.expanded=%
               \noexpand\pgfkeysvalueof@unexpanded{\pgfkeyscurrentpath}%
               \x
               \numexpr\unexpanded{##1}\relax}}%
         \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@def}{\if*\x\@ne\else\z@\fi}%
         \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@blank}{\if*\x\@ne\else\z@\fi}%
      }},%
   /handlers/.store as number/.default=+-*,%
}% /.store as number
\pgfkeys{%
   /handlers/.estore as number/.code={%
      \pgfkeysedef\pgfkeyscurrentpath{%
         \noexpand\pgfkeyssetvalue{\pgfkeyscurrentpath}{%
                     \noexpand\number\numexpr##1\relax}}%
      \pgfkeyslet\pgfkeyscurrentpath\z@
      \pgfkeyslet{\pgfkeyscurrentpath/.@def}\z@
      \pgfkeyslet{\pgfkeyscurrentpath/.@blank}\z@
      \@tfor\x:=#1\do{%
         \pgfkeysedef{\pgfkeyscurrentpath\x}{%
            \noexpand\pgfkeysalso{\pgfkeyscurrentpath=%
               \noexpand\pgfkeysvalueof{\pgfkeyscurrentpath}%
               \x
               \numexpr##1\relax}}%
      }},%
   /handlers/.estore as number/.default=+-*,%
}% /.estore as number
\pgfkeys{%
   /handlers/.store as number in cs/.code={%
      \pgfkeysdef\pgfkeyscurrentpath{%
         \ifx\pgfkeyscurrentvalue\pgfkeysnovalue@text
         \else\csdef{#1}{\numexpr##1\relax}\fi}%
      \pgfkeyslet{\pgfkeyscurrentpath/.@blank}\z@
      \@tfor\x:=+-*\do{%
         \pgfkeysedef{\pgfkeyscurrentpath\x}{%
            \letcs\noexpand\pgfkeys@temp{%
               \noexpand\ifcsname#1\endcsname
                  #1\noexpand\else\if*\x @ne\else z@\fi\noexpand\fi}%
         \edef\noexpand\pgfkeys@temp{%
            \noexpand\pgfkeysalso{\pgfkeyscurrentpath={%
               \noexpand\expandonce\noexpand\pgfkeys@temp
               \x
               \numexpr\noexpand\unexpanded{##1}\relax}}%
         }\noexpand\pgfkeys@temp}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@def}{\if*\x\@ne\else\z@\fi}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@blank}{\if*\x\@ne\else\z@\fi}%
   }},%
   /handlers/.store as number in cs/.value required,%
}% /.store as number in cs
\pgfkeys{%
   /handlers/.estore as number in cs/.code={%
      \pgfkeysdef\pgfkeyscurrentpath{%
         \ifx\pgfkeyscurrentvalue\pgfkeysnovalue@text
         \else\csedef{#1}{\number\numexpr##1\relax}\fi}%
   \pgfkeyslet{\pgfkeyscurrentpath/.@blank}\z@
   \@tfor\x:=+-*\do{%
      \pgfkeysedef{\pgfkeyscurrentpath\x}{%
         \noexpand\pgfkeysalso{\pgfkeyscurrentpath=%
            \noexpand\csname\noexpand\ifcsname#1\endcsname
               #1\noexpand\else\if*\x @ne\else z@\fi\noexpand\fi\endcsname
            \x
            \numexpr##1\relax}}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@def}{\if*\x\@ne\else\z@\fi}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@blank}{\if*\x\@ne\else\z@\fi}%
   }},%
   /handlers/.estore as number in cs/.value required,%
}% /.estore as number in cs
\pgfkeys{%
   /handlers/.store in counter cs/.code={%
      \pgfkeysdef\pgfkeyscurrentpath{%
         \ifx\pgfkeyscurrentvalue\pgfkeysnovalue@text
         \else\csname#1\endcsname\numexpr##1\relax\fi}%
      \pgfkeyslet{\pgfkeyscurrentpath/.@blank}\z@
   \@tfor\x:=+-*\do{%
      \pgfkeysedef{\pgfkeyscurrentpath\x}{%
         \noexpand\pgfkeysalso{\pgfkeyscurrentpath=%
            \noexpand\csname\noexpand\ifcsname#1\endcsname
            #1\noexpand\else\if*\x @ne\else z@\fi\noexpand\fi\endcsname
            \x
            \numexpr##1\relax}}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@def}{\if*\x\@ne\else\z@\fi}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@blank}{\if*\@ne\else\z@\fi}%
   }},%
   /handlers/.store in counter cs/.value required,%
}% /.store in counter cs
\pgfkeys{%
   /handlers/.store as glue/.code={%
      \pgfkeysedef\pgfkeyscurrentpath{%
         \noexpand\pgfkeyssetvalue{\pgfkeyscurrentpath}{\glueexpr##1\relax}}%
      \pgfkeyslet\pgfkeyscurrentpath\z@skip
      \pgfkeyslet{\pgfkeyscurrentpath/.@def}\z@skip
      \pgfkeyslet{\pgfkeyscurrentpath/.@blank}\z@skip
      \@tfor\x:=#1\do{%
         \pgfkeysedef{\pgfkeyscurrentpath\x}{%
            \noexpand\pgfkeysalso{\pgfkeyscurrentpath/.expanded=%
               \noexpand\pgfkeysvalueof@unexpanded{\pgfkeyscurrentpath}%
               \x
               \if*\x\noexpand\itf@units@scale##1!
               \else\glueexpr\noexpand\unexpanded{##1}\relax\fi}}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@def}{\if*\x\@ne\else\z@skip\fi}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@blank}{\if*\x\@ne\else\z@skip\fi}%
      }},%
   /handlers/.store as glue/.default=+-*,%
}% /.store as glue
\pgfkeys{%
   /handlers/.estore as glue/.code={%
      \pgfkeysedef{\pgfkeyscurrentpath}{%
         \noexpand\pgfkeysEsetvalue{\pgfkeyscurrentpath}{%
                     \noexpand\the\glueexpr##1\relax}}%
      \pgfkeyslet\pgfkeyscurrentpath\z@skip
      \pgfkeyslet{\pgfkeyscurrentpath/.@def}\z@skip
      \pgfkeyslet{\pgfkeyscurrentpath/.@blank}\z@skip
      \@tfor\x:=#1\do{%
         \pgfkeysedef{\pgfkeyscurrentpath\x}{%
            \noexpand\pgfkeysalso{\pgfkeyscurrentpath=%
               \noexpand\pgfkeysvalueof{\pgfkeyscurrentpath}\x
               \if*\x \noexpand\itf@units@scale##1!
               \else\glueexpr##1\relax\fi}}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@def}{\if*\x\@ne\else\z@skip\fi}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@blank}{\if*\x\@ne\else\z@skip\fi}%
      }},%
   /handlers/.estore as glue/.default=+-*,%
}% /.estore as glue
\pgfkeys{%
   /handlers/.store as dimen/.code={%
      \pgfkeysedef\pgfkeyscurrentpath{%
         \noexpand\pgfkeyssetvalue{\pgfkeyscurrentpath}{\dimexpr##1\relax}}%
      \pgfkeyslet\pgfkeyscurrentpath\z@
      \pgfkeyslet{\pgfkeyscurrentpath/.@def}\z@
      \pgfkeyslet{\pgfkeyscurrentpath/.@blank}\z@
      \@tfor\x:=#1\do{%
         \pgfkeysedef{\pgfkeyscurrentpath\x}{%
            \noexpand\pgfkeysalso{\pgfkeyscurrentpath/.expanded={%
               \noexpand\pgfkeysvalueof@unexpanded{\pgfkeyscurrentpath}%
               \x
               \if*\x \noexpand\itf@units@scale##1!
               \else\dimexpr\noexpand\unexpanded{##1}\relax\fi}}}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@def}{\if*\x\@ne\else\z@\fi}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@blank}{\if*\x\@ne\else\z@\fi}%
      }},%
   /handlers/.store as dimen/.default=+-*,%
}% /.store as dimen
\pgfkeys{%
   /handlers/.estore as dimen/.code={%
      \pgfkeysedef\pgfkeyscurrentpath{%
         \noexpand\pgfkeysEsetvalue{\pgfkeyscurrentpath}{%
                  \noexpand\the\dimexpr##1\relax}}%
      \pgfkeyslet\pgfkeyscurrentpath\z@
      \pgfkeyslet{\pgfkeyscurrentpath/.@def}\z@
      \pgfkeyslet{\pgfkeyscurrentpath/.@blank}\z@
      \@tfor\x:=#1\do{%
         \pgfkeysedef{\pgfkeyscurrentpath\x}{%
            \noexpand\pgfkeysalso{\pgfkeyscurrentpath=%
               \noexpand\pgfkeysvalueof{\pgfkeyscurrentpath}\x
               \if*\x   \noexpand\itf@units@scale##1!
               \else    \dimexpr##1\relax\fi}}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@def}{\if*\x\@ne\else\z@\fi}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@blank}{\if*\x\@ne\else\z@\fi}%
      }},%
   /handlers/.estore as dimen/.default=+-*,%
}% /.estore as dimen
\pgfkeys{%
   /handlers/.store as glue in cs/.code={%
      \pgfkeysdef\pgfkeyscurrentpath{%
         \ifx\pgfkeyscurrentvalue\pgfkeysnovalue@text
         \else\csdef{#1}{\glueexpr##1\relax}\fi}%
      \pgfkeyslet{\pgfkeyscurrentpath/.@blank}\z@skip
      \@tfor\x:=+-*\do{%
         \pgfkeysedef{\pgfkeyscurrentpath\x}{%
            \letcs\noexpand\pgfkeys@temp{%
               \noexpand\ifcsname#1\endcsname
                  #1\noexpand\else z@skip\noexpand\fi}%
            \edef\noexpand\pgfkeys@temp{%
               \noexpand\pgfkeysalso{\pgfkeyscurrentpath={%
                  \noexpand\expandonce\noexpand\pgfkeys@temp
                  \x
                  \if*\x\noexpand\itf@units@scale##1!
                  \else\glueexpr\noexpand\unexpanded{##1}\relax\fi}}%
            }\noexpand\pgfkeys@temp}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@def}{\if*\x\@ne\else\z@skip\fi}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@blank}{\if*\x\@ne\else\z@skip\fi}%
   }},%
   /handlers/.store as glue in cs/.value required,%
}% /.store as glue in cs
\pgfkeys{%
   /handlers/.estore as glue in cs/.code={%
      \pgfkeysdef\pgfkeyscurrentpath{%
         \ifx\pgfkeyscurrentvalue\pgfkeysnovalue@text
         \else\csedef{#1}{\the\glueexpr##1\relax}\fi}%
      \pgfkeyslet{\pgfkeyscurrentpath/.@blank}\z@skip
      \@tfor\x:=+-*\do{%
         \pgfkeysedef{\pgfkeyscurrentpath\x}{%
            \noexpand\pgfkeysalso{\pgfkeyscurrentpath=%
               \noexpand\csname\noexpand\ifcsname#1\endcsname
                  #1\noexpand\else z@skip\noexpand\fi\endcsname
               \x
               \if*\x\noexpand\itf@units@scale##1!
               \else\glueexpr##1\relax\fi}}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@def}{\if*\x\@ne\else\z@skip\fi}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@blank}{\if*\x\@ne\else\z@skip\fi}%
   }},%
   /handlers/.etore as glue in cs/.value required,%
}% /.estore as glue in cs
\pgfkeys{%
   /handlers/.store in skip cs/.code={%
      \pgfkeysdef\pgfkeyscurrentpath{%
         \ifx\pgfkeyscurrentvalue\pgfkeysnovalue@text
         \else\csname#1\endcsname\glueexpr##1\relax\fi}%
      \pgfkeyslet{/\pgfkeyscurrentpath/.@blank}\z@skip
      \@tfor\x:=+-*\do{%
         \pgfkeysedef{\pgfkeyscurrentpath\x}{%
            \noexpand\pgfkeysalso{\pgfkeyscurrentpath=%
               \csname#1\endcsname  % should have been defined as a skip (not expandable)
               \x
               \if*\x\noexpand\itf@units@scale##1!
               \else\glueexpr##1\relax\fi}}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@def}{\if*\x\@ne\else\z@skip\fi}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@blank}{\if*\x\@ne\else\z@skip\fi}%
   }},%
   /handlers/.store in skip cs/.value required,%
}% /.store in skip cs
\pgfkeys{%
   /handlers/.store as dimen in cs/.code={%
      \pgfkeysdef\pgfkeyscurrentpath{%
         \ifx\pgfkeyscurrentvalue\pgfkeysnovalue@text
         \else\csdef{#1}{\dimexpr##1\relax}\fi}%
      \pgfkeyslet{\pgfkeyscurrentpath/.@blank}\z@
      \@tfor\x:=+-*\do{%
         \pgfkeysedef{\pgfkeyscurrentpath\x}{%
            \letcs\noexpand\pgfkeys@temp{%
               \ifcsname#1\endcsname#1\else z@\fi}%
            \edef\noexpand\pgfkeys@temp{%
            \noexpand\pgfkeysalso{\pgfkeyscurrentpath={%
               \noexpand\expandonce\noexpand\pgfkeys@temp
               \x
               \if*\x\noexpand\itf@units@scale##1!
               \else\dimexpr\noexpand\unexpanded{##1}\fi}}%
            }\noexpand\pgfkeys@temp}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@def}{\if*\x\@ne\else\z@\fi}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@blank}{\if*\x\@ne\else\z@\fi}%
   }},%
   /handlers/.store as dimen in cs/.value required,%
}% /.store as dimen in cs {csname}{+-}
\pgfkeys{%
   /handlers/.estore as dimen in cs/.code={%
      \pgfkeysdef\pgfkeyscurrentpath{%
         \ifx\pgfkeyscurrentvalue\pgfkeysnovalue@text
         \else \@defaultunits\itf@sk ##1pt\relax\@nnil
               \csedef{#1}{\the\dimexpr\itf@sk\relax}\fi}%
      \pgfkeyslet{\pgfkeyscurrentpath/.@blank}\z@
      \@tfor\x:=+-*\do{%
         \pgfkeysedef{\pgfkeyscurrentpath\x}{%
            \noexpand\ifcsname#1\endcsname
               \noexpand\@defaultunits\itf@sk
                  \noexpand\csname#1\endcsname pt\relax\noexpand\@nnil
            \noexpand\else\itf@sk\z@\noexpand\fi
            \if*\x
               \itf@sk\dimexpr\itf@sk*\noexpand\itf@units@scale##1!\relax
            \else
               \noexpand\@defaultunits\@tempdima ##1pt\relax\noexpand\@nnil
               \advance\itf@sk\x\@tempdima
            \fi
            \noexpand\pgfkeysalso{\pgfkeyscurrentpath=\itf@sk}}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@def}{\if*\x\@ne\else\z@\fi}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@blank}{\if*\x\@ne\else\z@\fi}%
   }},%
   /handlers/.etore as dimen in cs/.value required,%
}% /.estore as dimen in cs
\pgfkeys{%
   /handlers/.store in dimen cs/.code={%
      \pgfkeysdef\pgfkeyscurrentpath{%
         \ifx\pgfkeyscurrentvalue\pgfkeysnovalue@text
         \else\csname#1\endcsname\dimexpr##1\relax\fi}%
      \pgfkeyslet{/\pgfkeyscurrentpath/.@blank}\z@
      \@tfor\x:=+-*\do{%
         \pgfkeysedef{\pgfkeyscurrentpath\x}{%
            \if*\x \else
            \noexpand\@defaultunits\itf@sk ##1pt\relax\noexpand\@nnil
            \fi
            \noexpand\pgfkeysalso{\pgfkeyscurrentpath=%
               \csname#1\endcsname % has been defined as a dimen (not expandable)
               \x
               \if*\x \noexpand\itf@units@scale##1!
               \else\itf@sk\fi}}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@def}{\if*\x\@ne\else\z@\fi}%
      \pgfkeysEsetvalue{\pgfkeyscurrentpath\x/.@blank}{\if*\x\@ne\else\z@\fi}%
   }},%
   /handlers/.store in dimen cs/.value required,%
}% /.store in dimen cs
\pgfkeys{%
   /handlers/.is multiple choice/.code=%
      \pgfkeys{\pgfkeyscurrentpath/.cd,%
      .unknown/.style={/errors/unknown choice value=\pgfkeyscurrentkey\pgfkeyscurrentvalue},%
      .code=\expandafter\pgfkeys\expandafter{\pgfkeyscurrentkey/.cd,####1}%
      },%
   /handlers/.is multiple choice/.value forbidden,%
}% /.is multiple choice
\pgfkeys{%
   /handlers/.is enum/.code={%
      \itf@cnt\z@
      \@for\x:=\pgfkeyscurrentvalue\do{%
         \pgfkeysedef{\pgfkeyscurrentpath/\x}{%
            \noexpand\pgfkeyssetvalue{\pgfkeyscurrentpath}{\x}%
            \noexpand\pgfkeyssetvalue{\pgfkeyscurrentpath/.number}{\the\itf@cnt}}%
         \ifnum\itf@cnt=\z@
            \pgfkeyslet{\pgfkeyscurrentpath/.@def}\x
            \pgfkeyslet{\pgfkeyscurrentpath/.@blank}\x
         \fi
         \advance\itf@cnt\@ne
      }%
      \pgfkeysalso{\pgfkeyscurrentpath/.is choice}},%
   /handlers/.is enum/.value required,%
}% /.is enum
\endinput
%%
%% End of file `interfaces-pgfkeys.sty'.