summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/yamlvars/yamlvars.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-07-23 20:46:46 +0000
committerKarl Berry <karl@freefriends.org>2023-07-23 20:46:46 +0000
commitf877d675254b93251f32484b55e086b9bda798cf (patch)
treeda6b2d173250778cd628aa76c20c40731faf1382 /Master/texmf-dist/tex/lualatex/yamlvars/yamlvars.lua
parent926e0e5dbdcefe4dd025ae534fd87a5fbc50b826 (diff)
yamlvars (23jul23)
git-svn-id: svn://tug.org/texlive/trunk@67715 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/yamlvars/yamlvars.lua')
-rw-r--r--Master/texmf-dist/tex/lualatex/yamlvars/yamlvars.lua13
1 files changed, 5 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/lualatex/yamlvars/yamlvars.lua b/Master/texmf-dist/tex/lualatex/yamlvars/yamlvars.lua
index 1d0da9a3126..479880a3e82 100644
--- a/Master/texmf-dist/tex/lualatex/yamlvars/yamlvars.lua
+++ b/Master/texmf-dist/tex/lualatex/yamlvars/yamlvars.lua
@@ -1,6 +1,6 @@
--% Kale Ewasiuk (kalekje@gmail.com)
---% 2023-07-18
---% Copyright (C) 2021-2022 Kale Ewasiuk
+--% 2023-07-22
+--% Copyright (C) 2021-2023 Kale Ewasiuk
--%
--% Permission is hereby granted, free of charge, to any person obtaining a copy
--% of this software and associated documentation files (the "Software"), to deal
@@ -28,12 +28,9 @@ YAMLvars = {} -- self table
YAMLvars.yaml = require'tinyyaml' -- note: YAMLvars.sty will have checked existence of this already
-local luakeys = require'luakeys'() -- note: YAMLvars.sty will have checked existence of this already
+YAMLvars.luakeys = require'luakeys'() -- note: YAMLvars.sty will have checked existence of this already
-local pl = _G['penlight'] or _G['pl'] -- penlight for this namespace is pl
-if (__PL_EXTRAS__ == nil) or (__PENLIGHT__ == nil) then
- tex.sprint('\\PackageError{yamlvars}{penlight package with extras (or extrasnoglobals) option must be loaded before this package}{}')
-end
+local pl = penlight
-- UI tables to extend functionality
YAMLvars.xfm = {}
@@ -75,7 +72,7 @@ function YAMLvars.updatesettskv(kv, res, def)
YAMLvars.setts2default()
end
- local kv = luakeys.parse(kv)
+ local kv = YAMLvars.luakeys.parse(kv)
if type(kv.xfm) == 'string' then
kv.xfm = pl.stringx.split(kv.xfm)
end