%
% 			draftversion.sty
%      This is LaTeX2e compatible draft message macro file.
%
%	include the file via \usepackage{draftversion}
%
%	Macro:
%	\DraftVersion		Sets Draft flag on.
%	\note[Message]{Note}	Outputs optional Message,
%				and inserts {Note} in text if
%				\DraftVersion has been set.
%
\usepackage{ifthen}
\newboolean{draftversion}
\newcommand{\DraftVersion}{\setboolean{draftversion}{true}%
	\message{(Draft Document)}%
	\special{!userdict begin /bop-hook{gsave 200 30 translate 66 rotate
  /Times-Roman findfont 217 scalefont setfont 0 0 moveto 0.95 setgray
  (DRAFT) show grestore}def end}}

\newcommand{\note}[2][]{\message{(#1)}\ifthenelse{\boolean{draftversion}}%
	{\noindent{\em[#2]}}{}}
