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