texlive[74000] Master/texmf-dist: penlightplus (15feb25)

commits+karl at tug.org commits+karl at tug.org
Sat Feb 15 22:24:21 CET 2025


Revision: 74000
          https://tug.org/svn/texlive?view=revision&revision=74000
Author:   karl
Date:     2025-02-15 22:24:21 +0100 (Sat, 15 Feb 2025)
Log Message:
-----------
penlightplus (15feb25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/luatex/penlightplus/penlightplus.pdf
    trunk/Master/texmf-dist/doc/luatex/penlightplus/penlightplus.tex
    trunk/Master/texmf-dist/tex/luatex/penlightplus/penlightplus.lua
    trunk/Master/texmf-dist/tex/luatex/penlightplus/penlightplus.sty

Modified: trunk/Master/texmf-dist/doc/luatex/penlightplus/penlightplus.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/luatex/penlightplus/penlightplus.tex
===================================================================
--- trunk/Master/texmf-dist/doc/luatex/penlightplus/penlightplus.tex	2025-02-15 21:24:12 UTC (rev 73999)
+++ trunk/Master/texmf-dist/doc/luatex/penlightplus/penlightplus.tex	2025-02-15 21:24:21 UTC (rev 74000)
@@ -1,5 +1,5 @@
 % Kale Ewasiuk (kalekje at gmail.com)
-% 2025-02-11
+% 2025-02-14
 % Copyright (C) 2021-2025 Kale Ewasiuk
 %
 % Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -24,6 +24,7 @@
 
 
 \documentclass[11pt,parskip=half]{scrartcl}
+\usepackage[default]{lato}
 \setlength{\parindent}{0ex}
 \newcommand{\llcmd}[1]{\leavevmode\llap{\texttt{\detokenize{#1}}}}
 \newcommand{\cmd}[1]{\texttt{\detokenize{#1}}}
@@ -133,7 +134,7 @@
 
 \llcmd{pl.utils.}\cmd{filterfiles}\cmd{(dir,filt,rec)} Get files from dir and apply glob-like filters. Set rec to \cmd{true} to include sub directories\\
 
-\llcmd{pl.}{trysplitcomma(s)} will try to split a string on comma (and strip), but if is a table, leave it
+\llcmd{pl.}\cmd{trysplitcomma(s)} will try to split a string on comma (and strip), but if is a table, leave it
 
 \llcmd{pl.}\cmd{findfiles{}} or \cmd{findfiles'kv'} is an updated version of \cmd{filterfiles}. Pass a table or a luakeys
 kv string as the only argument. Valid table options are: \cmd{fn, dir, ext, sub}.
@@ -379,7 +380,9 @@
 
 
 \subsection*{PDF meta data (for pdfx package)}
-\cmd{\writePDFmetadatakv*[x]{kv}} Take a key-value string (eg. \cmd{title=whatever, author=me}) and then writes to the \cmd{jobname.xmpdata} file, which is used by pdfx. \cmd{*} will first clear \cmd{__PDFmetadata__} which contains the metadata. The un-starred version updates that table.
+\cmd{\writePDFmetadatakv*[x]{kv}} Take a key-value string (eg. \cmd{title=whatever, author=me}) and then writes to the \cmd{jobname.xmpdata} file, which is used by pdfx.
+\cmd{*} will first clear \cmd{__PDFmetadata__} which is the table variable that stores the metadata.
+The un-starred version updates that table.
 You can control the expansion of the key-val argument with \cmd{[x]}, which is fully expanded by default.
 Command sequences are ultimately stripped from the values, except for \cmd{\and} is converted to \cmd{\sep} for pdfx usage (\url{https://texdoc.org/serve/pdfx/0}).
 \\

Modified: trunk/Master/texmf-dist/tex/luatex/penlightplus/penlightplus.lua
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/penlightplus/penlightplus.lua	2025-02-15 21:24:12 UTC (rev 73999)
+++ trunk/Master/texmf-dist/tex/luatex/penlightplus/penlightplus.lua	2025-02-15 21:24:21 UTC (rev 74000)
@@ -1,5 +1,5 @@
 --% Kale Ewasiuk (kalekje at gmail.com)
---% 2025-02-11
+--% 2025-02-14
 --% Copyright (C) 2021-2025 Kale Ewasiuk
 --%
 --% Permission is hereby granted, free of charge, to any person obtaining a copy

Modified: trunk/Master/texmf-dist/tex/luatex/penlightplus/penlightplus.sty
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/penlightplus/penlightplus.sty	2025-02-15 21:24:12 UTC (rev 73999)
+++ trunk/Master/texmf-dist/tex/luatex/penlightplus/penlightplus.sty	2025-02-15 21:24:21 UTC (rev 74000)
@@ -1,5 +1,5 @@
 % Kale Ewasiuk (kalekje at gmail.com)
-% 2025-02-11
+% 2025-02-14
 % Copyright (C) 2021-2025 Kale Ewasiuk
 %
 % Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -22,7 +22,7 @@
 % OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
 % OR OTHER DEALINGS IN THE SOFTWARE.
 
-\ProvidesPackage{penlightplus}[2025-02-11]
+\ProvidesPackage{penlightplus}[2025-02-14]
 
 \RequirePackage{luacode}
 \RequirePackage{luakeys}
@@ -44,10 +44,10 @@
 
 \NewDocumentCommand{\writePDFmetadatakv}{ s O{f} m }{%
 \MakeluastringCommands[f]{#2}%
-\IfBooleanTF{#1}{% if *, overwrite everything
+\IfBooleanTF{#1}{% if *, delete existing data
   \luadirect{
     __PDFmetadata__ = penlight.tex.makePDFtablekv(\plluastringA{#3})
-  }}{
+  }}{ % if no star, update
     \luadirect{
     __PDFmetadata__ = __PDFmetadata__ or {}
     penlight.tablex.update(__PDFmetadata__, penlight.tex.makePDFtablekv(\plluastringA{#3}))
@@ -73,8 +73,6 @@
 %\gdef\luastringE#1{\begin{luastringeenv#1\endluastringeenv}
 
 
-
-
 % allow control over expansion of arguments to a latex function
 \NewDocumentCommand{\MakeluastringCommands}{O{} m }{% #1 the desired commands #2 defaults
   \luadirect{penlight.tex.aliasluastring(\luastring{#2},\luastring{#1})}%
@@ -85,27 +83,19 @@
 
 
 
-
-
 %%%%
 
 \newtoggle{luaexpr}\togglefalse{luaexpr}
 
-
-
-\NewDocumentCommand{\ifluax}{m m O{}}{% if lua expression is true do {m} if not [o]
-  \luadirect{penlight.toggle_luaexpr(#1)}%
+\NewDocumentCommand{\ifluax}{m +m +O{}}{% if lua expression is true do {m} if not [o]
+  \luadirect{penlight.toggle_luaexpr(\expanded{#1})}%
   \iftoggle{luaexpr}{#2}{#3}%
   \togglefalse{luaexpr}% safety set to false
 }
 
-\NewDocumentCommand{\ifluaxv}{m m O{}}{\ifluax{penlight.hasval(#1)}{#2}[#3]}% if lua expression is truthy do {m} else [o]
+\NewDocumentCommand{\ifluaxv}{m +m +O{}}{\ifluax{penlight.hasval(#1)}{#2}[#3]}% if lua expression is truthy do {m} else [o]
 
 
-
-
-
-
 \NewDocumentCommand{\caseswitch}{s m +m}{\ignorespaces\luadirect{penlight.caseswitch(\luastring{#1},\luastring{#2},\luastringN{#3})}\unskip}
 % argument 1 is star option, which throws an error if case is not found
 % argument 2 is the case, fully expanded



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