Skip to content
Snippets Groups Projects
rwd-drafting.sty 2.01 KiB
\ProvidesPackage{rwd-drafting}[2014/11/07 Ross Duncan's Drafting Macros]
%------------------------------------
% Drafting macros
%------------------------------------

\DeclareOption{suppress}{
\newcommand{\suppress}{%
  \typeout{WARNING! drafting macros have been suppressed.  If no longer needed these should be removed from the file} 
}
}
\ProcessOptions\relax

% Marginal todo notes
% 
\ifx\suppress\undefined
\newcommand{\TODO}[1]{%
\typeout{WARNING!!! there is still a TODO left}
\marginpar{\textbf{!TODO: }\emph{#1}}
}
\else
\newcommand{\TODO}[1]{}
\fi

\ifx\suppress\undefined
\newenvironment{todo}[1]{\noindent\rule{.3\textwidth}{1pt}\TODO{#1}\\}{\\\rule{.3\textwidth}{1pt}}
\else
\newenvironment{todo}[1]{}{}
\fi



% Marginal DRAFT notes
%
\ifx\suppress\undefined
\newcommand{\NOTE}[1]{%
\typeout{WARNING!!! there are still DRAFT NOTES left}
\marginpar{!DRAFT}\emph{\textbf{DRAFT NOTES:} #1}
}
\else
\newcommand{\NOTE}[1]{}
\fi

% Blue ROUGH text
%
\ifx\suppress\undefined
\newcommand{\ROUGH}[1]{%
\typeout{WARNING!!! there are still ROUGH parts left}
{\color{blue} #1}
}
\else
\newcommand{\ROUGH}[1]{%
\typeout{WARNING!!! there are still ROUGH parts left}
{#1}
}
\fi

% Red REM text 
%
\ifx\suppress\undefined
\newcommand{\REM}[1]{%
\typeout{WARNING!!! there are still REMarks left}
{\color{red} #1}
}
\else
\newcommand{\REM}[1]{}
\fi

% Blue REM text 
%
\ifx\suppress\undefined
\newcommand{\BREM}[1]{%
\typeout{WARNING!!! there are still REMarks left}
{\color{blue} #1}
}
\else
\newcommand{\BREM}[1]{}
\fi

% TODO list environment
%
\ifx\suppress\undefined
\newenvironment{TODOLIST}
{\begin{minipage}{1.1\linewidth}
    \hrulefill\\
    \begin{center}\textbf{TODO}\end{center}}
{\\\hrulefill\\\end{minipage}}
\else

\fi

% in text notes (paragraph)
%
\ifx\suppress\undefined
\newenvironment{DRAFT}
{ \rule[-3mm]{2mm}{10mm}\rule{0mm}{2mm}
  \begin{minipage}{0.9\textwidth}
    \textbf{NOTE!} \it
}
{\end{minipage}\\}
\else

\fi