1 | \usepackage[]{todonotes} |
---|
2 | |
---|
3 | \newcounter{ubcomment} |
---|
4 | \newcommand{\ubcomment}[2][]{% |
---|
5 | \refstepcounter{ubcomment}% |
---|
6 | {% |
---|
7 | \todo[linecolor=black,backgroundcolor={green!40!},size=\footnotesize]{% |
---|
8 | \textbf{Fixme: UB [\uppercase{#1}\theubcomment]:}~#2}% |
---|
9 | }} |
---|
10 | \newcommand{\ubcommentinline}[2][]{% |
---|
11 | \refstepcounter{ubcomment}% |
---|
12 | {% |
---|
13 | \todo[linecolor=black,inline,backgroundcolor={green!40!},size=\footnotesize]{% |
---|
14 | \textbf{Fixme: UB [\uppercase{#1}\theubcomment]:}~#2}% |
---|
15 | }} |
---|
16 | |
---|
17 | \newcommand{\ubcommentmultiline}[2]{% |
---|
18 | \refstepcounter{ubcomment}% |
---|
19 | {% |
---|
20 | \todo[linecolor=black,inline,caption={\textbf{{Fixme: UB} |
---|
21 | [\theubcomment] #1}} ,backgroundcolor={green!40!},size=\footnotesize]{% |
---|
22 | \textbf{Fixme: UB [\theubcomment]:}~#2}% |
---|
23 | }} |
---|
24 | |
---|
25 | % add support for todo in equations |
---|
26 | %\usepackage{marginnote} |
---|
27 | %\makeatletter |
---|
28 | %\renewcommand{\@todonotes@drawMarginNoteWithLine}{% |
---|
29 | %\begin{tikzpicture}[remember picture, overlay, baseline=-0.75ex]% |
---|
30 | % \node [coordinate] (inText) {};% |
---|
31 | %\end{tikzpicture}% |
---|
32 | %\marginnote[{% Draw note in left margin |
---|
33 | % \@todonotes@drawMarginNote% |
---|
34 | % \@todonotes@drawLineToLeftMargin% |
---|
35 | %}]{% Draw note in right margin |
---|
36 | % \@todonotes@drawMarginNote% |
---|
37 | % \@todonotes@drawLineToRightMargin% |
---|
38 | %}% |
---|
39 | %} |
---|
40 | %\makeatother |
---|