From 3260c403de194f3001e1ffac32ab32c7bc79d481 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 16 May 2013 21:52:25 +0200 Subject: add function to retrieve attribute unset value --- luatexbase-attr.dtx | 3 +++ 1 file changed, 3 insertions(+) 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). -- cgit v1.2.3