1

I have this simple code:

\documentclass[12pt]{article}

\usepackage{tikz}
\usetikzlibrary{calendar}

\begin{document}
\begin{tikzpicture}
  \calendar
  [
    dates=2023-07-01 to 2023-09-last,
    week list,inner sep=2pt,month label above centered,
    month text=\%mt \%y0
  ];
\end{tikzpicture}
\end{document}

Is it possible to have each month on a separate page? Can I put \newpage somewhere in the code?

Actually, I have a longer code, this is only MWE. I want to incorporate the desired answer into my larger project...

Thanks all!

1 Answer 1

4

You can't (easily) split a tikzpicture across package. So instead of drawing everything in one tikzpicture, you could use a separate tikzpicture for each month:

\documentclass[12pt]{article}

\usepackage{tikz}
\usetikzlibrary{calendar}

\begin{document}

\foreach \mo in {07,08,09}{

\begin{tikzpicture}
  \calendar
  [
    dates=2023-\mo-01 to 2023-\mo-last,
    week list,inner sep=2pt,month label above centered,
    month text=\%mt \%y0
  ];
\end{tikzpicture}
\newpage

}

\end{document}
2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .