Proper Hevea implementation of the \year macro
Instead of hard-wiring the current year in macros.hva, use Hevea's `year` counter, as set by `xxdate.exe`. Hevea treats `year` as a LaTeX counter, to be used as `\arabic{year}`. pdflatex treats `\year` as a plain TeX counter, to be used as `\number\year`. A macro definition is needed to hide the difference. I went for the minimal change.master
parent
b71933f13f
commit
c7a09ddec4
|
@ -184,7 +184,7 @@
|
|||
|
||||
\newcommand{\vfill}{}
|
||||
\def\number{}
|
||||
\def\year{2013}
|
||||
\def\year{\arabic{year}}
|
||||
|
||||
% Pour alltt
|
||||
\def\rminalltt#1{{\rm #1}}
|
||||
|
@ -200,4 +200,4 @@
|
|||
\newenvironment{maintitle}{\@open{div}{class="maintitle"}}{\@close{div}}
|
||||
|
||||
%%% References to modules in the standard library
|
||||
\newcommand{\stdmoduleref}[1]{\ahref{libref/#1.html}{\texttt{#1}}}
|
||||
\newcommand{\stdmoduleref}[1]{\ahref{libref/#1.html}{\texttt{#1}}}
|
||||
|
|
Loading…
Reference in New Issue