summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/yamlvars/yamlvars.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-07-20 03:00:54 +0000
committerNorbert Preining <norbert@preining.info>2023-07-20 03:00:54 +0000
commit16b3f7ad411e343f19c82febffd51601bbe90d3f (patch)
treeb7de45527fdfa95834c086d9fd6109133e86a202 /macros/luatex/latex/yamlvars/yamlvars.tex
parentd3bd608be0e8ac816c5d16ef32b4e046f869713f (diff)
CTAN sync 202307200300
Diffstat (limited to 'macros/luatex/latex/yamlvars/yamlvars.tex')
-rw-r--r--macros/luatex/latex/yamlvars/yamlvars.tex43
1 files changed, 33 insertions, 10 deletions
diff --git a/macros/luatex/latex/yamlvars/yamlvars.tex b/macros/luatex/latex/yamlvars/yamlvars.tex
index 5290f9ec88..cd6888cea8 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-11-06
+% 2023-07-18
% Copyright (C) 2021-2022 Kale Ewasiuk
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -53,8 +53,8 @@
\date{\today}
-\usepackage[pl,extrasnoglobals]{penlight}
-\usepackage[overwritedefs]{YAMLvars}
+\usepackage[pl,extrasglobals]{penlight}
+\usepackage[overwritedefs]{yamlvars}
\title{YAMLvars}
\subtitle{a YAML variable parser for LuaLaTeX}
@@ -107,14 +107,10 @@ will br thrown if the name exists. Alternatively, you can use the commands \cmd{
\llcmd{overwritedefs}Danger! This will allow you to \cmd{gdef} commands with YAML. Caution should be taken to not set definitions like \cmd{begin}, \cmd{section}, etc.
\section{Dependencies}
-%This package contains the \texttt{tinyyaml} Lua package.
-\llcmd{Note:}This package requires that the \cmd{markdown} (\url{https://ctan.org/pkg/markdown}) be installed. This package does not use the package in its entirety, but rather depends on the YAML interpreter it comes with: \cmd{markdown-tinyyaml.lua}. This dependency is chosen to avoid redundancy in your TeX installation and align development of the \cmd{tinyyaml} Lua package.
-If you want to use the YAML interpreter for other purposes, you can bring it into Lua by either:
-\begin{verbatim}
-\directlua{yaml = YAMLvars.yaml} or
-\directlua{yaml = require'markdown-tinyyaml'}
-\end{verbatim}
+\llcmd{Note:}This package requires the \cmd{tinyyaml} package, available on CTAN.
+
The distribution: \url{https://github.com/api7/lua-tinyyaml}\\
+\ \ \ \ \url{https://ctan.org/pkg/lua-tinyyaml}\\
The YAML specification: \url{https://yaml.org/spec/}\\
Many of the ``transform'' and ``processing'' functions built-in to this package rely on other packages,
@@ -393,5 +389,32 @@ Items:
\lstinputlisting[linerange=113-296]{yamlvars.lua}
+%
+%\AllowUndeclaredYV
+%\luadirect{YAMLvars.xfmDefault={'lb2nl','addxspace'}}
+
+%
+%\luadirect{YAMLvars.debug = true}
+%\setYAMLvars{undeclared, xfm= lb2nl addxspace}
+%\begin{parseYAMLvars}
+%kale: |-
+% kale
+% eee
+%\end{parseYAMLvars}
+%
+%\kale ee
+%
+%\setYAMLvars{undeclared, xfm=list2items}
+%\begin{parseYAMLvars}
+%lllist:
+% - one
+% - two
+% - three
+%\end{parseYAMLvars}
+%
+%\begin{itemize}
+% \lllist
+%\end{itemize}
+
\end{document}