Producing a calendar
Self-made customized calendars can be a great gift. Also, having a personalized calendar for professional and educational purposes is helpful.
In this recipe, we’ll generate a full-year calendar with all the months presented in a tabular layout. You can adjust it to print just one month below an image or for other specific needs.
How to do it...
We will use the powerful TikZ package again since it provides a calendar library:
- Set up document class and page dimensions. Furthermore, change to the empty page style to not have page numbering:
\documentclass{article} \usepackage[margin = 2.5cm, a4paper]{geometry} \pagestyle{empty}
- Load TikZ and its calendar and positioning libraries:
\usepackage{tikz} \usetikzlibrary{calendar,positioning}
- To save typing and more easily change the year, we define a macro for the year and one for calling the TikZ \calendar command:
\newcommand{\calyear}{2025} \newcommand{\mon}[1]{\calendar[dates = \calyear...