diff options
author | Karl Berry <karl@freefriends.org> | 2014-02-27 00:01:50 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-02-27 00:01:50 +0000 |
commit | 90ae413a94da014dbf7a6a8ab584f7c668483a5a (patch) | |
tree | 4e0528a2b2fb2004988e7fc804ea2f1354f1f5d5 /Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-pgfcalendar.tex | |
parent | 800cc56380d1edfe567a6a66bef13e8950eb2b0c (diff) |
pgf 3.0.0
git-svn-id: svn://tug.org/texlive/trunk@33057 c570f23f-e606-0410-a88d-b1316a301751
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.tex | 26 |
1 files changed, 13 insertions, 13 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 318c01cf384..220955bc514 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 @@ -108,7 +108,7 @@ This section describes the package |pgfcalendar|. set to |01| for January. The \meta{day macro} gets assigned a two-digit number representing - the day of the month (again with a possible leading zero). + the day of the month (again, possibly with a leading zero). To convert a Julian day number to an ISO-date you use code like the following: @@ -130,7 +130,7 @@ This section describes the package |pgfcalendar|. \example |\pgfcalendarjuliantoweekday{2454115}{\mycount}| sets |\mycount| to - \pgfcalendarjuliantoweekday{2454115}{\mycount}\the\mycount. + \pgfcalendarjuliantoweekday{2454115}{\mycount}\the\mycount\ (it was a Sunday). \end{command} @@ -142,8 +142,8 @@ This section describes the package |pgfcalendar|. This command is used to execute code based on properties of \meta{date}. The \meta{date} must be a date in ISO-format. For this date, the \meta{tests} are checked (to be detailed later) - and if one of the tests applied, the \meta{code} is - executed. If none of the tests applies, the \meta{else code} is + and if one of the tests succeeds, the \meta{code} is + executed. If none of the tests succeeds, the \meta{else code} is executed. \example |\pgfcalendarifdate{2007-02-07}{Wednesday}{Is a Wednesday}{Is not a Wednesday}| @@ -164,7 +164,7 @@ This section describes the package |pgfcalendar|. \itemcalendaroption{Sunday} as above. \itemcalendaroption{workday} Passed by Mondays, Tuesdays, Wednesdays, Thursdays, and Fridays. - \itemcalendaroption{weekend} Passed Saturdays and Sundays. + \itemcalendaroption{weekend} Passed by Saturdays and Sundays. \itemcalendaroption{equals}|=|\meta{reference} The \meta{reference} can be in one of two forms: Either, it is a full ISO format date like |2007-01-01| or the year may be missing as in |12-31|. In the @@ -194,7 +194,7 @@ This section describes the package |pgfcalendar|. For another example, |between=05-01 and 05-07| is true for the days of the first week of May of any year. \itemcalendaroption{day of month}|=|\meta{number} Passed by the day - of month of the \meta{date} is \meta{number}. For example, the test + of month of the \meta{date} that is \meta{number}. For example, the test |day of month=1| is passed by every first of every month. \itemcalendaroption{end of month}\opt{|=|\meta{number}} Passed by the day of month of the \meta{date} that is \meta{number} from the @@ -205,9 +205,9 @@ This section describes the package |pgfcalendar|. \end{itemize} In addition to the above checks, you can also define new checks. To - do so, you must add a new key to the key-value group |pgfcalendar| - using |\define@key|. The job of the code of this new key is to - possibly set the \TeX-if |\ifpgfcalendarmatches| to true (if it is + do so, you must add a new key to the path |/pgf/calendar/| using + the |\pgfkeys| command. The job of the + code of this new key is to possibly set the \TeX-if |\ifpgfcalendarmatches| to true (if it is already true, no action should be taken) to indicate that the \meta{date} passes the test setup by this new key. @@ -229,17 +229,17 @@ This section describes the package |pgfcalendar|. \end{itemize} For example, let us define a new key that checks whether the - \meta{date} is a Workers day (first of May). This can be done as + \meta{date} is a Workers day (May 1st). This can be done as follows: \begin{verbatim} -\define@key{pgfcalendar}{workers day}[] +\pgfkeys{/pgf/calendar/workers day/.code=% { \ifnum\pgfcalendarifdatemonth=5\relax \ifnum\pgfcalendarifdateday=1\relax \pgfcalendarmatchestrue \fi \fi -} +}} \end{verbatim} \end{command} @@ -350,7 +350,7 @@ documentation of this package for more details. \item |\pgfcalendarendjulian| Julian day number of \meta{end date}. \item |\pgfcalendarcurrentjulian| This \TeX\ count holds the - Julian day number of day currently begin rendered. + Julian day number of the day currently being rendered. \item |\pgfcalendarcurrentweekday| The weekday (a number with zero representing Monday) of the current date. \item |\pgfcalendarcurrentyear| The year of the current date. |