summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-17 17:49:08 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-17 17:49:08 +0200
commite824f2826911dc90e022c522b8ad6531447c5219 (patch)
tree613076c03b4c1e74eee85c08d3081856b900a144
parenta9178223ec8b11a5de7937e3bd5f4492eb6ceea6 (diff)
downloadluatexbase-e824f2826911dc90e022c522b8ad6531447c5219.tar.gz
document alternate behavior of ``new_user_whatsit()``
-rw-r--r--luatexbase-attr.dtx5
1 files changed, 5 insertions, 0 deletions
diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx
index f10e2de..638cd31 100644
--- a/luatexbase-attr.dtx
+++ b/luatexbase-attr.dtx
@@ -522,6 +522,11 @@ luatexbase.new_user_whatsit_id = new_user_whatsit_id
% creates the corresponding whatsit node of subtype “user-defined”.
% We return a nullary function that delivers copies of the whatsit.
%
+% Alternatively, the first argument can be a whatsit node that
+% will then be used as prototype. Note that in this case a
+% \emph{copy} of the prototype will be stored in the closure,
+% eliminating side-effects.
+%
% \begin{macrocode}
--- (string | node_t) -> string -> ((unit -> node_t) * int)
local new_user_whatsit = function (req, package)