texlive[69874] branches/branch2023.final/Master/texmf-dist:

commits+karl at tug.org commits+karl at tug.org
Wed Feb 14 22:40:48 CET 2024


Revision: 69874
          https://tug.org/svn/texlive?view=revision&revision=69874
Author:   karl
Date:     2024-02-14 22:40:48 +0100 (Wed, 14 Feb 2024)
Log Message:
-----------
lua-placeholders (branch) (12feb24)

Modified Paths:
--------------
    branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-deps.bib
    branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-example/example-specification.yaml
    branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-example/example.pdf
    branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-example/example.tex
    branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-example/example.yaml
    branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-manual.pdf
    branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-manual.tex
    branches/branch2023.final/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders-namespace.lua
    branches/branch2023.final/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders-types.lua
    branches/branch2023.final/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders.lua
    branches/branch2023.final/Master/texmf-dist/tex/lualatex/lua-placeholders/lua-placeholders.sty

Removed Paths:
-------------
    branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-example/example.json

Modified: branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-deps.bib
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-deps.bib	2024-02-14 21:40:33 UTC (rev 69873)
+++ branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-deps.bib	2024-02-14 21:40:48 UTC (rev 69874)
@@ -1,8 +1,12 @@
 
- at misc{tiny,
-    title = {lua-tinyyaml},
-    note = {Accessed: 23 January, 2024},
-    howpublished = {\url{https://ctan.org/pkg/lua-tinyyaml} and \url{https://github.com/api7/lua-tinyyaml}},
+ at manual{lua-tinyyaml,
+  title = {The lua-tinyyaml package},
+  subtitle = {A tiny YAML (subset) parser for pure Lua},
+  author = {Lee, Zeping},
+  url = {https://ctan.org/pkg/lua-tinyyaml},
+  urldate = {2024-02-12},
+  date = {},
+  version = {0.4.3},
 }
 
 @misc{lyaml,
@@ -17,3 +21,13 @@
     note = {Accessed: 6 January, 2024},
     howpublished = {\url{https://pyyaml.org/wiki/LibYAML} and \url{https://packages.msys2.org/package/mingw-w64-x86_64-libyaml}},
 }
+
+ at manual{numprint,
+  title = {The numprint package},
+  subtitle = {Print numbers with separators and exponent if necessary},
+  author = {Harders, Harald},
+  url = {https://ctan.org/pkg/numprint},
+  urldate = {2024-02-12}, 
+  date = {2012},
+  version = {1.39},
+}

Modified: branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-example/example-specification.yaml
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-example/example-specification.yaml	2024-02-14 21:40:33 UTC (rev 69873)
+++ branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-example/example-specification.yaml	2024-02-14 21:40:48 UTC (rev 69874)
@@ -6,7 +6,7 @@
   placeholder: A string
 number example:
   type: number
-  default: -1
+  default: -1.21
 list example:
   type: list
   item type: string
@@ -22,6 +22,9 @@
     email:
       type: string
       placeholder: Your email
+    grade:
+      type: number
+      default: 5.5
 table example:
   type: table
   columns:

Deleted: branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-example/example.json
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-example/example.json	2024-02-14 21:40:33 UTC (rev 69873)
+++ branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-example/example.json	2024-02-14 21:40:48 UTC (rev 69874)
@@ -1,19 +0,0 @@
-{
-  "bool example": true,
-  "string example": "PeelInc.",
-  "number example": 1,
-  "list example": ["Tomatoes", "Potatoes"],
-  "object example": {
-    "name": "John Doe",
-    "email": "j.doe at example.com"
-  },
-  "table example": [
-    {
-      "description":  "Peeling tomatoes",
-      "price": 50.00
-    }, {
-      "description": "Peeling potatoes",
-      "price": 25.00
-    }
-  ]
-}

Modified: branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-example/example.pdf
===================================================================
(Binary files differ)

Modified: branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-example/example.tex
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-example/example.tex	2024-02-14 21:40:33 UTC (rev 69873)
+++ branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-example/example.tex	2024-02-14 21:40:48 UTC (rev 69874)
@@ -19,10 +19,12 @@
 
 \documentclass{article}
 \usepackage{gitinfo-lua}
-\usepackage{lua-placeholders}
+\usepackage{../../tex/lua-placeholders}
 \usepackage{listings}
 \usepackage{amsmath}
 \usepackage{calc}
+\usepackage[dutch,english]{babel}
+\usepackage[autolanguage]{numprint}
 
 \loadrecipe[\jobname]{example-specification.yaml}
 
@@ -66,10 +68,24 @@
 
     Number example:\\
 
+    \lstinline[style=TeX,morekeywords={rawparam}]|\rawparam{\jobname}{number example}|
+    $\implies$
+    \rawparam{\jobname}{number example}\\
+
     \lstinline[style=TeX,morekeywords={param}]|\param{number example}|
     $\implies$
+    \lstinline[style=TeX,morekeywords={numprint}]|\numprint{|\rawparam{\jobname}{number example}\verb|}|
+    $\implies$
     \param{number example}\\
 
+    \clearpage
+
+    Number in foreign language:\\
+
+    \lstinline[style=TeX,morekeywords={param,selectlanguage}]|\selectlanguage{dutch}\param{number example}|\\
+    $\implies$
+    \begingroup\selectlanguage{dutch}\param{number example}\endgroup\\
+
     List example:\\
 
     \lstinline[style=TeX,morekeywords={param}]|\param{list example}|
@@ -92,14 +108,16 @@
 
     \lstinline[style=TeX,morekeywords={paramfield}]|\paramfield{object example}{name}|\\
     \lstinline[style=TeX,morekeywords={paramfield}]|\paramfield{object example}{email}|\\
+    \lstinline[style=TeX,morekeywords={paramfield}]|\paramfield{object example}{grade}|\\
     $\implies$
     \paramfield{object example}{name}
-    \paramfield{object example}{email}\\
+    \paramfield{object example}{email}
+    \paramfield{object example}{grade}\\
 
-    \begin{lstlisting}[style=TeX,morekeywords={name,email}]
+    \begin{lstlisting}[style=TeX,morekeywords={name,email,grade}]
 \newcommand\name{...}
 \begin{paramobject}{object example}
-    \name \email
+    \name \email \grade
 \end{paramobject}
 % And here it works again
 \name
@@ -108,7 +126,7 @@
     \newcommand\name{...}%
     \parbox{\linewidth}{
     \begin{paramobject}{object example}
-        \name \email
+        \name \email \grade
     \end{paramobject}
     \name
     }\\
@@ -115,19 +133,23 @@
 
     Table example:\\
 
-    \begin{lstlisting}[style=TeX,morekeywords={formatrow,fortablerow,description,price}]
+    \begin{lstlisting}[style=TeX,morekeywords={nprounddigits,npnoround,formatrow,fortablerow,description,price}]
+\nprounddigits{2}
 \newcommand\formatrow{\description & \price \\}%
 \begin{tabular}{l | l}
     \textbf{Description} & \textbf{Price} \\ \hline
     \fortablerow{table example}{formatrow}
 \end{tabular}
+\npnoround
     \end{lstlisting}
     $\implies$
+    \nprounddigits{2}
     \newcommand\formatrow{\description & \price \\}%
     \begin{tabular}{l | l}
         \textbf{Description} & \textbf{Price} \\ \hline
         \fortablerow{table example}{formatrow}
     \end{tabular}
+    \npnoround
 
 
     \section*{After values loaded}
@@ -151,10 +173,24 @@
 
     Number example:\\
 
+    \lstinline[style=TeX,morekeywords={rawparam}]|\rawparam{\jobname}{number example}|
+    $\implies$
+    \rawparam{\jobname}{number example}\\
+
     \lstinline[style=TeX,morekeywords={param}]|\param{number example}|
     $\implies$
+    \lstinline[style=TeX,morekeywords={numprint}]|\numprint{|\rawparam{\jobname}{number example}\verb|}|
+    $\implies$
     \param{number example}\\
 
+    Number in foreign language:\\
+
+    \lstinline[style=TeX,morekeywords={param,selectlanguage}]|\selectlanguage{dutch}\param{number example}|\\
+    $\implies$
+    \lstinline[style=TeX,morekeywords={numprint}]|\numprint{|\rawparam{\jobname}{number example}\lstinline|}|
+    $\implies$
+    \begingroup\selectlanguage{dutch}\param{number example}\endgroup\\
+
     List example:\\
 
     \lstinline[style=TeX,morekeywords={param}]|\param{list example}|
@@ -177,14 +213,16 @@
 
     \lstinline[style=TeX,morekeywords={paramfield}]|\paramfield{object example}{name}|\\
     \lstinline[style=TeX,morekeywords={paramfield}]|\paramfield{object example}{email}|\\
+    \lstinline[style=TeX,morekeywords={paramfield}]|\paramfield{object example}{grade}|\\
     $\implies$
     \paramfield{object example}{name}
-    \paramfield{object example}{email}\\
+    \paramfield{object example}{email}
+    \paramfield{object example}{grade}\\
 
-    \begin{lstlisting}[style=TeX,morekeywords={name,email}]
+    \begin{lstlisting}[style=TeX,morekeywords={name,email,grade}]
 \newcommand\name{...}
 \begin{paramobject}{object example}
-    \name \email
+    \name \email \grade
 \end{paramobject}
 % And here it works again
 \name
@@ -192,7 +230,7 @@
     $\implies$
     \parbox{\linewidth}{
     \begin{paramobject}{object example}
-        \name \email
+        \name \email \grade
     \end{paramobject}
     \name
     }\\
@@ -199,27 +237,25 @@
 
     Table example:\\
 
-    \begin{lstlisting}[style=TeX,morekeywords={formatrow,fortablerow,description,price}]
+    \begin{lstlisting}[style=TeX,morekeywords={nprounddigits,npnoround,formatrow,fortablerow,description,price}]
+\nprounddigits{2}
 \newcommand\formatrow{\description & \price \\}%
 \begin{tabular}{l | l}
     \textbf{Description} & \textbf{Price} \\ \hline
     \fortablerow{table example}{formatrow}
 \end{tabular}
+\npnoround
     \end{lstlisting}
     $\implies$
+    \nprounddigits{2}%
     \begin{tabular}{l | l}
         \textbf{Description} & \textbf{Price} \\ \hline
         \fortablerow{table example}{formatrow}
     \end{tabular}
 
-    \section*{Specification File}
-    \lstinputlisting[language=YAML,numbers=left,xleftmargin=15pt,caption={example-specification.yaml},columns=fullflexible]{example-specification.yaml}
-
-    \clearpage
-
     \section*{Payload File}
     \lstinputlisting[language=YAML,numbers=left,xleftmargin={15pt},caption={example.yaml},columns=fullflexible]{example.yaml}
 
-    \section*{Fallback Payload}
-    \lstinputlisting[language=JSON,numbers=left,xleftmargin={15pt},caption={example.json},columns=fullflexible]{example.json}
+    \section*{Specification File}
+    \lstinputlisting[language=YAML,numbers=left,xleftmargin=15pt,caption={example-specification.yaml},columns=fullflexible]{example-specification.yaml}
 \end{document}

Modified: branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-example/example.yaml
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-example/example.yaml	2024-02-14 21:40:33 UTC (rev 69873)
+++ branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-example/example.yaml	2024-02-14 21:40:48 UTC (rev 69874)
@@ -1,6 +1,6 @@
 bool example: true
 string example: PeelInc.
-number example: 1
+number example: 1.21
 list example:
   - Tomatoes
   - Potatoes
@@ -7,8 +7,9 @@
 object example:
   name: John Doe
   email: j.doe at example.com
+  grade: 9.5
 table example:
   - description: Peeling tomatoes
-    price: 50.00
+    price: 50
   - description: Peeling potatoes
-    price: 25.00
+    price: 25

Modified: branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-manual.pdf
===================================================================
(Binary files differ)

Modified: branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-manual.tex
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-manual.tex	2024-02-14 21:40:33 UTC (rev 69873)
+++ branches/branch2023.final/Master/texmf-dist/doc/lualatex/lua-placeholders/lua-placeholders-manual.tex	2024-02-14 21:40:48 UTC (rev 69874)
@@ -32,6 +32,7 @@
 \usepackage{attachfile2}
 \usepackage{enumitem}
 \usepackage{biblatex}
+\usepackage[english]{isodate}
 
 \DefineBibliographyStrings{english}{%
   bibliography = {References},
@@ -43,7 +44,6 @@
 \embedfile[desc={Parameter Specification Example},filespec=example.pdf]{lua-placeholders-example/example.pdf}
 \embedfile[desc={Parameter Specification Example (YAML)},filespec=example-specification.yaml]{lua-placeholders-example/example-specification.yaml}
 \embedfile[desc={Values Specification Example},filespec=example.yaml]{lua-placeholders-example/example.yaml}
-\embedfile[desc={Values Fallback Specification Example},filespec=example.json]{lua-placeholders-example/example.json}
 
 \def\projecturl{https://github.com/Xerdi/lua-placeholders}
 
@@ -88,6 +88,9 @@
     \end{enumerate}
 
     \subsection{Prerequisites}
+    For proper number formatting package \texttt{numprint}\cite{numprint} is required.
+
+    \subsubsection{YAML Support}
     If you're using JSON as \meta{recipe} and \meta{payload} format, the following requirements are no longer needed, since Lua\TeX{} already supports JSON formats out of the box.
 
     For YAML support, however, this package requires the \texttt{lyaml}\cite{lyaml} Lua module for parsing the YAML files.
@@ -94,7 +97,7 @@
     This also includes the \texttt{libYAML}\cite{libYAML} platform dependent library and optionally LuaRocks for installing \texttt{lyaml}.
     Another requirement is Lua, which version meets the Lua version used by Lua\TeX{}.
     If no \texttt{LUA\_PATH} is set, and you use LuaRocks, this package tries to call the LuaRocks executable to find the \texttt{LUA\_PATH}.
-    If \texttt{lyaml} can't be loaded, this package will first try to fall back with \texttt{lua-tinyyaml}\cite{tiny} for lesser YAML support and secondly fall back on accepting JSON files only.
+    If \texttt{lyaml} can't be loaded, this package will first try to fall back with \texttt{lua-tinyyaml}\cite{lua-tinyyaml} for lesser YAML support and secondly fall back on accepting JSON files only.
 
     \clearpage
     \section{Usage}
@@ -155,9 +158,14 @@
         \item[number] representing a number, like the number type of Lua.
         In most cases it's necessary to use \meta{default} instead of \meta{placeholder}, especially when the number is used in calculations, since a placeholder will cause errors in \LaTeX{} calculations.\\
         \showexample{7}{7-9}{3}{3-3}
+        \DescribeMacro{\param}
         A number type can be used with \cmd{\param}, just like the string type.
-        \DescribeMacro{\numparam} However, the \cmd{\numparam}\oarg{namespace}\marg{name} command uses \cmd{\numprint} to properly format the number according to the selected language.
+        In version 1.0.0 there was a special command \cmd{\numparam}, which is now deprecated as it now is the default implementation for number types using \cmd{\param}.
+        When \cmd{\numprint} is defined, it will use it for display using \cmd{\param}.
+        When \cmd{\numprint} isn't defined, it will print a warning message and formats the number as is.
+        The same behavior counts for number types within a \texttt{list}, \texttt{object} or \texttt{table}.
         Read the documentation of package \texttt{numprint} for more information.
+        If you need a nonformatted version of the number, use \cmd{\rawparam} instead.
         \item[list] representing a list of values.
         The value type is specified by \meta{value type}.
         A \meta{default} setting can be set.
@@ -176,7 +184,7 @@
         \item[object] representing a list of key value pairs.
         This parameter type requires a \meta{fields} specification to be set.
         Any field must be of type \texttt{bool}, \texttt{number} or \texttt{string}.\\
-        \showexample{16}{16-24}{7}{7-9}
+        \showexample{16}{16-27}{7}{7-10}
         There is no support for the \cmd{\param} command.
         \DescribeMacro{\paramfield}
         In order to show to contents there is the \cmd{\paramfield}\oarg{namespace}\marg{name}\marg{field} command.
@@ -190,7 +198,7 @@
         This parameter type requires a \meta{columns} specification to be set.
         The \meta{columns} describes each column by name with its own type specification.
         Like the object field, only the types \texttt{bool}, \texttt{number} and \texttt{string} are supported column types.\\
-        \showexample[20pt]{25}{25}{10}{10}
+        \showexample[20pt]{28}{28-36}{11}{11-15}
         \DescribeMacro{\fortablerow}
         Like the object, the table has no support for \cmd{\param}, but comes with a table specific command \cmd{\fortablerow}\oarg{namespace}\marg{name}\marg{csname}.
         The control sequence name \meta{csname} is a user-defined command with no arguments, containing any of the column names in a command form.
@@ -206,6 +214,24 @@
     \printbibliography[heading=bibnumbered]
 
     \clearpage
+
+    \section{Changelog}
+    \newcommand\commitline[3]{\item #1\ifx&#3&%
+    \else\\[1em]
+    #3\fi\\\hspace*{1em} — \printdate{#2}}
+    \newcommand\formatversion[3]{%
+        \item[#1]
+        \gittag[(taggerdate)(taggerdate:short)(authordate:short)]{printdate}{#1}
+        \begin{itemize}
+            \forgitcommit[s,as,b]{commitline}{#3}
+        \end{itemize}
+    }%
+    \begin{description}
+        \forgittagseq{formatversion}
+    \end{description}
+
+    \clearpage
+
     \section{Example}
 
     The source file \texttt{example.tex} is a perfect demonstration of all macros in action.

Modified: branches/branch2023.final/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders-namespace.lua
===================================================================
--- branches/branch2023.final/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders-namespace.lua	2024-02-14 21:40:33 UTC (rev 69873)
+++ branches/branch2023.final/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders-namespace.lua	2024-02-14 21:40:48 UTC (rev 69874)
@@ -66,7 +66,7 @@
                 else
                     texio.write_nl('Warning: passed an unknown key ' .. key)
                 end
-                texio.write_nl('Key' .. key)
+                texio.write_nl('Info: loaded key ' .. key)
             end
         else
             texio.write_nl('Warning: Payload file was empty')

Modified: branches/branch2023.final/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders-types.lua
===================================================================
--- branches/branch2023.final/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders-types.lua	2024-02-14 21:40:33 UTC (rev 69873)
+++ branches/branch2023.final/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders-types.lua	2024-02-14 21:40:48 UTC (rev 69874)
@@ -40,10 +40,14 @@
     return self and ((self.values or self.fields or self.value) ~= nil)
 end
 
-function base_param:val()
+function base_param:raw_val()
     return self.value or self.values or self.default
 end
 
+function base_param:val()
+    return self:raw_val()
+end
+
 function base_param:to_upper()
     local val = self:val()
     if type(val) == 'string' then
@@ -56,7 +60,7 @@
 function base_param:print_val()
     local value = self:val()
     if value ~= nil then
-        tex.write(value)
+        tex.sprint(value)
     else
         tex.sprint(lua_placeholders_toks.placeholder_format, '{', self.placeholder or self.key, '}')
     end
@@ -77,7 +81,7 @@
     return o
 end
 
-function bool_param:val()
+function bool_param:raw_val()
     local value
     if self.value ~= nil then
         value = tostring(self.value)
@@ -122,21 +126,29 @@
     return o
 end
 
-function number_param:val()
+function number_param:raw_val()
     if self.value or self.default then
-        return tex.number(self.value or self.default)
+        return self.value or self.default
     end
 end
 
-function number_param:print_num()
-    local val = self:val()
+function number_param:val()
+    local val = self:raw_val()
     if val then
-        tex.print('\\numprint{' .. val .. '}')
-    else
-        tex.sprint(lua_placeholders_toks.placeholder_format, '{', self.placeholder or self.key, '}')
+        if token.is_defined('numprint') then
+            return '\\numprint{' .. val .. '}'
+        else
+            texio.write_nl([[Warning: package 'numprint' not loaded. Outputting numbers as is.]])
+            return val
+        end
     end
 end
 
+function number_param:print_num()
+    texio.write_nl('Warning: number_param:print_num is deprecated. Use number_param:print_val instead')
+    self:print_val()
+end
+
 list_param = base_param:new{
     type = 'list'
 }

Modified: branches/branch2023.final/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders.lua
===================================================================
--- branches/branch2023.final/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders.lua	2024-02-14 21:40:33 UTC (rev 69873)
+++ branches/branch2023.final/Master/texmf-dist/scripts/lua-placeholders/lua-placeholders.lua	2024-02-14 21:40:48 UTC (rev 69874)
@@ -23,8 +23,8 @@
 end
 
 modules.lua_placeholders = {
-    version = "1.0.0",
-    date = "2024/01/23",
+    version = "1.0.1",
+    date = "2024/02/12",
     comment = 'Extended LaTeX Parameter Interface — for specifying and inserting document parameters',
     author = 'Erik Nijenhuis',
     license = 'free'

Modified: branches/branch2023.final/Master/texmf-dist/tex/lualatex/lua-placeholders/lua-placeholders.sty
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/lualatex/lua-placeholders/lua-placeholders.sty	2024-02-14 21:40:33 UTC (rev 69873)
+++ branches/branch2023.final/Master/texmf-dist/tex/lualatex/lua-placeholders/lua-placeholders.sty	2024-02-14 21:40:48 UTC (rev 69874)
@@ -19,7 +19,7 @@
 % lua-placeholders-parser.lua and lua-placeholders-types.lua
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{lua-placeholders}[2024/01/23 1.0.0 Extended LaTeX Paramter Interface Package]
+\ProvidesPackage{lua-placeholders}[2024/02/12 1.0.1 Extended LaTeX Paramter Interface Package]
 
 \RequirePackage{ifthen}
 \RequirePackage{luapackageloader}
@@ -41,7 +41,7 @@
     \ifthenelse{\boolean{#2}}{#3}{#4}}
 \newcommand\param[2][\curnamespace]{\directlua{lua_placeholders.param('#2', '#1')}}
 \newcommand\PARAM[2][\curnamespace]{\directlua{local p = lua_placeholders.param_object('#2', '#1') if p then tex.print(p:to_upper()) end}}
-\def\rawparam#1#2{\directlua{local p = lua_placeholders.param_object('#2', '#1') if p then tex.print(p:val() or p.default or p.placeholder) end}}
+\def\rawparam#1#2{\directlua{local p = lua_placeholders.param_object('#2', '#1') if p then tex.print(p:raw_val() or p.default or p.placeholder) end}}
 \newcommand\numparam[2][\curnamespace]{\directlua{local n = lua_placeholders.param_object('#2', '#1') if n then n:print_num() end}}
 \newcommand\hasparam[4][\curnamespace]{%
     \def\has at param@true{#3}%



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