TeX/year

From Wikibooks, the open-content textbooks collection

< TeX
Jump to: navigation, search

[edit] Synopsis

\year=<integer>
\year<integer>

[edit] 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.

[edit] Examples

Recall that the command \number will typeset the decimal representation of whatever follows it, and so in the year 2009

\number\year

will typeset 2009, if the \year parameter has not be redefined.

\year=670
\number\year

will typeset 670.