texlive[64949] Master/texmf-dist: yamlvars (6nov22)

commits+karl at tug.org commits+karl at tug.org
Sun Nov 6 21:45:15 CET 2022


Revision: 64949
          http://tug.org/svn/texlive?view=revision&revision=64949
Author:   karl
Date:     2022-11-06 21:45:15 +0100 (Sun, 06 Nov 2022)
Log Message:
-----------
yamlvars (6nov22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/lualatex/yamlvars/yamlvars.pdf
    trunk/Master/texmf-dist/doc/lualatex/yamlvars/yamlvars.tex
    trunk/Master/texmf-dist/tex/lualatex/yamlvars/yamlvars.lua
    trunk/Master/texmf-dist/tex/lualatex/yamlvars/yamlvars.sty

Modified: trunk/Master/texmf-dist/doc/lualatex/yamlvars/yamlvars.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/lualatex/yamlvars/yamlvars.tex
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/yamlvars/yamlvars.tex	2022-11-06 20:44:55 UTC (rev 64948)
+++ trunk/Master/texmf-dist/doc/lualatex/yamlvars/yamlvars.tex	2022-11-06 20:45:15 UTC (rev 64949)
@@ -1,5 +1,5 @@
 % Kale Ewasiuk (kalekje at 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 @@
 \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

Modified: trunk/Master/texmf-dist/tex/lualatex/yamlvars/yamlvars.lua
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/yamlvars/yamlvars.lua	2022-11-06 20:44:55 UTC (rev 64948)
+++ trunk/Master/texmf-dist/tex/lualatex/yamlvars/yamlvars.lua	2022-11-06 20:45:15 UTC (rev 64949)
@@ -1,5 +1,5 @@
 --% Kale Ewasiuk (kalekje at 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

Modified: trunk/Master/texmf-dist/tex/lualatex/yamlvars/yamlvars.sty
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/yamlvars/yamlvars.sty	2022-11-06 20:44:55 UTC (rev 64948)
+++ trunk/Master/texmf-dist/tex/lualatex/yamlvars/yamlvars.sty	2022-11-06 20:45:15 UTC (rev 64949)
@@ -1,5 +1,5 @@
 % Kale Ewasiuk (kalekje at 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()
   }
 }
 



More information about the tex-live-commits mailing list.