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/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global – NEMO

source: NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/doc/latex/global/todonotes.tex @ 14644

Last change on this file since 14644 was 14644, checked in by sparonuz, 3 years ago

Merge trunk -r14642:HEAD

File size: 1.4 KB
Line 
1%% =================================================================================================
2%% Notes
3%% =================================================================================================
4
5\usepackage{todonotes}
6
7\newcounter{ubcomment}
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}
14}}
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}
21}}
22
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}
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
Note: See TracBrowser for help on using the repository browser.