Jason White
unread,May 30, 2012, 11:10:35 PM5/30/12You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
What is the right way to print the current year in a LaTeX document? The
following sample document, when run through pdflatex, gives the error:
! Missing number, treated as zero.
This also happens if I write \arabic{year} instead of \year.
I'm using the latest TeX Live 2011/2012 packages from Debian.
I don't strictly need this functionality, but I'm curious as it isn't working
as I expected, and my Web searches haven't identified a solution.
\documentclass{article}
\begin{document}
This document was printed in \year\ and typeset with \LaTeX.
\end{document}