Next / Previous / Contents / NM Tech homepage

9.5. \graduationdate

Defines an internal command \graduation@date that is referenced by:

The purpose of the \providecommand is to insure that \graduation@date is defined, so that both explicit and default definitions can use \renewcommand.

nmtthesis2015.sty
%
% - - -   \ g r a d u a t i o n d a t e
%
\providecommand{\graduation@date}{}%
\newcommand{\graduationdate}[1]%
{%
  \renewcommand{\graduation@date}{#1}%
}% End \graduationdate

This command is optional, so we also define a default \graduation@date command that uses the current month and year to guess the date. This command assumes that months 1–5 imply a May graduation date; months 6–8, August; and months 9–12, December.

The commands \month and \year are Plain TeX. I could not find any LaTeX equivalents.

nmtthesis2015.sty
%
% - - -   \ g r a d u a t i o n @ d a t e
%
\renewcommand{\graduation@date}%
{%
  \ifthenelse{\month < 6}{May}%
  {%
    \ifthenelse{\month < 9}{August}{December}%
  }%
  , \number\year
}% End \graduation@date