diff options
Diffstat (limited to 'macros/luatex/latex/yamlvars/YAMLvars.tex')
-rw-r--r-- | macros/luatex/latex/yamlvars/YAMLvars.tex | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/macros/luatex/latex/yamlvars/YAMLvars.tex b/macros/luatex/latex/yamlvars/YAMLvars.tex index 38cc59dc48..5e32058dab 100644 --- a/macros/luatex/latex/yamlvars/YAMLvars.tex +++ b/macros/luatex/latex/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. |