diff options
author | Norbert Preining <norbert@preining.info> | 2021-03-19 03:00:56 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-03-19 03:00:56 +0000 |
commit | 6ad1cf68ae6add67e56faf5ec4390fead04e31b4 (patch) | |
tree | ac6239e221ac7bcc6d69b6cbc1d7736f60d19a00 /macros/luatex/latex/lua-ul/lua-ul.dtx | |
parent | ca17f652236af2ce3a16cb0125fb6e190d59cc17 (diff) |
CTAN sync 202103190300
Diffstat (limited to 'macros/luatex/latex/lua-ul/lua-ul.dtx')
-rw-r--r-- | macros/luatex/latex/lua-ul/lua-ul.dtx | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/macros/luatex/latex/lua-ul/lua-ul.dtx b/macros/luatex/latex/lua-ul/lua-ul.dtx index ad57f41b67..c530c492b4 100644 --- a/macros/luatex/latex/lua-ul/lua-ul.dtx +++ b/macros/luatex/latex/lua-ul/lua-ul.dtx @@ -62,7 +62,7 @@ % \duck % \end{tikzpicture}§ % }} -% \NewDocumentCommand\underDuck{m}{{\beginUnderDuck#1}} +% \NewDocumentCommand\underDuck{+m}{{\beginUnderDuck#1}} % \newunderlinetype\beginUnderWavy[\number\dimexpr1ex]{\cleaders\hbox{§ % \setlength\unitlength{.3ex}§ % \begin{picture}(4,0)(0,1) @@ -72,11 +72,11 @@ % \qbezier(2,0)(3,-1)(4,0) % \end{picture}§ % }} -% \NewDocumentCommand\underWavy{m}{{\beginUnderWavy#1}} +% \NewDocumentCommand\underWavy{+m}{{\beginUnderWavy#1}} % \newunderlinetype\beginStrikeThough{\leaders\hbox{§ % \normalfont\bfseries/§ % }} -% \NewDocumentCommand\StrikeThough{m}{{\beginStrikeThough#1}} +% \NewDocumentCommand\StrikeThough{+m}{{\beginStrikeThough#1}} % % \newcommand\Luaul{Lua-UL} % \newcommand\luaul{Lua-UL} @@ -180,7 +180,7 @@ % \duck % \end{tikzpicture}% % }} -% \NewDocumentCommand\underDuck{m}{{\beginUnderDuck#1}} +% \NewDocumentCommand\underDuck{+m}{{\beginUnderDuck#1}} % \newunderlinetype\beginUnderWavy[\number\dimexpr1ex]{\cleaders\hbox{% % \setlength\unitlength{.3ex}% % \begin{picture}(4,0)(0,1) @@ -190,11 +190,11 @@ % \qbezier(2,0)(3,-1)(4,0) % \end{picture}% % }} -% \NewDocumentCommand\underWavy{m}{{\beginUnderWavy#1}} +% \NewDocumentCommand\underWavy{+m}{{\beginUnderWavy#1}} % \newunderlinetype\beginStrikeThough{\leaders\hbox{% % \normalfont\bfseries/% % }} -% \NewDocumentCommand\StrikeThough{m}{{\beginStrikeThough#1}} +% \NewDocumentCommand\StrikeThough{+m}{{\beginStrikeThough#1}} % \end{verbatim} % % Here \verb+\underWavy+ uses a custom context because it doesn't change depending on the current font color. @@ -816,7 +816,7 @@ luatexbase.add_to_callback('vpack_filter', \NeedsTeXFormat{LaTeX2e} \ProvidesPackage {lua-ul} - [2021/02/02 v0.1.1 Underlining and related functionality for LuaTeX] + [2021/02/15 v0.1.2 Underlining and related functionality for LuaTeX] % \fi % Only \LuaLaTeX{} is supported. @@ -910,15 +910,16 @@ luatexbase.add_to_callback('vpack_filter', \edef\luaul@highlight@color{\IfValueTF{#1}{[#1]{#2}}{#2}}% } % \end{macrocode} -% \changes{0.1.1}{2020-03-15}{Use \texttt{xparse} for all user commands} +% \changes{0.1.1}{2021-02-02}{Use \texttt{xparse} for all user commands} % \changes{0.1.1}{2021-02-02}{Optionally color \texttt{\protect\string\protect\strikeThrough}} +% \changes{0.1.2}{2021-02-15}{Allow \texttt{long} arguments (again)} % The sizes for the predefined commands are stolen from the \enquote{soul} % default values. % \begin{macrocode} \newunderlinetype\@underLine{% \leaders\vrule height -.65ex depth .75ex } - \NewDocumentCommand\underLine{m}{{\@underLine#1}} + \NewDocumentCommand\underLine{+m}{{\@underLine#1}} \newunderlinetype\@strikeThrough{% \leaders\vrule height .55ex depth -.45ex @@ -928,7 +929,7 @@ luatexbase.add_to_callback('vpack_filter', \luaul@applycolor \leaders\vrule height .55ex depth -.45ex } - \NewDocumentCommand\strikeThrough{om}{{% + \NewDocumentCommand\strikeThrough{o+m}{{% \IfValueTF{#1}{% \luaul@setcolor{#1}% \colored@strikeThrough @@ -941,7 +942,7 @@ luatexbase.add_to_callback('vpack_filter', \luaul@applycolor \leaders\vrule height 1.75ex depth .75ex } - \NewDocumentCommand\highLight{O{\luaul@highlight@color}m}{{% + \NewDocumentCommand\highLight{O{\luaul@highlight@color}+m}{{% \luaul@setcolor{#1}% \@highLight#2% }} |