summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-04-03 21:18:05 +0000
committerKarl Berry <karl@freefriends.org>2024-04-03 21:18:05 +0000
commitb282536869578c1e5d5d3778bb846f63aca46c95 (patch)
treeff58393133e93f57d37f3000246b06c5985c06af /Master/texmf-dist/scripts
parentb033809ee9e0148a20f37328bb519f0cd0afbb0a (diff)
lua-placeholders (3apr24)
git-svn-id: svn://tug.org/texlive/trunk@70850 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts')
-rw-r--r--Master/texmf-dist/scripts/lua-placeholders/lua-placeholders-parser.lua2
-rw-r--r--Master/texmf-dist/scripts/lua-placeholders/lua-placeholders.lua7
2 files changed, 7 insertions, 2 deletions
diff --git a/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders-parser.lua b/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders-parser.lua
index 4a0304c4636..0de9d25c9c8 100644
--- a/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders-parser.lua
+++ b/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders-parser.lua
@@ -19,6 +19,7 @@
-- lua-placeholders-parser.lua and lua-placeholders-types.lua
local LUA_VERSION = string.sub(_VERSION, 5, -1)
+local kpse = kpse or require('kpse')
yaml_supported = false
@@ -87,6 +88,7 @@ return function(filename)
end
local raw = file:read "*a"
file:close()
+ kpse.record_input_file(filename)
if ext == 'json' then
return utilities.json.tolua(raw)
else
diff --git a/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders.lua b/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders.lua
index 24f0a6c5ca2..98c2b134161 100644
--- a/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders.lua
+++ b/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders.lua
@@ -23,8 +23,8 @@ if not modules then
end
modules.lua_placeholders = {
- version = "1.0.2",
- date = "2024/02/21",
+ version = "1.0.3",
+ date = "2024/04/02",
comment = 'Lua Placeholders — for specifying and inserting document parameters',
author = 'Erik Nijenhuis',
license = 'free'
@@ -78,7 +78,10 @@ function api.recipe(path, namespace_name)
else
namespace:load_recipe(raw_recipe)
end
+ tex.print('\\NewHook{namespace/' .. name .. '}')
+ tex.print('\\NewHook{namespace/' .. name .. '/loaded}')
tex.print('\\UseOneTimeHook{namespace/' .. name .. '}')
+ texio.write_nl(name)
if namespace.payload_file and not namespace.payload_loaded then
local raw_payload = load_resource(namespace.payload_file)
if raw_payload.namespace then