diff options
author | Karl Berry <karl@freefriends.org> | 2024-02-13 23:52:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-02-13 23:52:44 +0000 |
commit | 205c0cf1e1b3eaad8c3e71a7e462002ebd4698aa (patch) | |
tree | c1e642665cf5b7bc1c4053010fd73c9341649368 /Master/texmf-dist/tex/lualatex | |
parent | ec625156dd4a1a11b0d0fcdce48a1397b1c73e22 (diff) |
lua-placeholders (14feb24)
git-svn-id: svn://tug.org/texlive/trunk@69845 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex')
-rw-r--r-- | Master/texmf-dist/tex/lualatex/lua-placeholders/lua-placeholders.sty | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/lualatex/lua-placeholders/lua-placeholders.sty b/Master/texmf-dist/tex/lualatex/lua-placeholders/lua-placeholders.sty index e11b950f5aa..d467033c112 100644 --- a/Master/texmf-dist/tex/lualatex/lua-placeholders/lua-placeholders.sty +++ b/Master/texmf-dist/tex/lualatex/lua-placeholders/lua-placeholders.sty @@ -19,7 +19,7 @@ % lua-placeholders-parser.lua and lua-placeholders-types.lua \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{lua-placeholders}[2024/01/23 1.0.0 Extended LaTeX Paramter Interface Package] +\ProvidesPackage{lua-placeholders}[2024/02/12 1.0.1 Extended LaTeX Paramter Interface Package] \RequirePackage{ifthen} \RequirePackage{luapackageloader} @@ -41,7 +41,7 @@ \ifthenelse{\boolean{#2}}{#3}{#4}} \newcommand\param[2][\curnamespace]{\directlua{lua_placeholders.param('#2', '#1')}} \newcommand\PARAM[2][\curnamespace]{\directlua{local p = lua_placeholders.param_object('#2', '#1') if p then tex.print(p:to_upper()) end}} -\def\rawparam#1#2{\directlua{local p = lua_placeholders.param_object('#2', '#1') if p then tex.print(p:val() or p.default or p.placeholder) end}} +\def\rawparam#1#2{\directlua{local p = lua_placeholders.param_object('#2', '#1') if p then tex.print(p:raw_val() or p.default or p.placeholder) end}} \newcommand\numparam[2][\curnamespace]{\directlua{local n = lua_placeholders.param_object('#2', '#1') if n then n:print_num() end}} \newcommand\hasparam[4][\curnamespace]{% \def\has@param@true{#3}% |