<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% Documentstyle-option ``prelim''(-inary)
%
% FUNCTION:
%  Marks drafts as drafts by adding a line stating it's a draft on every page.
%  The ``draftmark'' is preset to contain the word ``ENTWURF'', the day
%  and the time of the formatting.
%
% USAGE:
%  Simply add the option ``prelim'' in your \documentstyle-command.
%
% INTERFACE:
%  You can change the appearance of the draftmark by redefining two
%  makros. If you remove the style-option for the final printout, the
%  redefinitions are harmless.
%
%  \drafttext: Yields the text that signals that the document is in
%              draft-status. Predefined to ``ENTWURF''. Redefine it
%              if you like other words or languages.
%  \draftmark: Yields the line that signals the draft-status. Redefine it
%              if you want to change the appearance of the line, e.g. for
%              different orientations or fonts.
%
% ADDITIONAL:
%  We define the makro \timeofday that expands to hh:mm which is
%  \time in readable form. Remember that it's only accessible when the
%  prelim-option is activated. It's main purpose is to be used in the
%  \draftmark-definition.
%
% Copyright (C) 1990 by
% Robert Tolksdorf
% K\"ortestr. 30
% D-1000 Berlin 61
% West-Germany
%
% 27.05.90 Original
% 29.05.90 Added a blank after \today in \draftmark
% 31.05.90 Changed \timeofday to insert an addition `0' (eg. in 2:07)
% 31.07.90 Rearranged the message output
%
% See end of file for licence
%
\newcount\@hourmin
\def\timeofday{\@hourmin=\time\divide\@hourmin by 60\relax\the\@hourmin:%
  \multiply\@hourmin by -60 \advance\@hourmin by\time\ifnum\@hourmin&lt;10{0}\fi%
  \the\@hourmin}
%
% \drafttext defines what text should appear
%
\def\drafttext{ENTWURF (\today\ -- \timeofday)}
%
% \draftmark defines how the draft-marking line should appear
%
\def\draftmark{\rm\hfil\drafttext\hfil}
%
% We redefine the original LaTeX-output-grandmaster and introduce an
% additional line saying that the document is in draft-status.
%
\def\@outputpage{\begingroup\catcode`\ =10 \if@specialpage
     \global\@specialpagefalse\@nameuse{ps@\@specialstyle}\fi
     \if@twoside
       \ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot
            \let\@themargin\oddsidemargin
          \else \let\@thehead\@evenhead
          \let\@thefoot\@evenfoot \let\@themargin\evensidemargin
     \fi\fi
     \shipout
     \vbox{\normalsize \baselineskip\z@ \lineskip\z@
           \vskip \topmargin \moveright\@themargin
           \vbox{\setbox\@tempboxa
                   \vbox to\headheight{\vfil \hbox to\textwidth{\@thehead}}
                 \dp\@tempboxa\z@
                 \box\@tempboxa
                 \vskip \headsep
                 \box\@outputbox
                 \baselineskip\footskip
                 \hbox to\textwidth{\@thefoot}
%
% Here our modification is: simply add an additional line
% to the \vbox that contains the \draftmark. Simple, but it works!
%
                 \hbox to\textwidth{\draftmark}}}\global\@colht\textheight
           \endgroup\stepcounter{page}\let\firstmark\botmark}
%
% Type out a message (it contains a version-number in parenthesis).
%
\typeout{*** This document is in draft-status *** (1-310790RT)}

\endinput
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 1, or (at your option)
% any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program; if not, write to the Free Software
% Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
%


</pre></body></html>