From 1bac51c9be71358b55925783e16f3d8bc03d630b Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sat, 9 Dec 2023 03:03:37 +0000 Subject: CTAN sync 202312090303 --- macros/luatex/latex/yamlvars/yamlvars.sty | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'macros/luatex/latex/yamlvars/yamlvars.sty') diff --git a/macros/luatex/latex/yamlvars/yamlvars.sty b/macros/luatex/latex/yamlvars/yamlvars.sty index bd0643ec57..524b290f34 100644 --- a/macros/luatex/latex/yamlvars/yamlvars.sty +++ b/macros/luatex/latex/yamlvars/yamlvars.sty @@ -1,5 +1,5 @@ % Kale Ewasiuk (kalekje@gmail.com) -% 2023-11-25 +% 2023-12-08 % Copyright (C) 2021-2023 Kale Ewasiuk % % Permission is hereby granted, free of charge, to any person obtaining a copy @@ -25,7 +25,7 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{yamlvars}[2023-11-25] +\ProvidesPackage{yamlvars}[2023-12-08] \RequirePackage{luacode} \RequirePackage{etoolbox} @@ -37,10 +37,12 @@ \luadirect{YAMLvars = require('YAMLvars')} + + + + \DeclareOption{useyv}{ - \newcommand\yv{} - \gdef\yv#1{\csname yv--#1\endcsname} % todo not working... why?? -% \NewDocumentCommand{\yv}{m}{\luadirect{tex.sprint(tostring(token.get_macro('yv--'..\luastring{#1})))}} + \NewDocumentCommand{\yv}{m}{\csuse{yv#1}} \luadirect{YAMLvars.setts.prc = 'yvdef'} \luadirect{YAMLvars.settsdefault.prc = 'yvdef'} } -- cgit v1.2.3