diff options
author | Norbert Preining <norbert@preining.info> | 2021-05-16 03:00:44 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-05-16 03:00:44 +0000 |
commit | 2fc2609488764102ce43194e9288b7bd8e25f17f (patch) | |
tree | 9cf16b567d06c110c71e2c121c7cf5c16a086f02 /graphics/pgf/base/tex/tikzlibrarycalendar.code.tex | |
parent | ff5439d00ba53d3e4b82d79f78ce65524f3684fd (diff) |
CTAN sync 202105160300
Diffstat (limited to 'graphics/pgf/base/tex/tikzlibrarycalendar.code.tex')
-rw-r--r-- | graphics/pgf/base/tex/tikzlibrarycalendar.code.tex | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/graphics/pgf/base/tex/tikzlibrarycalendar.code.tex b/graphics/pgf/base/tex/tikzlibrarycalendar.code.tex index 73a47f6574..98cdffe154 100644 --- a/graphics/pgf/base/tex/tikzlibrarycalendar.code.tex +++ b/graphics/pgf/base/tex/tikzlibrarycalendar.code.tex @@ -358,7 +358,7 @@ execute before day scope={\ifdate{day of month=1}{% \def\tikz@lib@cal@calendar{% \begingroup% \let\tikz@lib@cal@ifs=\pgfutil@empty% - \tikz@expandcount=1000\relax% + \tikz@resetexpandcount \tikzset{name=,at={(0,0)}}% \let\%=\pgfcalendarshorthand% \tikzset{every calendar/.try}% @@ -370,27 +370,13 @@ execute before day scope={\ifdate{day of month=1}{% } \def\tikz@lib@cal@handle{% - \let\pgfutil@next=\tikz@lib@cal@expand% - \ifx\pgf@let@token;% - \let\pgfutil@next=\tikz@lib@cal@stop% - \else% - \ifx\pgf@let@token(%) - \let\pgfutil@next=\tikz@lib@cal@name% - \else% - \ifx\pgf@let@token a% - \let\pgfutil@next=\tikz@lib@cal@at% - \else% - \ifx\pgf@let@token[% - \let\pgfutil@next=\tikz@lib@cal@option% - \else% - \ifx\pgf@let@token i% - \let\pgfutil@next=\tikz@lib@cal@if% - \fi% - \fi% - \fi% - \fi% - \fi% - \pgfutil@next% + \pgfutil@switch\pgfutil@ifx\pgf@let@token{% + {;}{\let\pgfutil@next\tikz@lib@cal@stop}% + {(}{\let\pgfutil@next\tikz@lib@cal@name}%) + {a}{\let\pgfutil@next\tikz@lib@cal@at}% + {[}{\let\pgfutil@next\tikz@lib@cal@option}%] + {i}{\let\pgfutil@next\tikz@lib@cal@if}% + }{\tikz@resetexpandcount\pgfutil@next}{\tikz@lib@cal@expand}% } \def\tikz@lib@cal@expand{% \advance\tikz@expandcount by -1 |