Debian Codegraph @

texmf-dist/tex/latex/lwarp/lwarp-todo.sty

raw
1 %%
2 %% This is file `lwarp-todo.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `todo')
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
20 \LWR@ProvidesPackagePass{todo}[2010/03/31]
21
22 \renewcommand\todoitem[2]{%
23 \refstepcounter{todo}%
24 \item[%
25 \HTMLunicode{2610} \quad%
26 \ref{todopage:\thetodo}
27 ] : {\todoformat\ifx#1\todomark\else\textbf{#1} \fi}#2%
28 \label{todolbl:\thetodo}%
29 }%
30
31 \renewcommand\doneitem[2]{%
32 \stepcounter{todo}%
33 \item[%
34 \HTMLunicode{2611} \quad%
35 \ref{todopage:\thetodo}
36 ] \@nameuse{@done\the\c@todo}:
37 {\todoformat\ifx#1\todomark\else\textbf{#1} \fi}#2%
38 }
39 \xpatchcmd{\@displaytodo}
40 {\todoformat #1}{\todoformat \textbf{#1}}{}
41 {\PackageWarning{lwarp-todo}{Unable to patch @displaytodo.}}
42
43 \xpatchcmd{\@displayfulltodo}
44 {\todoformat #1}{\todoformat \textbf{#1}}{}
45 {\PackageWarning{lwarp-todo}{Unable to patch @displayfulltodo.}}
46
47 \patchcmd{\todoenv}{\itshape see text.}{\textit{see text.}}{}
48 {\PackageWarning{lwarp-todo}{Unable to patch todoenv.}}
49
50 \patchcmd{\astodos}{\todoformat #1}{\todoformat \textbf{#1}}{}
51 {\PackageWarning{lwarp-todo}{Unable to patch astodos.}}
52 \AtBeginDocument{
53 \ifdef{\crefname}{
54 \crefname{todo}{todo}{todos}
55 \Crefname{todo}{Todo}{Todos}
56 }{}
57 }
58
59 \endinput
60 %%
61 %% End of file `lwarp-todo.sty'.