From 5fcfa99e5deaf9c601ba9e338f07fbefdd5d4487 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 7 Nov 2022 03:04:25 +0000 Subject: CTAN sync 202211070304 --- macros/luatex/latex/yamlvars/yamlvars.lua | 2 +- macros/luatex/latex/yamlvars/yamlvars.pdf | Bin 82908 -> 83238 bytes macros/luatex/latex/yamlvars/yamlvars.sty | 20 ++++++++++---------- macros/luatex/latex/yamlvars/yamlvars.tex | 6 +++--- 4 files changed, 14 insertions(+), 14 deletions(-) (limited to 'macros/luatex/latex') diff --git a/macros/luatex/latex/yamlvars/yamlvars.lua b/macros/luatex/latex/yamlvars/yamlvars.lua index a46b47e725..01b326c4b4 100644 --- a/macros/luatex/latex/yamlvars/yamlvars.lua +++ b/macros/luatex/latex/yamlvars/yamlvars.lua @@ -1,5 +1,5 @@ --% Kale Ewasiuk (kalekje@gmail.com) ---% 2022-04-16 +--% 2022-11-06 --% Copyright (C) 2021-2022 Kale Ewasiuk --% --% Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/macros/luatex/latex/yamlvars/yamlvars.pdf b/macros/luatex/latex/yamlvars/yamlvars.pdf index 58f7899f5f..093dbecd8c 100644 Binary files a/macros/luatex/latex/yamlvars/yamlvars.pdf and b/macros/luatex/latex/yamlvars/yamlvars.pdf differ diff --git a/macros/luatex/latex/yamlvars/yamlvars.sty b/macros/luatex/latex/yamlvars/yamlvars.sty index 92d5fbef2e..b04e7d306f 100644 --- a/macros/luatex/latex/yamlvars/yamlvars.sty +++ b/macros/luatex/latex/yamlvars/yamlvars.sty @@ -1,5 +1,5 @@ % Kale Ewasiuk (kalekje@gmail.com) -% 2022-04-16 +% 2022-11-06 % Copyright (C) 2021-2022 Kale Ewasiuk % % Permission is hereby granted, free of charge, to any person obtaining a copy @@ -25,7 +25,7 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{YAMLvars}[2022-04-16] +\ProvidesPackage{yamlvars}[2022-11-06] \IfFileExists{markdown-tinyyaml.lua}{}{\PackageError{YAMLvars}{This package requires installation of the 'markdown' package, please install it and try again}{}} @@ -64,13 +64,13 @@ \newcommand{\parseYAMLvarsFile}[1]{\luadirect{YAMLvars.parseYAMLvarsFile(\luastring{#1})}} -\newenvironment{declareYAMLvars}{\luadirect{pl.tex.startrecording()}}{\luadirect{pl.tex.stoprecording()} - \luadirect{YAMLvars.declareYAMLvarsStr(pl.tex.recordedbuf)} +\newenvironment{declareYAMLvars}{\luadirect{_G[__PENLIGHT__].tex.startrecording()}}{\luadirect{_G[__PENLIGHT__].tex.stoprecording()} + \luadirect{YAMLvars.declareYAMLvarsStr(_G[__PENLIGHT__].tex.recordedbuf)} } -\newenvironment{parseYAMLvars}{\luadirect{pl.tex.startrecording()}}{\luadirect{pl.tex.stoprecording()} +\newenvironment{parseYAMLvars}{\luadirect{_G[__PENLIGHT__].tex.startrecording()}}{\luadirect{_G[__PENLIGHT__].tex.stoprecording()} } -\AfterEndEnvironment{parseYAMLvars}{\luadirect{YAMLvars.parseYAMLvarsStr(pl.tex.recordedbuf)}} +\AfterEndEnvironment{parseYAMLvars}{\luadirect{YAMLvars.parseYAMLvarsStr(_G[__PENLIGHT__].tex.recordedbuf)}} % necessary hack to get rohead and lohead to work.. % .. https://tex.stackexchange.com/questions/637018/setting-koma-heading-within-lua/637021?noredirect=1#comment1587387_637021 @@ -82,10 +82,10 @@ -\newenvironment{parseYAMLpdfdata}{\luadirect{pl.tex.startrecording()}}{ - \luadirect{pl.tex.stoprecording() - YAMLvars.yaml2PDFmetadata(pl.tex.recordedbuf) - pl.tex.writePDFmetadata() +\newenvironment{parseYAMLpdfdata}{\luadirect{_G[__PENLIGHT__].tex.startrecording()}}{ + \luadirect{_G[__PENLIGHT__].tex.stoprecording() + YAMLvars.yaml2PDFmetadata(_G[__PENLIGHT__].tex.recordedbuf) + _G[__PENLIGHT__].tex.writePDFmetadata() } } diff --git a/macros/luatex/latex/yamlvars/yamlvars.tex b/macros/luatex/latex/yamlvars/yamlvars.tex index f6aa0893fb..5290f9ec88 100644 --- a/macros/luatex/latex/yamlvars/yamlvars.tex +++ b/macros/luatex/latex/yamlvars/yamlvars.tex @@ -1,5 +1,5 @@ % Kale Ewasiuk (kalekje@gmail.com) -% 2022-04-16 +% 2022-11-06 % Copyright (C) 2021-2022 Kale Ewasiuk % % Permission is hereby granted, free of charge, to any person obtaining a copy @@ -75,7 +75,7 @@ YAMLvars is a LuaLaTeX-based package to help make definitions or produce LaTeX code using a YAML file. -This package might be useful for you if you want to batch create docummnts +This package might be useful for you if you want to batch create documents by pushing various sets YAML data to a fixed LaTeX template, or just find it easier to read document metadata from a YAML file compared to the standard title, author, etc. commands. @@ -128,7 +128,7 @@ like \section{Declaring variables} A declaration file can either be parsed with the command \texttt{declareYAMLvarsFile} command, or, if you want to do it \LaTeX, you can put the YAML code in the \texttt{declareYAMLvars} environment. -It is a declaring YAML docuemnt is (like all YAML) key-value ditionary: +It is a declaring YAML document is (like all YAML) key-value dictionary: The top level key is the name of the variable to be defined/used. If the value of the top level is a string: it's interpreted as a single transform function to be applied. Otherwise, it must -- cgit v1.2.3