summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2013-05-17 00:58:42 -0700
committerElie Roux <elie.roux@telecom-bretagne.eu>2013-05-17 00:58:42 -0700
commitfa21883a0ac14ebcacb2c6277e340651c1183986 (patch)
tree6d536be3d286e214ea1477360c4ecb5bfbc39cc1
parentc9ee963f9b99418d8783f76f48bbc03cdd589163 (diff)
parent3260c403de194f3001e1ffac32ab32c7bc79d481 (diff)
downloadluatexbase-fa21883a0ac14ebcacb2c6277e340651c1183986.tar.gz
Merge pull request #13 from phi-gamma/master
make unset value accessible by a function
-rw-r--r--luatexbase-attr.dtx3
1 files changed, 3 insertions, 0 deletions
diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx
index c6a7040..499677d 100644
--- a/luatexbase-attr.dtx
+++ b/luatexbase-attr.dtx
@@ -434,6 +434,8 @@ luatexbase.new_attribute = new_attribute
% \end{macrocode}
%
% Unset an attribute the correct way depending on \luatex's version.
+% The constant \verb+unset_value+ can be retrieved by calling
+% \verb+get_unset_value()+ to apply to nodes.
%
% \begin{macrocode}
local unset_value = (luatexbase.luatexversion < 37) and -1 or -2147483647
@@ -441,6 +443,7 @@ function unset_attribute(name)
tex.setattribute(attributes[name], unset_value)
end
luatexbase.unset_attribute = unset_attribute
+luatexbase.get_unset_value = function () return unset_value end
% \end{macrocode}
%
% Allocation of user-defined whatsit nodes (experimental).