I am trying to use the package calculator to return current year plus one. I have tried the following but it does not seem to work. Any suggestions?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{calculator}
\begin{document}
\COPY{\the\year{}}{\numberYYYY}
\numberYYYY
\ADD{\numberYYYY}{1}{\yearPlus} \yearPlus
\end{document}
Instead of 2022 it returns =12021 and an error message "Illegal unit of measure (pt inserted)". Thanks
\=
, that's a macro used by LaTeX.{}
after\the\year{}
.