1
0
Fork 0

Current date will be used if no verstr.tex exists

master
Mike Gerwitz 2013-08-21 10:43:25 -04:00
parent 4929c89021
commit 8a0a8bba64
1 changed files with 8 additions and 1 deletions

View File

@ -58,7 +58,14 @@
\setcounter{secnumdepth}{4}
% the version string is taken directly from a file written by the build process
\def\@verstr{{\footnotesize\tt\input{verstr.tex}}}
\def\@verstr{{%
\footnotesize\tt
% if verstr.tex exists, then use that as the version string; otherwise, fall
% back to the current date
\IfFileExists{verstr.tex}%
{\input{verstr.tex}}%
{\number\year-\number\month-\number\day}%
}}
\def\@oddhead{\small\sc\rightmark\hfill TODO}
\let\@evenhead\@oddhead