New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
todonotes.tex in NEMO/trunk/doc/latex/global – NEMO

source: NEMO/trunk/doc/latex/global/todonotes.tex @ 11187

Last change on this file since 11187 was 11187, checked in by nicolasmartin, 5 years ago

Modifications and bugfixes

  • Correction of the layout standard Right: scrreprt instead of scrreport
  • Switch to 2-columns for the bibliography
  • Update svn:ignore property for list of figures and tables
  • Update LaTeX dependencies
  • Move \triad command declaration to ./global/latex/new_cmds.tex with \DeclareRobustCommand specific prefix to prevent issue with \listoffigures
  • LaTeX typos
  • Ignore todonotes.tex for time being
File size: 1.2 KB
Line 
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
Note: See TracBrowser for help on using the repository browser.