diff options
Diffstat (limited to 'graphics/pgf/base/doc/text-en/pgfmanual-en-pgfcalendar.tex')
-rw-r--r-- | graphics/pgf/base/doc/text-en/pgfmanual-en-pgfcalendar.tex | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/graphics/pgf/base/doc/text-en/pgfmanual-en-pgfcalendar.tex b/graphics/pgf/base/doc/text-en/pgfmanual-en-pgfcalendar.tex index c35a3b9a5e..2791a6936f 100644 --- a/graphics/pgf/base/doc/text-en/pgfmanual-en-pgfcalendar.tex +++ b/graphics/pgf/base/doc/text-en/pgfmanual-en-pgfcalendar.tex @@ -306,6 +306,10 @@ package (it this package is not loaded, no translation takes place). Furthermore, the |pgfcalendar| package will try to load the |translator-months-dictionary|, if the |translator| package is loaded. +If you want to use the |translator| package, it has to be loaded before the +|pgfcalendar| package or, when you are using the |calendar| \tikzname\ library, +before |tikz|. Otherwise it will not be properly detected. + The net effect of all this is that all dates will be translated to the current language setup in the |translator| package. See the documentation of this package for more details. @@ -380,14 +384,14 @@ package for more details. In a first example, let us create a very simple calendar: It just lists the dates in a certain range. % -\begin{codeexample}[vbox,ignorespaces] +\begin{codeexample}[vbox,ignorespaces,preamble={\usepackage{pgfcalendar}}] \pgfcalendar{cal}{2007-01-20}{2007-02-10}{\pgfcalendarcurrentday\ } \end{codeexample} % Let us now make this a little more interesting: Let us add a line break after each Sunday. % -\begin{codeexample}[vbox,ignorespaces] +\begin{codeexample}[vbox,ignorespaces,preamble={\usepackage{pgfcalendar}}] \pgfcalendar{cal}{2007-01-20}{2007-02-10} { \pgfcalendarcurrentday\ @@ -399,7 +403,7 @@ package for more details. different approaches work. Here is one based positioning each day horizontally using a skip. % -\begin{codeexample}[vbox,ignorespaces] +\begin{codeexample}[vbox,ignorespaces,preamble={\usepackage{pgfcalendar}}] \pgfcalendar{cal}{2007-01-20}{2007-02-10} {% \leavevmode% @@ -410,7 +414,7 @@ package for more details. % Let us now typeset two complete months. % -\begin{codeexample}[vbox,ignorespaces] +\begin{codeexample}[vbox,ignorespaces,preamble={\usepackage{pgfcalendar}}] \pgfcalendar{cal}{2007-01-01}{2007-02-28}{% \ifdate{day of month=1}{ \par\bigskip\hbox to7.5cm{\itshape\hss\pgfcalendarshorthand mt\hss}\par @@ -429,7 +433,7 @@ package for more details. % For our final example, we use a |{tikzpicture}|. % -\begin{codeexample}[vbox,ignorespaces] +\begin{codeexample}[vbox,ignorespaces,preamble={\usepackage{pgfcalendar}}] \begin{tikzpicture} \pgfcalendar{cal}{2007-01-20}{2007-02-10}{% \ifdate{workday} @@ -470,7 +474,7 @@ package for more details. you can write |\%wt| instead of the much more cumbersome |\pgfcalendarshorthand{w}{t}|. % -\begin{codeexample}[leave comments] +\begin{codeexample}[leave comments,preamble={\usepackage{pgfcalendar}}] \let\%=\pgfcalendarshorthand \pgfcalendar{cal}{2007-01-20}{2007-01-20} { ISO form: \%y0-\%m0-\%d0, long form: \%wt, \%mt \%d-, \%y0} |