summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-pgfcalendar.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-pgfcalendar.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-pgfcalendar.tex20
1 files changed, 19 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-pgfcalendar.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-pgfcalendar.tex
index c22c2c2884a..7e6dae54f53 100644
--- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-pgfcalendar.tex
+++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-pgfcalendar.tex
@@ -112,7 +112,7 @@ This section describes the package |pgfcalendar|.
following:
%
\begin{verbatim}
-\pgfcalendardatetojulian{2454115}{\myyear}{\mymonth}{\myday}
+\pgfcalendarjuliantodate{2454115}{\myyear}{\mymonth}{\myday}
\edef\isodate{\myyear-\mymonth-\myday}
\end{verbatim}
%
@@ -131,6 +131,16 @@ This section describes the package |pgfcalendar|.
\pgfcalendarjuliantoweekday{2454115}{\mycount}\the\mycount\ (it was a Sunday).
\end{command}
+\begin{command}{\pgfcalendareastersunday\marg{year}\marg{counter}}
+ This command computes the date of Easter Sunday as a Julian date and stores
+ it in \meta{counter}.
+
+ \example |\pgfcalendareastersunday{2019}{\mycount}| sets
+ |\mycount| to
+ \pgfcalendareastersunday{2019}{\mycount}\the\mycount, which corresponds to
+ \pgfcalendarjuliantodate{\mycount}{\myyear}{\mymonth}{\myday}%
+ \edef\isodate{\myyear-\mymonth-\myday}\texttt{\isodate}.
+\end{command}
\subsubsection{Checking Dates}
@@ -198,6 +208,14 @@ This section describes the package |pgfcalendar|.
the last day of every month, the test |end of month=2| is passed by
the second last day of every month. If \meta{number} is omitted, it
is assumed to be |1|.
+ \itemcalendaroption{Easter}\opt{|=|\meta{number}} This test checks
+ whether the given date is Easter Sunday. The optional number can
+ be used for offsets from Easter Sunday, e.g.\ |Easter=-3| for
+ Maundy Thursday, |Easter=-2| for Good Friday, |Easter=1| for Easter
+ Monday. Since the dates of other Christian holidays are determined
+ by the date of easter, these can be accessed as well, e.g.\
+ |Easter=39| for Feast of the Ascension, |Easter=49| for Pentecost,
+ and |Easter=50| for Whit Monday.
\end{itemize}
In addition to the above checks, you can also define new checks. To do so,