From 3b909ab613140e7a9c824c434b642f0578473a6d Mon Sep 17 00:00:00 2001
From: Hans Hagen <pragma@wxs.nl>
Date: Tue, 11 Apr 2023 23:40:06 +0200
Subject: 2023-04-11 22:47:00

---
 .../sources/general/manuals/luametatex/luametatex-style.tex      | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

(limited to 'doc/context/sources/general/manuals/luametatex/luametatex-style.tex')

diff --git a/doc/context/sources/general/manuals/luametatex/luametatex-style.tex b/doc/context/sources/general/manuals/luametatex/luametatex-style.tex
index 6586e6fc1..b3591344a 100644
--- a/doc/context/sources/general/manuals/luametatex/luametatex-style.tex
+++ b/doc/context/sources/general/manuals/luametatex/luametatex-style.tex
@@ -84,13 +84,14 @@
         end
     end
 
-    function document.functions.showvalues(l)
+    function document.functions.showvalues(l,hex)
         if l then
             local n = table.count(l)
             local i = 0
+            local f = hex and "%s{\\tttf %s} (0x%02X)" or "%s{\\tttf %s} (%i)"
             for k, v in table.sortedhash(l) do
                 i = i + 1
-                context("%s{\\tttf %s} (%i)", (i == 1 and "") or (i == n and " and ") or ", ", v,k)
+                context(f, (i == 1 and "") or (i == n and " and ") or ", ", v,k)
             end
         end
     end
@@ -120,11 +121,11 @@
 \protected\def\showfields   #1{\ctxlua{document.functions.showfields("#1")}}
 \protected\def\showid       #1{\ctxlua{document.functions.showid("#1")}}
 \protected\def\showsubtypes #1{\ctxlua{document.functions.showsubtypes("#1")}}
-\protected\def\showvalues   #1{\ctxlua{document.functions.showvalues(node.values("#1"))}}
+\protected\def\showvalues   #1{\ctxlua{document.functions.showvalues(tex.get#1values())}}
+\protected\def\showhexvalues#1{\ctxlua{document.functions.showvalues(tex.get#1values(),true)}}
 \protected\def\showtypes      {\ctxlua{document.functions.showvalues(node.types())}}
 \protected\def\showvaluelist#1{\ctxlua{document.functions.showvalues(#1)}}
 
-
 \definecolor[blue]      [b=.5]
 \definecolor[red]       [r=.5]
 \definecolor[green]     [g=.5]
-- 
cgit v1.2.3

