diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2010-03-28 14:49:11 +0200 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2010-03-28 14:49:11 +0200 |
commit | df8130aebc2f5d1a34093b255a6e889fd0fc1a9d (patch) | |
tree | f04c7eb69811726557c724f1b293981f85021952 /luatexbase-attr.dtx | |
parent | c2d88c7822fee162286bd70fa78ce70898908d3f (diff) | |
parent | 34b29e403d015b1ba2ba08d9a4502d044293cf52 (diff) | |
download | luatexbase-df8130aebc2f5d1a34093b255a6e889fd0fc1a9d.tar.gz |
Merge branch 'unstable' & update TODO.
Diffstat (limited to 'luatexbase-attr.dtx')
-rw-r--r-- | luatexbase-attr.dtx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx index 6332260..1580168 100644 --- a/luatexbase-attr.dtx +++ b/luatexbase-attr.dtx @@ -154,7 +154,7 @@ See source file '\inFileName' for details. % 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} @@ -274,7 +274,7 @@ See source file '\inFileName' for details. \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 @@ -311,14 +311,13 @@ See source file '\inFileName' for details. % % \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 @@ -342,13 +341,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 |