< TeX
Synopsis
\year=<integer> \year<integer>
Description
\year is a parameter that TeX initiates to the current year. It may be changed to any integer <integer> with either of two equivalent forms above.
Examples
Recall that the command \number will typeset the decimal representation of whatever follows it, and so
\number\year
will typeset 2020 (the current year), if the \year parameter has not be redefined.
\year=670 \number\year
will typeset 670.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.