diff options
author | Norbert Preining <norbert@preining.info> | 2023-07-24 03:04:00 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-07-24 03:04:00 +0000 |
commit | 19444d4440a66200b03e05b567996375d0404a46 (patch) | |
tree | 450f6790376fe84313c8b2840fe51307bcac2f9e /macros/luatex/latex/yamlvars/yamlvars.lua | |
parent | 8e64fc98a1773bc22a0f010f106d56a028e48597 (diff) |
CTAN sync 202307240303
Diffstat (limited to 'macros/luatex/latex/yamlvars/yamlvars.lua')
-rw-r--r-- | macros/luatex/latex/yamlvars/yamlvars.lua | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/macros/luatex/latex/yamlvars/yamlvars.lua b/macros/luatex/latex/yamlvars/yamlvars.lua index 1d0da9a312..479880a3e8 100644 --- a/macros/luatex/latex/yamlvars/yamlvars.lua +++ b/macros/luatex/latex/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 |