texlive[72318] Master/texmf-dist: nodetree (18sep24)

commits+karl at tug.org commits+karl at tug.org
Wed Sep 18 21:24:15 CEST 2024


Revision: 72318
          https://tug.org/svn/texlive?view=revision&revision=72318
Author:   karl
Date:     2024-09-18 21:24:14 +0200 (Wed, 18 Sep 2024)
Log Message:
-----------
nodetree (18sep24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/luatex/nodetree/README.md
    trunk/Master/texmf-dist/doc/luatex/nodetree/nodetree-doc.tex
    trunk/Master/texmf-dist/doc/luatex/nodetree/nodetree.pdf
    trunk/Master/texmf-dist/source/luatex/nodetree/nodetree.dtx
    trunk/Master/texmf-dist/source/luatex/nodetree/nodetree.ins
    trunk/Master/texmf-dist/tex/luatex/nodetree/nodetree-embed.sty
    trunk/Master/texmf-dist/tex/luatex/nodetree/nodetree.lua
    trunk/Master/texmf-dist/tex/luatex/nodetree/nodetree.sty
    trunk/Master/texmf-dist/tex/luatex/nodetree/nodetree.tex

Modified: trunk/Master/texmf-dist/doc/luatex/nodetree/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/luatex/nodetree/README.md	2024-09-17 23:42:04 UTC (rev 72317)
+++ trunk/Master/texmf-dist/doc/luatex/nodetree/README.md	2024-09-18 19:24:14 UTC (rev 72318)
@@ -18,7 +18,7 @@
 
 # License
 
-Copyright (C) 2016-2023 by Josef Friedrich <josef at friedrich.rocks>
+Copyright (C) 2016-2024 by Josef Friedrich <josef at friedrich.rocks>
 ------------------------------------------------------------------------
 This work may be distributed and/or modified under the conditions of
 the LaTeX Project Public License, either version 1.3 of this license
@@ -150,8 +150,8 @@
 ### Update the copyright year:
 
 ```
-sed -i 's/(C) 2016-2023/(C) 2016-2021/g' nodetree.ins
-sed -i 's/(C) 2016-2023/(C) 2016-2021/g' nodetree.dtx
+sed -i 's/(C) 2016-2024/(C) 2016-2021/g' nodetree.ins
+sed -i 's/(C) 2016-2024/(C) 2016-2021/g' nodetree.dtx
 ```
 
 ### Command line tasks:

Modified: trunk/Master/texmf-dist/doc/luatex/nodetree/nodetree-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/luatex/nodetree/nodetree-doc.tex	2024-09-17 23:42:04 UTC (rev 72317)
+++ trunk/Master/texmf-dist/doc/luatex/nodetree/nodetree-doc.tex	2024-09-18 19:24:14 UTC (rev 72318)
@@ -107,7 +107,7 @@
   \href{https://github.com/Josef-Friedrich/nodetree}{github.com/Josef-Friedrich/nodetree}\\%
   with contributions by Werner Lemberg
 }
-\date{v2.3.0 from 2023/09/10}
+\date{v2.4.0 from 2024/09/17}
 
 \maketitle
 

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

Modified: trunk/Master/texmf-dist/source/luatex/nodetree/nodetree.dtx
===================================================================
--- trunk/Master/texmf-dist/source/luatex/nodetree/nodetree.dtx	2024-09-17 23:42:04 UTC (rev 72317)
+++ trunk/Master/texmf-dist/source/luatex/nodetree/nodetree.dtx	2024-09-18 19:24:14 UTC (rev 72318)
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% Copyright (C) 2016-2023 by Josef Friedrich <josef at friedrich.rocks>
+% Copyright (C) 2016-2024 by Josef Friedrich <josef at friedrich.rocks>
 % ----------------------------------------------------------------------
 % This work may be distributed and/or modified under the conditions of
 % the LaTeX Project Public License, either version 1.3 of this license
@@ -28,7 +28,7 @@
 %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
 %<package>\ProvidesPackage{nodetree}
 %<*package>
-    [2023/09/10 v2.3.0 Visualize node lists in a tree view]
+    [2024/09/17 v2.4.0 Visualize node lists in a tree view]
 %</package>
 % \fi
 %
@@ -218,7 +218,7 @@
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}[1994/06/01]
 \ProvidesPackage{nodetree-embed}
-  [2023/09/10 v2.3.0 Embed node trees into a LaTeX document]
+  [2024/09/17 v2.4.0 Embed node trees into a LaTeX document]
 %    \end{macrocode}
 %
 %    \begin{macrocode}

Modified: trunk/Master/texmf-dist/source/luatex/nodetree/nodetree.ins
===================================================================
--- trunk/Master/texmf-dist/source/luatex/nodetree/nodetree.ins	2024-09-17 23:42:04 UTC (rev 72317)
+++ trunk/Master/texmf-dist/source/luatex/nodetree/nodetree.ins	2024-09-18 19:24:14 UTC (rev 72318)
@@ -1,4 +1,4 @@
-% Copyright (C) 2016-2023 by Josef Friedrich <josef at friedrich.rocks>
+% Copyright (C) 2016-2024 by Josef Friedrich <josef at friedrich.rocks>
 % ----------------------------------------------------------------------
 % This work may be distributed and/or modified under the conditions of
 % the LaTeX Project Public License, either version 1.3c of this license
