diff options
author | Karl Berry <karl@freefriends.org> | 2023-07-19 20:48:55 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-07-19 20:48:55 +0000 |
commit | 4857e138055f6bf0bf18d8eed0ede123f6ee19f6 (patch) | |
tree | dcac3628234b7dd6d9eb76936a969cc6f5f8a112 /Master/texmf-dist/doc | |
parent | 7a50a82a6c74db25c3c266ac25bd9e3e881cf84b (diff) |
yamlvars (19jul23)
git-svn-id: svn://tug.org/texlive/trunk@67674 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r-- | Master/texmf-dist/doc/lualatex/yamlvars/yamlvars.pdf | bin | 83238 -> 82561 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/yamlvars/yamlvars.tex | 43 |
2 files changed, 33 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/lualatex/yamlvars/yamlvars.pdf b/Master/texmf-dist/doc/lualatex/yamlvars/yamlvars.pdf Binary files differindex 093dbecd8ce..a91095c8327 100644 --- a/Master/texmf-dist/doc/lualatex/yamlvars/yamlvars.pdf +++ b/Master/texmf-dist/doc/lualatex/yamlvars/yamlvars.pdf diff --git a/Master/texmf-dist/doc/lualatex/yamlvars/yamlvars.tex b/Master/texmf-dist/doc/lualatex/yamlvars/yamlvars.tex index 5290f9ec889..cd6888cea83 100644 --- a/Master/texmf-dist/doc/lualatex/yamlvars/yamlvars.tex +++ b/Master/texmf-dist/doc/lualatex/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} |