From 6486bb6dd718eb0946f4ce7ef2b2d86913b9e481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 11 Mar 2010 18:22:44 +0100 Subject: Use luatexbase as the Lua module name. --- luatexbase-attr.dtx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'luatexbase-attr.dtx') diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx index 511861c..d5087f9 100644 --- a/luatexbase-attr.dtx +++ b/luatexbase-attr.dtx @@ -160,7 +160,7 @@ and the derived files % definition of |\fooattr| and remember it in a Lua variable. For your % convenience, this is automatically done by |\newluatexattribute|: the number % is remembered in a dedicated Lua table so that you can get it as -% |luatextra.attributes.foobar| (mind the absence of backslash here) at any +% |luatexbase.attributes.foobar| (mind the absence of backslash here) at any % time. % % \section{Implementation} @@ -247,7 +247,7 @@ and the derived files \fi \unsetluatexattribute#1% \begingroup\escapechar\m@ne \expandafter\endgroup - \directlua{luatextra.attributedef_from_tex( + \directlua{luatexbase.attributedef_from_tex( '\luatexluaescapestring{\string#1}', '\number\allocationnumber')}% \wlog{\string#1=\string\luatexattribute\the\allocationnumber}% \else @@ -284,7 +284,7 @@ and the derived files % % \begin{macrocode} %<*luamodule> -module('luatextra', package.seeall) +module('luatexbase', package.seeall) % \end{macrocode} % % Record the allocation number in a Lua table. @@ -315,13 +315,13 @@ end \newluatexattribute\testattr \setluatexattribute\testattr{1} \unsetluatexattribute\testattr -\directlua{assert(luatextra.attributes.testattr)} +\directlua{assert(luatexbase.attributes.testattr)} \begingroup \escapechar64 \newluatexattribute\anotherattr \endgroup \setluatexattribute\anotherattr{1} -\directlua{assert(luatextra.attributes.anotherattr)} +\directlua{assert(luatexbase.attributes.anotherattr)} % %\bye %\stop -- cgit v1.2.3 From 8f6a797ab68d6aa3f79b1c360c8de126bf77b5bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 11 Mar 2010 18:24:36 +0100 Subject: Stop writing in the tex table. --- luatexbase-attr.dtx | 1 - 1 file changed, 1 deletion(-) (limited to 'luatexbase-attr.dtx') diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx index d5087f9..4db2122 100644 --- a/luatexbase-attr.dtx +++ b/luatexbase-attr.dtx @@ -291,7 +291,6 @@ module('luatexbase', package.seeall) % % \begin{macrocode} attributes = {} -tex.attributenumber = attributes function attributedef_from_tex(name, number) attributes[name] = tonumber(number) end -- cgit v1.2.3