diff options
author | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-05-03 01:18:55 -0700 |
---|---|---|
committer | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-05-03 01:18:55 -0700 |
commit | 00e3aee4a50dc9d042bf792556b727761f20ae02 (patch) | |
tree | 1cf5657c28e3620e7261aa89940f1cadf908407f /luatexbase-cctb.dtx | |
parent | 12e95bc9acd7c2d172a0b47b5832cbc56eb4fa54 (diff) | |
parent | c5837a5e38f2324ce7960840b609c290337ff160 (diff) | |
download | luatexbase-00e3aee4a50dc9d042bf792556b727761f20ae02.tar.gz |
Merge pull request #5 from phi-gamma/master
drop `module()`; incorporate Stephans’s suggestions
Diffstat (limited to 'luatexbase-cctb.dtx')
-rw-r--r-- | luatexbase-cctb.dtx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/luatexbase-cctb.dtx b/luatexbase-cctb.dtx index f869c5b..1e95379 100644 --- a/luatexbase-cctb.dtx +++ b/luatexbase-cctb.dtx @@ -649,17 +649,20 @@ See the aforementioned source file(s) for copyright and licensing information. % % \begin{macrocode} %<*luamodule> -module('luatexbase', package.seeall) +luatexbase = luatexbase or { } +local luatexbase = luatexbase % \end{macrocode} % % The number associated to a CS name is remembered in the |catcodetables| % table. % % \begin{macrocode} -catcodetables = {} -function catcodetabledef_from_tex(name, number) +luatexbase.catcodetables = luatexbase.catcodetables or { } +local catcodetables = luatexbase.catcodetables +local function catcodetabledef_from_tex(name, number) catcodetables[name] = tonumber(number) end +luatexbase.catcodetabledef_from_tex = catcodetabledef_from_tex % \end{macrocode} % % The next function creates some shortcuts for better readability in lua @@ -667,7 +670,7 @@ end % |luatexbase.catcodetables.CatcodeTableLaTeX|. % % \begin{macrocode} -function catcodetable_do_shortcuts() +local function catcodetable_do_shortcuts() local cat = catcodetables cat['latex'] = cat.CatcodeTableLaTeX cat['latex-package'] = cat.CatcodeTableLaTeXAtLetter @@ -678,6 +681,7 @@ function catcodetable_do_shortcuts() cat['string'] = cat.CatcodeTableString cat['other'] = cat.CatcodeTableOther end +luatexbase.catcodetable_do_shortcuts = catcodetable_do_shortcuts % \end{macrocode} % % \begin{macrocode} |