From d358de4496e1833473023a9fe431880e5fa05336 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 16 Dec 2021 21:19:34 +0000 Subject: yamlvars (16dec21) git-svn-id: svn://tug.org/texlive/trunk@61327 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/doc/lualatex/yamlvars/YAMLvars.pdf | Bin 46334 -> 46890 bytes .../texmf-dist/doc/lualatex/yamlvars/YAMLvars.tex | 8 +++++++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'Master/texmf-dist/doc/lualatex/yamlvars') diff --git a/Master/texmf-dist/doc/lualatex/yamlvars/YAMLvars.pdf b/Master/texmf-dist/doc/lualatex/yamlvars/YAMLvars.pdf index 18fa3a43e3d..eeeab7ea6c0 100644 Binary files a/Master/texmf-dist/doc/lualatex/yamlvars/YAMLvars.pdf and b/Master/texmf-dist/doc/lualatex/yamlvars/YAMLvars.pdf differ diff --git a/Master/texmf-dist/doc/lualatex/yamlvars/YAMLvars.tex b/Master/texmf-dist/doc/lualatex/yamlvars/YAMLvars.tex index 38cc59dc488..5e32058dabe 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) -% 2021-11-07 +% 2021-12-15 % Copyright (C) 2021 Kale Ewasiuk % % Permission is hereby granted, free of charge, to any person obtaining a copy @@ -145,6 +145,12 @@ Rhead: \end{verbatim} +To change how a variable is declared (initialize), you can modify or add functions in +\texttt{YAMLvars.dec} table, where the index is the same as the \texttt{prc} name. +This function accepts two variables, the var name, and the default value set by dft. +For lengths and toggles (from etoolbox), these functions are used to initialize lengths +with newlength and newtoggle. + \section{Parsing variables} A YAML file to be parsed will contain the variables as the top level keys, similar to declaring. -- cgit v1.2.3