diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarycalendar.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarycalendar.code.tex | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarycalendar.code.tex b/Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarycalendar.code.tex index 02b4f00bb6f..f3e8439491f 100644 --- a/Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarycalendar.code.tex +++ b/Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarycalendar.code.tex @@ -7,7 +7,7 @@ % % See the file doc/generic/pgf/licenses/LICENSE for more details. -\ProvidesFileRCS[v\pgfversion] $Header: /cvsroot/pgf/pgf/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarycalendar.code.tex,v 1.3 2013/07/15 12:05:31 tantau Exp $ +\ProvidesFileRCS{tikzlibrarycalendar.code.tex} \pgfutil@usemodule{pgfcalendar} @@ -40,7 +40,7 @@ -% +% % Options affecting some calendars: % @@ -48,7 +48,7 @@ % Shifts and skips % -% Shift between days +% Shift between days \tikzoption{day xshift}{\def\tikz@lib@cal@xshift{#1}} \tikzoption{day yshift}{\def\tikz@lib@cal@yshift{#1}} @@ -72,16 +72,16 @@ \tikzoption{day code}{\def\tikzdaycode{#1}} \tikzoption{day text}{\def\tikzdaytext{#1}} -\tikzoption{days}{\tikzstyle{every day}+=[#1]} -\tikzstyle{every day}=[anchor=base east] +\tikzoption{days}{\tikzset{every day/.append style={#1}}} +\tikzset{every day/.style={anchor=base east}} \tikzoption{month code}{\def\tikzmonthcode{#1}} \tikzoption{month text}{\def\tikzmonthtext{#1}} -\tikzstyle{every month}=[] +\tikzset{every month/.style={}} \tikzoption{year code}{\def\tikzyearcode{#1}} \tikzoption{year text}{\def\tikzyeartext{#1}} -\tikzstyle{every year}=[] +\tikzset{every year/.style={}} \def\tikzdaycode{\node[name=\pgfcalendarsuggestedname,every day]{\tikzdaytext};} \def\tikzmonthcode{\node[every month]{\tikzmonthtext};} @@ -93,7 +93,7 @@ % Internal option for storing the "width" of a calendar as a number of -% days +% days \tikzoption{tikz@lib@cal@width}{\def\tikz@lib@cal@width{#1}} @@ -103,7 +103,7 @@ % Days on a line % -\tikzstyle{day list downward}=[% +\tikzset{day list downward/.style={% execute before day scope={ \ifdate{day of month=1}{\ifdate{equals=\pgfcalendarbeginiso}{} {% @@ -112,11 +112,11 @@ \pgftransformyshift{-\pgf@y} }% }{}% - }, + }, execute after day scope={\pgfmathsetlength{\pgf@y}{\tikz@lib@cal@yshift}\pgftransformyshift{-\pgf@y}}, tikz@lib@cal@width=1 -] -\tikzstyle{day list upward}=[% +}} +\tikzset{day list upward/.style={% execute before day scope={ \ifdate{day of month=1}{\ifdate{equals=\pgfcalendarbeginiso}{} {% @@ -124,11 +124,11 @@ \pgftransformyshift{\tikz@lib@cal@month@yshift}% }% }{}% - }, + }, execute after day scope={\pgftransformyshift\tikz@lib@cal@yshift}, tikz@lib@cal@width=1 -] -\tikzstyle{day list right}=[% +}} +\tikzset{day list right/.style={% execute before day scope={ \ifdate{day of month=1}{\ifdate{equals=\pgfcalendarbeginiso}{} {% @@ -136,12 +136,12 @@ \pgftransformxshift{\tikz@lib@cal@month@xshift}% }% }{}% - }, + }, execute after day scope={\pgftransformxshift\tikz@lib@cal@xshift}, tikz@lib@cal@width=30% not quite right, but close enough in most cases... -] +}} -\tikzstyle{day list left}=[% +\tikzset{day list left/.style={% execute before day scope={ \ifdate{day of month=1}{\ifdate{equals=\pgfcalendarbeginiso}{} {% @@ -150,13 +150,13 @@ \pgftransformxshift{-\pgf@x}% }% }{}% - }, + }, execute after day scope={ \pgfmathsetlength{\pgf@x}{\tikz@lib@cal@xshift} \pgftransformxshift{-\pgf@x}% }, tikz@lib@cal@width=30% not quite right, but close enough in most cases... -] +}} @@ -164,7 +164,7 @@ % Week list % -\tikzstyle{week list}=[% +\tikzset{week list/.style={% execute before day scope={% \ifdate{day of month=1}{\ifdate{equals=\pgfcalendarbeginiso}{} {% @@ -173,7 +173,7 @@ \pgftransformyshift{-\pgf@y} }% }{}% - }, + }, execute at begin day scope={% \pgfmathsetlength\pgf@x{\tikz@lib@cal@xshift}% \pgf@x=\pgfcalendarcurrentweekday\pgf@x% @@ -186,7 +186,7 @@ }{}% }, tikz@lib@cal@width=7 -] +}} @@ -194,7 +194,7 @@ % Month list % -\tikzstyle{month list}=[% +\tikzset{month list/.style={% execute before day scope={% \ifdate{day of month=1}{\ifdate{equals=\pgfcalendarbeginiso}{} {% @@ -219,7 +219,7 @@ }% \let\tikz@lib@cal@month@list@start=\pgf@temp% }{}% - }, + }, execute at begin day scope={% \pgfmathsetlength\pgf@xa{\tikz@lib@cal@xshift}% \pgf@xb=\pgfcalendarcurrentday\pgf@xa% @@ -228,7 +228,7 @@ \pgftransformxshift{\pgf@xb}% }, tikz@lib@cal@width=37 -] +}} @@ -237,17 +237,17 @@ % Month labels % -\tikzstyle{month label left}=[% +\tikzset{month label left/.style={% execute before day scope={\ifdate{day of month=1}{\tikzmonthcode}{}}, every month/.append style={anchor=base east,xshift=-3.5ex} -] +}} -\tikzstyle{month label left vertical}=[% +\tikzset{month label left vertical/.style={% execute before day scope={\ifdate{day of month=1}{\tikzmonthcode}{}}, every month/.append style={anchor=base east,xshift=-4.5ex,yshift=2.25ex,rotate=90} -] - -\tikzstyle{month label right}=[% +}} + +\tikzset{month label right/.style={% execute before day scope={\ifdate{day of month=1}{% {% \pgfmathsetlength{\pgf@xa}{\tikz@lib@cal@xshift}% @@ -256,9 +256,9 @@ execute before day scope={\ifdate{day of month=1}{% \tikzmonthcode% }}{}}, every month/.append style={anchor=base west,xshift=1ex} -] +}} -\tikzstyle{month label right vertical}=[% +\tikzset{month label right vertical/.style={% execute before day scope={\ifdate{day of month=1}{% {% \pgfmathsetlength{\pgf@xa}{\tikz@lib@cal@xshift}% @@ -267,9 +267,9 @@ execute before day scope={\ifdate{day of month=1}{% \tikzmonthcode% }}{}}, every month/.append style={anchor=base west,xshift=2ex,yshift=2.25ex,rotate=-90} -] +}} -\tikzstyle{month label above centered}=[% +\tikzset{month label above centered/.style={% execute before day scope={% \ifdate{day of month=1}{% { @@ -285,9 +285,9 @@ execute before day scope={\ifdate{day of month=1}{% } }{}}, every month/.append style={anchor=base} -] - -\tikzstyle{month label above left}=[% +}} + +\tikzset{month label above left/.style={% execute before day scope={% \ifdate{day of month=1}{% { @@ -298,11 +298,11 @@ execute before day scope={\ifdate{day of month=1}{% } }{}}, every month/.append style={anchor=base west} -] +}} -\tikzstyle{month label above right}=[% +\tikzset{month label above right/.style={% execute before day scope={% \ifdate{day of month=1}{% { @@ -316,9 +316,9 @@ execute before day scope={\ifdate{day of month=1}{% } }{}}, every month/.append style={anchor=base east} -] - -\tikzstyle{month label below centered}=[% +}} + +\tikzset{month label below centered/.style={% execute before day scope={% \ifdate{day of month=1}{% { @@ -334,9 +334,9 @@ execute before day scope={\ifdate{day of month=1}{% } }{}}, every month/.append style={anchor=base} -] - -\tikzstyle{month label below left}=[% +}} + +\tikzset{month label below left/.style={% execute before day scope={% \ifdate{day of month=1}{% { @@ -347,7 +347,7 @@ execute before day scope={\ifdate{day of month=1}{% } }{}}, every month/.append style={anchor=base west} -] +}} @@ -370,37 +370,37 @@ execute before day scope={\ifdate{day of month=1}{% } \def\tikz@lib@cal@handle{% - \let\@next=\tikz@lib@cal@expand% + \let\pgfutil@next=\tikz@lib@cal@expand% \ifx\pgf@let@token;% - \let\@next=\tikz@lib@cal@stop% + \let\pgfutil@next=\tikz@lib@cal@stop% \else% \ifx\pgf@let@token(%) - \let\@next=\tikz@lib@cal@name% + \let\pgfutil@next=\tikz@lib@cal@name% \else% \ifx\pgf@let@token a% - \let\@next=\tikz@lib@cal@at% + \let\pgfutil@next=\tikz@lib@cal@at% \else% \ifx\pgf@let@token[% - \let\@next=\tikz@lib@cal@option% + \let\pgfutil@next=\tikz@lib@cal@option% \else% \ifx\pgf@let@token i% - \let\@next=\tikz@lib@cal@if% + \let\pgfutil@next=\tikz@lib@cal@if% \fi% \fi% \fi% \fi% \fi% - \@next% + \pgfutil@next% } \def\tikz@lib@cal@expand{% \advance\tikz@expandcount by -1% \ifnum\tikz@expandcount<0\relax% \tikzerror{Giving up on this calendar}% - \let\@next=\tikz@lib@cal@end% + \let\pgfutil@next=\tikz@lib@cal@end% \else% - \let\@next=\tikz@lib@cal@@expand + \let\pgfutil@next=\tikz@lib@cal@@expand \fi% - \@next} + \pgfutil@next} \def\tikz@lib@cal@@expand{\expandafter\tikz@lib@cal@scanner\pgf@let@token} @@ -435,14 +435,14 @@ execute before day scope={\ifdate{day of month=1}{% \pgftransformshift{\tikz@node@at}% \expandafter\pgfcalendar\expandafter{\tikz@fig@name}{\tikz@lib@cal@start}{\tikz@lib@cal@end}% {% - \tikz@before@day% + \tikz@before@day% \scope% \tikz@atbegin@day% \tikz@lib@cal@ifs% \tikzdaycode% \tikz@atend@day% \endscope% - \tikz@after@day% + \tikz@after@day% }% \endgroup% } |