diff options
author | Karl Berry <karl@freefriends.org> | 2020-04-11 23:00:41 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-04-11 23:00:41 +0000 |
commit | 80544798a93693cfeb392c3d47f172578fd92b5f (patch) | |
tree | 5009e8de079784b5dfb26fe5af076b03d8f942dc /Master/texmf-dist/tex/lualatex/lua-ul/lua-ul.sty | |
parent | 3077b8bc95a2bce0e4301f00b6de7c378e8b940c (diff) |
lua-ul (1apr20)
git-svn-id: svn://tug.org/texlive/trunk@54690 c570f23f-e606-0410-a88d-b1316a301751
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.sty | 13 |
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 |