summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/attr-col.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/attr-col.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/attr-col.lua12
1 files changed, 10 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/context/base/attr-col.lua b/Master/texmf-dist/tex/context/base/attr-col.lua
index 871ac3e03cf..c592d1dc1cb 100644
--- a/Master/texmf-dist/tex/context/base/attr-col.lua
+++ b/Master/texmf-dist/tex/context/base/attr-col.lua
@@ -9,6 +9,9 @@ if not modules then modules = { } end modules ['attr-col'] = {
-- this module is being reconstructed and code will move to other places
-- we can also do the nsnone via a metatable and then also se index 0
+-- list could as well refer to the tables (instead of numbers that
+-- index into another table) .. depends on what we need
+
local type = type
local format = string.format
local concat = table.concat
@@ -45,7 +48,7 @@ local unsetvalue = attributes.unsetvalue
-- we can also collapse the two attributes: n, n+1, n+2 and then
-- at the tex end add 0, 1, 2, but this is not faster and less
-- flexible (since sometimes we freeze color attribute values at
--- the lua end of the game
+-- the lua end of the game)
--
-- we also need to store the colorvalues because we need then in mp
--
@@ -349,13 +352,15 @@ end
-- transparencies
+local a_transparency = attributes.private('transparency')
+
attributes.transparencies = attributes.transparencies or { }
local transparencies = attributes.transparencies
transparencies.registered = transparencies.registered or { }
transparencies.data = allocate()
transparencies.values = transparencies.values or { }
transparencies.triggering = true
-transparencies.attribute = attributes.private('transparency')
+transparencies.attribute = a_transparency
transparencies.supported = true
storage.register("attributes/transparencies/registered", transparencies.registered, "attributes.transparencies.registered")
@@ -393,6 +398,9 @@ function transparencies.register(name,a,t,force) -- name is irrelevant here (can
elseif force and not data[n] then
register_transparency(n,a,t)
end
+ if name then
+ list[a_transparency][name] = n -- not grouped, so only global transparencies
+ end
return registered[stamp]
end