diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-soul.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-soul.sty | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-soul.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-soul.sty index aec6a684692..1dfaabf8668 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-soul.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-soul.sty @@ -22,28 +22,37 @@ \newcommand*{\LWR@soulstcolor}{} \newcommand*{\LWR@soulhlcolor}{} -\newcommand{\so}[1]{\InlineClass{letterspacing}{#1}} -\newcommand{\caps}[1]{\InlineClass{capsspacing}{#1}} -\newcommand{\LWR@soulcolor}[4]{% +\newcommand{\so}[1]{% +\LWR@HTMLtextstyle{letter-spacing:.2ex}{letterspacing}{#1}% +} + +\newcommand{\caps}[1]{% +\LWR@HTMLtextstyle% + {font-variant:small-caps;letter-spacing:.1ex}% + {capsspacing}{#1}% +} +\newcommand{\LWR@soulcolor}[5]{% \ifcsempty{#2}% +{\LWR@HTMLtextstyle{#5}{#3}{#1}}% {% -\InlineClass{#3}{#1}}% -{% -\convertcolorspec{named}{\csuse{#2}}{HTML}\LWR@tempcolor% -\InlineClass[#4: \#\LWR@tempcolor]{#3}{#1}% + \convertcolorspec{named}{\csuse{#2}}{HTML}\LWR@tempcolor% + \LWR@HTMLtextstyle{#5;#4:\#\LWR@tempcolor}{#3}{#1}% }% } \newcommand{\ul}[1]{% \LWR@soulcolor{#1}{LWR@soululcolor}{uline}{text-decoration-color}% + {text-decoration:underline;text-decoration-skip;}% } \newcommand{\st}[1]{ \LWR@soulcolor{#1}{LWR@soulstcolor}{sout}{text-decoration-color}% + {text-decoration:line-through}% } \newcommand{\hl}[1]{ \LWR@soulcolor{#1}{LWR@soulhlcolor}{highlight}{background-color}% + {background:\#F8E800} } \newcommand*{\soulaccent}[1]{} \newcommand*{\soulregister}[2]{} |