Debian Codegraph @

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

raw
1 %%
2 %% This is file `lwarp-cancel.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `cancel')
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@origRequirePackage{lwarp-xcolor}% for \convertcolorspec
19 \LWR@ProvidesPackagePass{cancel}[2013/04/12]
20
21 \newcommand{\LWR@cancelcolor}[5]{%
22 \ifcsempty{#2}%
23 {\InlineClass(#5){#3}{#1}}%
24 {\LWR@htmlspanclass[#5;#4:\LWR@origpound\LWR@tempcolor]{#3}{#1}}%
25 }
26
27 \DeclareRobustCommand{\LWR@HTML@cancel}[1]{%
28 \begingroup%
29 \CancelColor%
30 \LWR@findcurrenttextcolor%
31 \color{black}%
32 \LWR@cancelcolor{#1}{LWR@tempcolor}{sout}{text-decoration-color}%
33 {text-decoration:line-through}%
34 \endgroup%
35 }
36 \LWR@formatted{cancel}%
37
38 \LetLtxMacro\bcancel\cancel
39 \LetLtxMacro\xcancel\cancel
40 \begin{warpMathJax}
41 \PackageNoteNoLine{lwarp, cancel}{The MathJax v3 extension will be used}
42 \CustomizeMathJax{\require{cancel}}
43 \end{warpMathJax}
44
45
46 \endinput
47 %%
48 %% End of file `lwarp-cancel.sty'.