diff options
-rw-r--r-- | Changes | 5 | ||||
-rw-r--r-- | TODO | 5 | ||||
-rw-r--r-- | luatexbase-attr.dtx | 11 |
3 files changed, 10 insertions, 11 deletions
@@ -1,5 +1,10 @@ Changes in the luatexbase package/bundle +[on-going] + luatexbase-attr + - use luatexbase as the Lua module name + - don't creat tex.attributenumber + 2010/03/26 luatexbase-cctb 0.1 - add minimal test files for luatex and lualatex @@ -26,11 +26,6 @@ regs rather tricky in this respect, but are they really used?) Well, is there any actual need for this? -attr ---- - -- don't write in the tex table! - cctb ---- diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx index 0fe7b98..7b192c6 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} @@ -245,7 +245,7 @@ and the derived files \global\luatexattributedef#1=\allocationnumber \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 @@ -282,14 +282,13 @@ 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. % % \begin{macrocode} attributes = {} -tex.attributenumber = attributes function attributedef_from_tex(name, number) attributes[name] = tonumber(number) end @@ -313,13 +312,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)} %</testplain,testlatex> %<testplain>\bye %<testlatex>\stop |