forked from jamesbornholt/sigplan-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
drafthead.sty
36 lines (32 loc) · 1.01 KB
/
drafthead.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Stuff to make special headers and footers for draft environments
% Usage:
% \documentstyle[...,drafthead,...]{...}
%
\def\@installdraftpagestyles{
\def\ps@plain{\@draftstyle}
\def\ps@empty{\@draftstyle}
\def\ps@headfoot{\@draftstyle}
\def\ps@myheadfoot{\@draftstyle}
\pagestyle{plain}
}
\newcount\timehh\newcount\timemm\newcount\timetmp
\timehh=\time
\divide\timehh by 60 \timemm=\time
\count255=\timehh\multiply\count255 by -60 \advance\timemm by \count255
\edef\draft@puttime{%
{\ifnum\timehh<10 0\fi\number\timehh}%
:{\ifnum\timemm<10 0\fi\number\timemm}}
\def\@draftstyle{
\def\@oddhead{\hbox to\textwidth{{\normalsize}}}
\def\@oddfoot{\hbox to\textwidth{{\normalsize
% \hbox to 0in{\draft@puttime\ \today\hss}
% \hfil
\hbox to 0in{\fbox{{\small{\bf DRAFT.} \today\ \draft@puttime; rev {\tt\Revision}}\hss}}
\hfil
\thepage
}}}
\def\@evenhead{\@oddhead}
\def\@evenfoot{\@oddfoot}
}
\@installdraftpagestyles