Debian Codegraph @

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

raw
1 %%
2 %% This is file `lwarp-soul.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `soul')
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@ProvidesPackageDrop{soul}[2003/11/17]
20 \RequirePackage{xcolor}% for \convertcolorspec
21 \newcommand*{\LWR@soululcolor}{}
22
23 \newcommand*{\LWR@soulstcolor}{}
24
25 \newcommand*{\LWR@soulhlcolor}{}
26 \newcommand{\so}[1]{%
27 \InlineClass(letter-spacing:.2ex){letterspacing}{#1}%
28 }
29
30 \newcommand{\caps}[1]{%
31 \InlineClass%
32 (font-variant:small-caps;letter-spacing:.1ex)%
33 {capsspacing}{#1}%
34 }
35 \newcommand{\LWR@soulcolor}[5]{%
36 \ifcsempty{#2}%
37 {%
38 \InlineClass(#5){#3}{#1}%
39 }%
40 {%
41 \convertcolorspec{named}{\@nameuse{#2}}{HTML}\LWR@tempcolor%
42 \LWR@htmlspanclass[#5;#4:\LWR@origpound\LWR@tempcolor]{#3}{#1}%
43 }%
44 }
45
46 \newcommand{\ul}[1]{%
47 \LWR@soulcolor{#1}{LWR@soululcolor}{uline}{text-decoration-color}%
48 {text-decoration:underline; text-decoration-skip: auto;}%
49 }
50
51 \newcommand{\st}[1]{
52 \LWR@soulcolor{#1}{LWR@soulstcolor}{sout}{text-decoration-color}%
53 {text-decoration:line-through}%
54 }
55
56 \newcommand{\hl}[1]{
57 \LWR@soulcolor{#1}{LWR@soulhlcolor}{highlight}{background-color}%
58 {background:\LWR@origpound{}F8E800}
59 }
60 \newcommand*{\soulaccent}[1]{}
61 \newcommand*{\soulregister}[2]{}
62 \newcommand{\sloppyword}[1]{#1}
63 \newcommand*{\sodef}[5]{\DeclareRobustCommand*#1[1]{\so{##1}}}
64 \newcommand*{\resetso}{}
65 \newcommand*{\capsdef}[5]{}
66 \newcommand*{\capsreset}{}
67 \newcommand*{\capssave}[1]{}
68 \newcommand*{\capsselect}[1]{}
69 \newcommand*{\setul}[2]{}
70 \newcommand*{\resetul}{}
71 \newcommand*{\setuldepth}[1]{}
72 \newcommand*{\setuloverlap}[1]{}
73 \newcommand*{\<}{}
74 \newcommand*{\setulcolor}[1]{\renewcommand{\LWR@soululcolor}{#1}}
75 \newcommand*{\setstcolor}[1]{\renewcommand{\LWR@soulstcolor}{#1}}
76 \newcommand*{\sethlcolor}[1]{\renewcommand{\LWR@soulhlcolor}{#1}}
77 \let\textso\so
78 \let\textul\ul
79 \let\texthl\hl
80 \let\textcaps\caps
81 \endinput
82 %%
83 %% End of file `lwarp-soul.sty'.