@@ -21,7 +21,7 @@
 
 This is a generated file.
 
-Copyright (C) 2016-2023 by Josef Friedrich <josef at friedrich.rocks>
+Copyright (C) 2016-2024 by Josef Friedrich <josef at friedrich.rocks>
 ----------------------------------------------------------------------
 This work may be distributed and/or modified under the conditions of
 the LaTeX Project Public License, either version 1.3c of this license

Modified: trunk/Master/texmf-dist/tex/luatex/nodetree/nodetree-embed.sty
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/nodetree/nodetree-embed.sty	2024-09-17 23:42:04 UTC (rev 72317)
+++ trunk/Master/texmf-dist/tex/luatex/nodetree/nodetree-embed.sty	2024-09-18 19:24:14 UTC (rev 72318)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (C) 2016-2023 by Josef Friedrich <josef at friedrich.rocks>
+%% Copyright (C) 2016-2024 by Josef Friedrich <josef at friedrich.rocks>
 %% ----------------------------------------------------------------------
 %% This work may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3c of this license
@@ -22,7 +22,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[1994/06/01]
 \ProvidesPackage{nodetree-embed}
-  [2023/09/10 v2.3.0 Embed node trees into a LaTeX document]
+  [2024/09/17 v2.4.0 Embed node trees into a LaTeX document]
 \RequirePackage{xcolor,mdframed,expl3,xparse,fontspec}
 \input{nodetree}
 \RequirePackage{kvoptions}

Modified: trunk/Master/texmf-dist/tex/luatex/nodetree/nodetree.lua
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/nodetree/nodetree.lua	2024-09-17 23:42:04 UTC (rev 72317)
+++ trunk/Master/texmf-dist/tex/luatex/nodetree/nodetree.lua	2024-09-18 19:24:14 UTC (rev 72318)
@@ -30,7 +30,7 @@
 ---  be either `continue` or `stop`.
 
 if not modules then modules = {} end modules ['nodetree'] = {
-  version   = '2.3.0',
+  version   = '2.4.0',
   comment   = 'nodetree',
   author    = 'Josef Friedrich',
   copyright = 'Josef Friedrich',
@@ -649,30 +649,37 @@
 
 --- Convert a Lua table into a format string.
 ---
---- at param table table # A table to generate an inline view of.
+--- at param tbl table # A table to generate an inline view of.
 ---
 --- at return string
-function template.table_inline(table)
+function template.table_inline(tbl)
   local tex_escape = ''
   if options.channel == 'tex' then
     tex_escape = '\\'
   end
-  if type(table) == 'table' then
-    table = get_all_table_data(table)
+  if type(tbl) == 'table' then
+    tbl = get_all_table_data(tbl)
     local output = tex_escape .. '{'
     local kv_list = ''
-    for key, value in pairs(table) do
-        if type(key) ~= 'numbers' then
-          key = '\'' ..
-            template.colored_string(key, 'cyan', 'dim') .. '\''
-        end
-        kv_list = kv_list .. '[' .. key .. '] = ' ..
-          template.table_inline(value) .. ', '
+    local keys = {}
+    for key in pairs(tbl) do
+      keys[#keys + 1] = key
     end
+    table.sort(keys)
+    for i = 1, #keys do
+      local key = keys[i]
+      local value = tbl[key]
+      if type(key) ~= 'numbers' then
+        key = '\'' ..
+          template.colored_string(key, 'cyan', 'dim') .. '\''
+      end
+      kv_list = kv_list .. '[' .. key .. '] = ' ..
+        template.table_inline(value) .. ', '
+    end
     output = output .. kv_list:gsub(', $', '')
     return output .. tex_escape .. '}'
   else
-    return tostring(table)
+    return tostring(tbl)
   end
 end
 

Modified: trunk/Master/texmf-dist/tex/luatex/nodetree/nodetree.sty
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/nodetree/nodetree.sty	2024-09-17 23:42:04 UTC (rev 72317)
+++ trunk/Master/texmf-dist/tex/luatex/nodetree/nodetree.sty	2024-09-18 19:24:14 UTC (rev 72318)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (C) 2016-2023 by Josef Friedrich <josef at friedrich.rocks>
+%% Copyright (C) 2016-2024 by Josef Friedrich <josef at friedrich.rocks>
 %% ----------------------------------------------------------------------
 %% This work may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3c of this license
@@ -22,7 +22,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
 \ProvidesPackage{nodetree}
-    [2023/09/10 v2.3.0 Visualize node lists in a tree view]
+    [2024/09/17 v2.4.0 Visualize node lists in a tree view]
 \input{nodetree}
 \RequirePackage{kvoptions}
 \SetupKeyvalOptions{

Modified: trunk/Master/texmf-dist/tex/luatex/nodetree/nodetree.tex
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/nodetree/nodetree.tex	2024-09-17 23:42:04 UTC (rev 72317)
+++ trunk/Master/texmf-dist/tex/luatex/nodetree/nodetree.tex	2024-09-18 19:24:14 UTC (rev 72318)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (C) 2016-2023 by Josef Friedrich <josef at friedrich.rocks>
+%% Copyright (C) 2016-2024 by Josef Friedrich <josef at friedrich.rocks>
 %% ----------------------------------------------------------------------
 %% This work may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3c of this license



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