Skip to content

Instantly share code, notes, and snippets.

@logc
Created January 19, 2020 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save logc/52992ef9d434d9f2bbb95d2d116d70c4 to your computer and use it in GitHub Desktop.
Save logc/52992ef9d434d9f2bbb95d2d116d70c4 to your computer and use it in GitHub Desktop.
Yearly planner calendar
\documentclass[14pt]{scrartcl}
%% Translate month names
\usepackage[spanish]{babel}
\usepackage[spanish]{translator}
\usepackage{tikz}
\usetikzlibrary{calendar}
\begin{document}
\thispagestyle{empty}
\begin{tikzpicture}[
thick,
every calendar/.style={
month label above centered,
month text={\textit{\%mt}},
if={(weekend) [black!25]},
%% Holidays for the year
if={(
equals=01-06,
equals=04-09,
equals=04-10,
equals=04-13,
equals=05-01,
equals=05-21,
equals=05-22,
equals=06-05,
equals=06-19,
equals=12-24,
equals=12-25,
equals=12-31,
) [red!70]},
week list,
}]
\matrix[column sep=1em, row sep=1em] {
\calendar[dates=\the\year-01-01 to \the\year-01-last]; &
\calendar[dates=\the\year-02-01 to \the\year-02-last]; &
\calendar[dates=\the\year-03-01 to \the\year-03-last]; \\
\calendar[dates=\the\year-04-01 to \the\year-04-last]; &
\calendar[dates=\the\year-05-01 to \the\year-05-last]; &
\calendar[dates=\the\year-06-01 to \the\year-06-last]; \\
\calendar[dates=\the\year-07-01 to \the\year-07-last]; &
\calendar[dates=\the\year-08-01 to \the\year-08-last]; &
\calendar[dates=\the\year-09-01 to \the\year-09-last]; \\
\calendar[dates=\the\year-10-01 to \the\year-10-last]; &
\calendar[dates=\the\year-11-01 to \the\year-11-last]; &
\calendar[dates=\the\year-12-01 to \the\year-12-last]; \\
};
\node[above, outer sep=4em, font=\Huge\bfseries] (title) at (current bounding box.north) {\the\year};
\end{tikzpicture}
\end{document}
@logc
Copy link
Author

logc commented Jan 19, 2020

Compiles with:

pdflatex cal.tex

into a PDF similar to this image:

cal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment