summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/lua-ul/lua-ul.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/lua-ul/lua-ul.sty')
-rw-r--r--Master/texmf-dist/tex/lualatex/lua-ul/lua-ul.sty13
1 files changed, 7 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/lualatex/lua-ul/lua-ul.sty b/Master/texmf-dist/tex/lualatex/lua-ul/lua-ul.sty
index 72754a6ab49..11323eb9f02 100644
--- a/Master/texmf-dist/tex/lualatex/lua-ul/lua-ul.sty
+++ b/Master/texmf-dist/tex/lualatex/lua-ul/lua-ul.sty
@@ -20,7 +20,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage
{lua-ul}
- [2020/03/15 v0.0.2 Underlining and related functionality for LuaTeX]
+ [2020/03/31 v0.0.4 Underlining and related functionality for LuaTeX]
\ifx\directlua\undefined
\PackageError{lua-ul}{LuaLaTeX required}%
@@ -47,13 +47,14 @@
\the\LuaCol@Attribute
\fi
}
-\NewDocumentCommand\newunderlinetype{mO{\luaul@defaultcontext}m}{%
- \newcommand#1{}% "Reserve" the name
- \protected\def#1{%
+\NewDocumentCommand\newunderlinetype
+ { E{*}{{}} m O{\luaul@defaultcontext} m }{%
+ \newcommand#2{}% "Reserve" the name
+ \protected\def#2{%
\expandafter\luaul@maybedefineuse
- \expanded{{\csstring#1@@#2}}%
+ \expanded{{\csstring#2@@#3}}%
{\LuaULSetUnderline
- \LuaULNewUnderlineType\hbox{#3\hskip0pt}%
+ \LuaULNewUnderlineType#1\hbox{#4\hskip0pt}%
}}%
}
\ifluaul@predefined