source: NEMO/trunk/doc/latex/global/todonotes.sty @ 11148

Last change on this file since 11148 was 11148, checked in by nicolasmartin, 18 months ago

Reorganisation of the latex directory
Creation of frontpages.tex to standardise the look of the manuals and few !LaTeX files to facilitate the overall modifications

  • minted : syntax highlighting
  • packages.sty : !LaTeX packages to load
  • styles.sty : gathering of all rules affecting the style
  • new_cmds.sty : custom LaTeX commands
  • todonotes.sty: insertion of TODO bubbles inline or at the margin
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.