Example: Foldable dodecahedron with Calendar

Published 2010-03-31 | Author: The TikZ and PGF manual

An example of the folding library and the calendar library, straight from the manual.

Download as: [PDF] [TEX]  •  [Open in Overleaf]

Foldable dodecahedron with Calendar

Do you have a question regarding this example, TikZ or LaTeX in general? Just ask in the LaTeX Forum.
Oder frag auf Deutsch auf TeXwelt.de. En français: TeXnique.fr.

% Folding + calendar example from the PGF manual.
% Author: Till Tantau
    \begin{tikzpicture}[transform shape,
        every calendar/.style={
            week list,
            month label above centered, 
            month text=\bfseries\textcolor{red}{\%mt} \%y0,
            if={(Sunday) [black!50]}
        folding line length=2.5cm,
        face 1={ \calendar [dates=\the\year-01-01 to \the\year-01-last];},
        face 2={ \calendar [dates=\the\year-02-01 to \the\year-02-last];},
        face 3={ \calendar [dates=\the\year-03-01 to \the\year-03-last];},
        face 4={ \calendar [dates=\the\year-04-01 to \the\year-04-last];},
        face 5={ \calendar [dates=\the\year-05-01 to \the\year-05-last];},
        face 6={ \calendar [dates=\the\year-06-01 to \the\year-06-last];},
        face 7={ \calendar [dates=\the\year-07-01 to \the\year-07-last];},
        face 8={ \calendar [dates=\the\year-08-01 to \the\year-08-last];},
        face 9={ \calendar [dates=\the\year-09-01 to \the\year-09-last];},
        face 10={\calendar [dates=\the\year-10-01 to \the\year-10-last];},
        face 11={\calendar [dates=\the\year-11-01 to \the\year-11-last];},
        face 12={\calendar [dates=\the\year-12-01 to \the\year-12-last];}


  • #1 Fabian Schuh, April 23, 2010 at 1:26 p.m.

    Nice one .. extremely nice one!

  • #2 Marcela Gonzalez, May 12, 2010 at 12:25 a.m.

    it's perfect!!!

  • #3 Alex, May 20, 2010 at 6:50 p.m.

    Need help

    Error message: I can't find file pgflibrarytikzcalendar.code.tex

    I installed the put the pgf directory to /usr/share/texmf/tex/latex/

    and also in /usr/share/texfm/tex/generic but it did not work.

    I am using Fedora10 if it is important. Thank you

  • #4 Hedinn, August 17, 2010 at 9:11 p.m.

    Really nice!

    But is there any way of changing the language? I would like this with Norwegian names of the months.


  • #5 Bastien, August 19, 2010 at 5:58 p.m.

    Hi Hedinn

    you can manually change month name by adding the option 'month text=\textcolor{red}{name}' in the command calendar for each face :

    face 1={ \calendar [month text=\textcolor{red}{Januar}, dates=\the\year-01-01 to \the\year-01-last];}, face 2={ \calendar [month text=\textcolor{red}{Februar},dates=\the\year-02-01 to \the\year-02-last];},



  • #6 Cirill, September 7, 2010 at 9:25 p.m.

    Looks quite cool! I'm going to print one.

    P.S. Thanks to Bastien. English is not the only language in the world.

  • #7 Oscillator, October 31, 2010 at 7:30 a.m.

    You can also replace month names while keeping the original format:

    face 1={ \calendar [month text=\bfseries\textcolor{red}{Enero} \%y0, dates=2011-01-01 to 2011-01-last];}, face 2={ \calendar [month text=\bfseries\textcolor{red}{Febrero} \%y0, dates=2011-02-01 to 2011-02-last];}, face 3={ \calendar [month text=\bfseries\textcolor{red}{Marzo} \%y0, dates=2011-03-01 to 2011-03-last];}, and so on...

  • #8 Carlos Andrés Delgado, October 16, 2012 at 3:59 a.m.

    Is possible to replace the original name of month with a localization based on this in your preamble:

    \def\pgfcalendarmonthname#1{% \translate{\ifcase#1\or Enero\or Febrero\or Marzo\or Abril\or Mayo\or Junio\or Julio\or Agosto\or Septiembre\or Octubre\or Noviembre\or Diciembre\fi}% }

    \def\pgfcalendarmonthshortname#1{% \translate{\ifcase#1\or Ene\or Feb\or Mar\or Abr\or May\or Jun\or Jul\or Ago\or Sep\or Oct\or Nov\or Dic\fi}% }

  • #9 Victor, April 16, 2013 at 4:32 a.m.

    Exelente Carlos Andres, salio muy bien

  • #10 Tom, April 29, 2013 at 4:56 p.m.

    Has anyone an idea who to get a background picture on each surface of the dodecahedron? it doesn't work with " \includegraphics" Thank you! Tom

Adding comments is currently not enabled.