| 1 |
%% |
| 2 |
%% This is file `lwarp-todonotes.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `todonotes') |
| 8 |
%% This is a generated file. |
| 9 |
%% Copyright 2016-2026 Brian Dunn |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
%% version 2005/12/01 or later. |
| 18 |
|
| 19 |
\LWR@ProvidesPackagePass{todonotes}[2012/07/25] |
| 20 |
\if@todonotes@disabled |
| 21 |
\else |
| 22 |
|
| 23 |
\newcommand{\ext@todo}{tdo} |
| 24 |
|
| 25 |
\renewcommand{\l@todo}[2]{\hypertocfloat{1}{todo}{ldo}{#1}{#2}} |
| 26 |
\let\LWRTODONOTES@orig@todototoc\todototoc |
| 27 |
|
| 28 |
\renewcommand*{\todototoc}{% |
| 29 |
\LWR@phantomsection% |
| 30 |
\LWRTODONOTES@orig@todototoc% |
| 31 |
} |
| 32 |
|
| 33 |
\renewcommand{\@todonotes@drawMarginNoteWithLine}{ |
| 34 |
\fcolorbox |
| 35 |
{\@todonotes@currentbordercolor} |
| 36 |
{\@todonotes@currentbackgroundcolor} |
| 37 |
{\arabic{@todonotes@numberoftodonotes}} |
| 38 |
\marginpar{\@todonotes@drawMarginNote} |
| 39 |
} |
| 40 |
|
| 41 |
\renewcommand{\@todonotes@drawInlineNote}{% |
| 42 |
\fcolorboxBlock% |
| 43 |
{\@todonotes@currentbordercolor}% |
| 44 |
{\@todonotes@currentbackgroundcolor}% |
| 45 |
{% |
| 46 |
\if@todonotes@authorgiven% |
| 47 |
{\@todonotes@author:\,}% |
| 48 |
\fi% |
| 49 |
\@todonotes@text% |
| 50 |
}% |
| 51 |
} |
| 52 |
|
| 53 |
\renewcommand{\@todonotes@drawMarginNote}{% |
| 54 |
\if@todonotes@authorgiven% |
| 55 |
\@todonotes@author\par% |
| 56 |
\fi% |
| 57 |
\arabic{@todonotes@numberoftodonotes}: % |
| 58 |
\fcolorbox% |
| 59 |
{\@todonotes@currentbordercolor}% |
| 60 |
{\@todonotes@currentbackgroundcolor}% |
| 61 |
{% |
| 62 |
\@todonotes@sizecommand% |
| 63 |
\@todonotes@text % |
| 64 |
}% |
| 65 |
}% |
| 66 |
|
| 67 |
\renewcommand{\@todonotes@drawLineToRightMargin}{} |
| 68 |
|
| 69 |
\renewcommand{\@todonotes@drawLineToLeftMargin}{} |
| 70 |
|
| 71 |
\renewcommand{\missingfigure}[2][]{% |
| 72 |
\setkeys{todonotes}{#1}% |
| 73 |
\addcontentsline{tdo}{todo}{\@todonotes@MissingFigureText: #2}% |
| 74 |
\fcolorboxBlock% |
| 75 |
{\@todonotes@currentbordercolor}% |
| 76 |
{\@todonotes@currentfigcolor}% |
| 77 |
{% |
| 78 |
\setlength{\fboxrule}{4pt}% |
| 79 |
\fcolorbox{red}{white}{Missing figure} \quad #2% |
| 80 |
} |
| 81 |
} |
| 82 |
|
| 83 |
\LetLtxMacro\LWRTODONOTES@orig@todo\@todo |
| 84 |
|
| 85 |
\RenewDocumentCommand{\@todo}{o m}{% |
| 86 |
\begingroup% |
| 87 |
\renewcommand*{\phantomsection}{}% |
| 88 |
\IfValueTF{#1}{% |
| 89 |
\LWRTODONOTES@orig@todo[#1]{#2}% |
| 90 |
}{% |
| 91 |
\LWRTODONOTES@orig@todo{#2}% |
| 92 |
} |
| 93 |
\endgroup% |
| 94 |
} |
| 95 |
|
| 96 |
\fi% \if@todonotes@disabled |
| 97 |
\endinput |
| 98 |
%% |
| 99 |
%% End of file `lwarp-todonotes.sty'. |