-
Notifications
You must be signed in to change notification settings - Fork 0
/
rwd-drafting.sty
101 lines (77 loc) · 1.71 KB
/
rwd-drafting.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
\ProvidesPackage{rwd-drafting}[2014/11/07 Ross Duncan's Drafting Macros]
%------------------------------------
% Drafting macros
%------------------------------------
\usepackage{color}
\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{!{\color{red}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]{}
\fi
% Red REM text
%
\ifx\suppress\undefined
\newcommand{\REM}[1]{%
\typeout{WARNING!!! there are still REMarks left}
{\color{red} #1}
}
\else
\newcommand{\ROUGH}[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