| 1 |
%% |
| 2 |
%% This is file `lwarp-luatodonotes.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `luatodonotes') |
| 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 |
\LWR@ProvidesPackagePass{luatodonotes}[2017/09/30] |
| 19 |
\@todonotes@additionalMarginEnabledfalse |
| 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 |
\newcommand{\@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{\missingfigure}[2][]{% |
| 68 |
\setkeys{todonotes}{#1}% |
| 69 |
\addcontentsline{tdo}{todo}{\@todonotes@MissingFigureText: #2}% |
| 70 |
\fcolorboxBlock% |
| 71 |
{\@todonotes@currentbordercolor}% |
| 72 |
{\@todonotes@currentfigcolor}% |
| 73 |
{% |
| 74 |
\setlength{\fboxrule}{4pt}% |
| 75 |
\fcolorbox{red}{white}{Missing figure} \quad #2% |
| 76 |
} |
| 77 |
} |
| 78 |
|
| 79 |
\LetLtxMacro\LWRTODONOTES@orig@todocommon\@todocommon |
| 80 |
|
| 81 |
\RenewDocumentCommand{\@todocommon}{m m}{% |
| 82 |
\begingroup% |
| 83 |
\renewcommand*{\phantomsection}{}% |
| 84 |
\LWRTODONOTES@orig@todocommon{#1}{#2}% |
| 85 |
\endgroup% |
| 86 |
} |
| 87 |
|
| 88 |
\VerifyCommand[lwarp][luatodonotes]{\@todoarea} |
| 89 |
{3D40C9C729633DA7BB80F7A27E7C2694} |
| 90 |
|
| 91 |
\renewcommand{\@todoarea}[3][]{% |
| 92 |
\@todonotes@areaselectedtrue% |
| 93 |
\@todocommon{#1}{#2}% |
| 94 |
\todonotes@textmark@highlight{#3}% |
| 95 |
\zref@label{@todonotes@\arabic{@todonotes@numberoftodonotes}@end}% |
| 96 |
}% |
| 97 |
|
| 98 |
\DeclareDocumentCommand{\todonotes@textmark@highlight}{m}{% |
| 99 |
\InlineClass[background:\LWR@origpound{}B3FFB3]{highlight}{#1}% |
| 100 |
} |
| 101 |
|
| 102 |
\fi% \if@todonotes@disabled |
| 103 |
|
| 104 |
\endinput |
| 105 |
%% |
| 106 |
%% End of file `lwarp-luatodonotes.sty'. |