source:
NEMO/trunk/doc/latex/global/todonotes.tex
@
11174
Last change on this file since 11174 was 11174, checked in by nicolasmartin, 5 years ago | |
---|---|
File size: 1.1 KB |
Line | |
---|---|
1 | \newcounter{ubcomment} |
2 | \newcommand{\ubcomment}[2][]{% |
3 | \refstepcounter{ubcomment}% |
4 | {% |
5 | \todo[linecolor=black,backgroundcolor={green!40!},size=\footnotesize]{% |
6 | \textbf{Fixme: UB [\uppercase{#1}\theubcomment]:}~#2}% |
7 | }} |
8 | \newcommand{\ubcommentinline}[2][]{% |
9 | \refstepcounter{ubcomment}% |
10 | {% |
11 | \todo[linecolor=black,inline,backgroundcolor={green!40!},size=\footnotesize]{% |
12 | \textbf{Fixme: UB [\uppercase{#1}\theubcomment]:}~#2}% |
13 | }} |
14 | |
15 | \newcommand{\ubcommentmultiline}[2]{% |
16 | \refstepcounter{ubcomment}% |
17 | {% |
18 | \todo[linecolor=black,inline,caption={\textbf{{Fixme: UB} |
19 | [\theubcomment] #1}} ,backgroundcolor={green!40!},size=\footnotesize]{% |
20 | \textbf{Fixme: UB [\theubcomment]:}~#2}% |
21 | }} |
22 | |
23 | % add support for todo in equations |
24 | %\usepackage{marginnote} |
25 | %\makeatletter |
26 | %\renewcommand{\@todonotes@drawMarginNoteWithLine}{% |
27 | %\begin{tikzpicture}[remember picture, overlay, baseline=-0.75ex]% |
28 | % \node [coordinate] (inText) {};% |
29 | %\end{tikzpicture}% |
30 | %\marginnote[{% Draw note in left margin |
31 | % \@todonotes@drawMarginNote% |
32 | % \@todonotes@drawLineToLeftMargin% |
33 | %}]{% Draw note in right margin |
34 | % \@todonotes@drawMarginNote% |
35 | % \@todonotes@drawLineToRightMargin% |
36 | %}% |
37 | %} |
38 | %\makeatother |
Note: See TracBrowser
for help on using the repository browser.