forked from weitzner/jhu-thesis-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
todo_macros.tex
16 lines (13 loc) · 1.01 KB
/
todo_macros.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
% Inline boxed "todo" with short description and long explanation
% usage: \todoin[time]{short}{long}
\newcommand{\todoin}[3][]
{\addtocounter{todoListItems}{1}\medskip\todo[inline, caption={\protect\hypertarget{todo\thetodoListItems}{\thesection}, #2}]{%
\begin{minipage}{\textwidth-4pt}\hyperlink{todo\thetodoListItems}{\textbf{TODO\ifthenelse{\equal{#1}{}}{}{~[#1]}: #2}}\\\ssp{}#3\end{minipage}}}
% Margin "todo" for adding a citation
% usage: \todocite{}
\newcommand{\todocite}
{[{\color{red}??}\addtocounter{todoListItems}{1}\todo[color=white!10,linecolor=red,bordercolor=red,caption={\protect\hypertarget{todo\thetodoListItems}{\thesection}, citation needed}]{\hyperlink{todo\thetodoListItems}{cite}}]}
% Margin "todo" for adding a reference to something
% usage: \todoref{}
\newcommand{\todoref}
{{\color{red}??}\addtocounter{todoListItems}{1}\todo[color=white!10,linecolor=red,bordercolor=red,caption={\protect\hypertarget{todo\thetodoListItems}{\thesection}, reference needed}]{\hyperlink{todo\thetodoListItems}{ref}}}