diff options
author | Karl Berry <karl@freefriends.org> | 2010-05-14 18:33:36 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-05-14 18:33:36 +0000 |
commit | 09a722e13fe00b1a17488d358d8ebf0329e53691 (patch) | |
tree | 18d3dd81a75658b26719391e0b2645c00fd69b1e /Master/texmf-dist/doc/luatex/luatexbase | |
parent | 37056aa438ffe6895f43f303d6de45bdafefdccd (diff) |
new package luatexbase (13may10)
git-svn-id: svn://tug.org/texlive/trunk@18256 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/luatex/luatexbase')
27 files changed, 675 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/luatex/luatexbase/Changes b/Master/texmf-dist/doc/luatex/luatexbase/Changes new file mode 100644 index 00000000000..8e3be94fc07 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/Changes @@ -0,0 +1,75 @@ + Changes in the luatexbase package/bundle + +Summary of backwards-incompatible interface changes between 0.1 and 0.2: + - Lua objects are now in table luatexbase, not luatextra. + - Lua tables tex.attributenumber and tex.catcodetablenumber are not + created any more, use their couterparts in luatexbase. + - \luatexsetcatcoderange has been renamed to \setcatcoderange. + - luamcallbacks has been renamed; Lua objects are now in luatexbase, + no more in callback.* or luamcallbacks.* + - module error/warning etc now apply string.format to the arguments. + +2010/05/12 v0.2 + all + - use luatexbase as the Lua module name + - change the filename of the lua module (suppress luatexbase.) + - load luatexbase-compat + luatexbase-compat + - new + luatexbase-attr + - don't create tex.attributenumber + - load luatexbase-compat + luatexbase-cctb + - don't create tex.catcodetablenumber + - rename \luatexsetcatcoderange to \setcatcoderange + - load lua-compat + luamcallbacks -> luatexbase-mcb + - rename package, new version numbering starting at 0.2 + - functions are now in luatexbase rather than luamcallbacks, they + are no more copied to callbacks either + - lua objects are now local (except for the public interface) + - test file now for plain and latex + luatexbase-loader + - require"foo.bar" now looks for foo/bar then foo.bar, see doc for + details + - better cooperation with the original package loader + - works with luatex 0.25.4 + luatexbase-modutils + - module error/warning etc now apply string.format to the arguments. + - use error() instead of \errmessage. + +2010/03/28 + luatexbase-* + - add catcode defenses + +2010/03/27 + luatexbase-loader 0.1 + - add very minimal test files for luatex and lualatex + luatexbase-modutils 0.1 + - add minimal test files for luatex and lualatex + - use require() (with luatexbase-loader) for loading + luatexbase-attr, luatexbase-cctb, luamcallbacks (test file) + - use luatexbase-loader + +2010/03/26 + luatexbase-cctb 0.1 + - add minimal test files for luatex and lualatex + - fix allocation range (1->65535) + - make sure newly allocated tables are initialised + - fix sensitivity to the current value of \escapechar + - new macro \setluatexcatcodetable + +2010/03/11 + luatexbase-attrs 0.1 + - add minimal test files for luatex and lualatex + - make sure newly allocated attributes are unset + - fix sensitivity to the current value of \escapechar + +2010/01/21 + luatexbase-regs 0.1 + - add test files for luatex and lualatex + - extend registers with Plain-based format too + - fix \box and \marks allocation (\mathchardef -> \chardef) + - fix \*blk macros (\mathchardef -> \chardef) + +Version 0 of the bundle is part of the 2010/01/12 version of luatextra. diff --git a/Master/texmf-dist/doc/luatex/luatexbase/README b/Master/texmf-dist/doc/luatex/luatexbase/README new file mode 100644 index 00000000000..100f8c584ac --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/README @@ -0,0 +1,56 @@ + The luatexbase generic bundle + + +luatexbase provides basic resource management, similar to the way TeX +resources are handled by Plain TeX and LaTeX, for new resources introduced by +LuaTeX. + +Each resource is handled in a separate package. + +The resources considered are: +- registers (\count, \box, etc.) -> luatexbase-regs +- Lua module loading -> luatexbase-loader +- \attribute's -> luatexbase-attr +- \catcodetable's -> luatexbase-cctb +- Lua callbacks -> luamcallbacks + +Additional convenience packages: +- Lua module declaration -> luatexbase-modutils +- compatibility helpers -> luatexbase-compat + +WARNING: these packages are subject to change or even be merged or disappear in +the near future! + +Installation +------------ + +Here are the recommended installation methods (preferred first). +(Methods "commented out" are not available right now.) + +% 1. If you are using TeX Live 2009 or later, use 'tlmgr install luatexbase'. +% Alternatively, try your (TeX or Linux) distribution's package management system. +% +% 2. a. Grab luatextra.tds.zip on the CTAN. +% b. Unzip it at the root of one or your TDS trees. +% c. You may need to update some filename database after this, see your TeX +% distribution's manual for details. + +3. a. Grab the sources from CTAN or github. + b. Run 'make install TEXMFROOT=/path/to/texmf'. + c. See 2c. + +4. Try to figure it out by looking at the Makefile and comments in the sources. + + +License +------- + +This work and the derived files are under the Creative Commons CC0 license. + +See the full text at + +http://creativecommons.org/publicdomain/zero/1.0/legalcode + +and a FAQ at + +http://wiki.creativecommons.org/CC0 diff --git a/Master/texmf-dist/doc/luatex/luatexbase/TODO b/Master/texmf-dist/doc/luatex/luatexbase/TODO new file mode 100644 index 00000000000..556c5d2ea5c --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/TODO @@ -0,0 +1,32 @@ +loader: kpse emulation is still wrong, see kpathsea's manual 4.2 + +modutils +-------- + +- Renaming: + \luatexUseModule + \luatexRequireModule +- syntax of public TeX macros and Lua functions +- create private functions for infwarrerr? +- review logic (see what LaTeX2e does) +- General review of code and comments. +- Update user documentation. + +mcb +--- + +- Incorporate remaining bits from luatextra? +- Enhance test file? +- General review of code and comments. +- Update user documentation. + +luatexbase +---------- + +- create it, make it load the others (except maybe mcb for now) +- create general documentation + +afterwards +---------- + +- Bump version number, upload. diff --git a/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-attr.pdf b/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-attr.pdf Binary files differnew file mode 100644 index 00000000000..8179ad2e487 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-attr.pdf diff --git a/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-cctb.pdf b/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-cctb.pdf Binary files differnew file mode 100644 index 00000000000..e992827b145 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-cctb.pdf diff --git a/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-compat.pdf b/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-compat.pdf Binary files differnew file mode 100644 index 00000000000..62b82063c26 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-compat.pdf diff --git a/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-loader.pdf b/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-loader.pdf Binary files differnew file mode 100644 index 00000000000..13591dc9363 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-loader.pdf diff --git a/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-mcb.pdf b/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-mcb.pdf Binary files differnew file mode 100644 index 00000000000..c61b6c3b41c --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-mcb.pdf diff --git a/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-modutils.pdf b/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-modutils.pdf Binary files differnew file mode 100644 index 00000000000..b0ff8000350 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-modutils.pdf diff --git a/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-regs.pdf b/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-regs.pdf Binary files differnew file mode 100644 index 00000000000..83b38997629 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/luatexbase-regs.pdf diff --git a/Master/texmf-dist/doc/luatex/luatexbase/test-attr-latex.tex b/Master/texmf-dist/doc/luatex/luatexbase/test-attr-latex.tex new file mode 100644 index 00000000000..ac9bb4d7905 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/test-attr-latex.tex @@ -0,0 +1,29 @@ +%% +%% This is file `test-attr-latex.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% luatexbase-attr.dtx (with options: `testlatex') +%% +%% Written in 2009, 2010 by Manuel Pegourie-Gonnard and Elie Roux. +%% +%% This work is under the CC0 license. +%% See source file 'luatexbase-attr.dtx' for details. +%% +\RequirePackage{luatexbase-attr} +\newluatexattribute\testattr +\setluatexattribute\testattr{1} +\unsetluatexattribute\testattr +\catcode64 11 +\luatexbase@directlua{assert(luatexbase.attributes.testattr)} +\begingroup +\escapechar64 +\newluatexattribute\anotherattr +\endgroup +\setluatexattribute\anotherattr{1} +\luatexbase@directlua{assert(luatexbase.attributes.anotherattr)} +\stop +\endinput +%% +%% End of file `test-attr-latex.tex'. diff --git a/Master/texmf-dist/doc/luatex/luatexbase/test-attr-plain.tex b/Master/texmf-dist/doc/luatex/luatexbase/test-attr-plain.tex new file mode 100644 index 00000000000..b3a376474b1 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/test-attr-plain.tex @@ -0,0 +1,29 @@ +%% +%% This is file `test-attr-plain.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% luatexbase-attr.dtx (with options: `testplain') +%% +%% Written in 2009, 2010 by Manuel Pegourie-Gonnard and Elie Roux. +%% +%% This work is under the CC0 license. +%% See source file 'luatexbase-attr.dtx' for details. +%% +\input luatexbase-attr.sty +\newluatexattribute\testattr +\setluatexattribute\testattr{1} +\unsetluatexattribute\testattr +\catcode64 11 +\luatexbase@directlua{assert(luatexbase.attributes.testattr)} +\begingroup +\escapechar64 +\newluatexattribute\anotherattr +\endgroup +\setluatexattribute\anotherattr{1} +\luatexbase@directlua{assert(luatexbase.attributes.anotherattr)} +\bye +\endinput +%% +%% End of file `test-attr-plain.tex'. diff --git a/Master/texmf-dist/doc/luatex/luatexbase/test-cctb-latex.tex b/Master/texmf-dist/doc/luatex/luatexbase/test-cctb-latex.tex new file mode 100644 index 00000000000..dbff69b2727 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/test-cctb-latex.tex @@ -0,0 +1,37 @@ +%% +%% This is file `test-cctb-latex.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% luatexbase-cctb.dtx (with options: `testlatex') +%% +%% Written in 2009, 2010 by Manuel Pegourie-Gonnard and Elie Roux. +%% +%% This work is under the CC0 license. +%% See source file 'luatexbase-cctb.dtx' for details. +%% +\RequirePackage{luatexbase-cctb} +\begingroup \catcode64 11 \global\let\lua\luatexbase@directlua \endgroup + +\newluatexcatcodetable\testcctb +\lua{assert(luatexbase.catcodetables.testcctb)} +\begingroup +\escapechar64 +\newluatexcatcodetable\anothercctb +\endgroup +\lua{assert(luatexbase.catcodetables.anothercctb)} +\luatexcatcodetable\CatcodeTableLaTeXAtLetter +\ifnum\catcode64=11 \else \ERROR \fi +\luatexcatcodetable\CatcodeTableLaTeX +\ifnum\catcode64=12 \else \ERROR \fi +\documentclass{minimal} +\lua{% + tex.sprint('\string\\setbox0=\string\\hbox{') + tex.sprint(luatexbase.catcodetables.string, "\string\\undef # _^&") + tex.sprint('}') + } +\stop +\endinput +%% +%% End of file `test-cctb-latex.tex'. diff --git a/Master/texmf-dist/doc/luatex/luatexbase/test-cctb-plain.tex b/Master/texmf-dist/doc/luatex/luatexbase/test-cctb-plain.tex new file mode 100644 index 00000000000..5d55e1f5e41 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/test-cctb-plain.tex @@ -0,0 +1,36 @@ +%% +%% This is file `test-cctb-plain.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% luatexbase-cctb.dtx (with options: `testplain') +%% +%% Written in 2009, 2010 by Manuel Pegourie-Gonnard and Elie Roux. +%% +%% This work is under the CC0 license. +%% See source file 'luatexbase-cctb.dtx' for details. +%% +\input luatexbase-cctb.sty +\begingroup \catcode64 11 \global\let\lua\luatexbase@directlua \endgroup + +\newluatexcatcodetable\testcctb +\lua{assert(luatexbase.catcodetables.testcctb)} +\begingroup +\escapechar64 +\newluatexcatcodetable\anothercctb +\endgroup +\lua{assert(luatexbase.catcodetables.anothercctb)} +\luatexcatcodetable\CatcodeTableLaTeXAtLetter +\ifnum\catcode64=11 \else \ERROR \fi +\luatexcatcodetable\CatcodeTableLaTeX +\ifnum\catcode64=12 \else \ERROR \fi +\lua{% + tex.sprint('\string\\setbox0=\string\\hbox{') + tex.sprint(luatexbase.catcodetables.string, "\string\\undef # _^&") + tex.sprint('}') + } +\bye +\endinput +%% +%% End of file `test-cctb-plain.tex'. diff --git a/Master/texmf-dist/doc/luatex/luatexbase/test-compat-latex.tex b/Master/texmf-dist/doc/luatex/luatexbase/test-compat-latex.tex new file mode 100644 index 00000000000..42cf198ac55 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/test-compat-latex.tex @@ -0,0 +1,24 @@ +%% +%% This is file `test-compat-latex.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% luatexbase-compat.dtx (with options: `testlatex') +%% +%% Written in 2010 by Manuel Pegourie-Gonnard. +%% +%% This work is under the CC0 license. +%% See source file 'luatexbase-compat.dtx' for details. +%% +\RequirePackage{luatexbase-compat} +\catcode64 11 +\luatexbase@directlua{local answer = 42} +\luatexbase@ensure@primitive{primitive} +\luatexprimitive\relax +\luatexbase@directlua{assert(type(luatexbase.luatexversion) == 'number')} +\luatexbase@directlua{assert(type(luatexbase.luatexrevision) == 'number')} +\stop +\endinput +%% +%% End of file `test-compat-latex.tex'. diff --git a/Master/texmf-dist/doc/luatex/luatexbase/test-compat-plain.tex b/Master/texmf-dist/doc/luatex/luatexbase/test-compat-plain.tex new file mode 100644 index 00000000000..63de4caa7c3 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/test-compat-plain.tex @@ -0,0 +1,24 @@ +%% +%% This is file `test-compat-plain.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% luatexbase-compat.dtx (with options: `testplain') +%% +%% Written in 2010 by Manuel Pegourie-Gonnard. +%% +%% This work is under the CC0 license. +%% See source file 'luatexbase-compat.dtx' for details. +%% +\input luatexbase-compat.sty +\catcode64 11 +\luatexbase@directlua{local answer = 42} +\luatexbase@ensure@primitive{primitive} +\luatexprimitive\relax +\luatexbase@directlua{assert(type(luatexbase.luatexversion) == 'number')} +\luatexbase@directlua{assert(type(luatexbase.luatexrevision) == 'number')} +\bye +\endinput +%% +%% End of file `test-compat-plain.tex'. diff --git a/Master/texmf-dist/doc/luatex/luatexbase/test-loader-latex.tex b/Master/texmf-dist/doc/luatex/luatexbase/test-loader-latex.tex new file mode 100644 index 00000000000..67164f890a4 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/test-loader-latex.tex @@ -0,0 +1,21 @@ +%% +%% This is file `test-loader-latex.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% luatexbase-loader.dtx (with options: `testlatex') +%% +%% Written in 2009, 2010 by Manuel Pegourie-Gonnard and Elie Roux. +%% +%% This work is under the CC0 license. +%% See source file 'luatexbase-loader.dtx' for details. +%% +\RequirePackage{luatexbase-loader} +\catcode64 11 +\luatexbase@directlua{require "test-loader"} +\luatexbase@directlua{require "test-loader.sub"} +\stop +\endinput +%% +%% End of file `test-loader-latex.tex'. diff --git a/Master/texmf-dist/doc/luatex/luatexbase/test-loader-plain.tex b/Master/texmf-dist/doc/luatex/luatexbase/test-loader-plain.tex new file mode 100644 index 00000000000..87d93aa86f7 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/test-loader-plain.tex @@ -0,0 +1,21 @@ +%% +%% This is file `test-loader-plain.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% luatexbase-loader.dtx (with options: `testplain') +%% +%% Written in 2009, 2010 by Manuel Pegourie-Gonnard and Elie Roux. +%% +%% This work is under the CC0 license. +%% See source file 'luatexbase-loader.dtx' for details. +%% +\input luatexbase-loader.sty +\catcode64 11 +\luatexbase@directlua{require "test-loader"} +\luatexbase@directlua{require "test-loader.sub"} +\bye +\endinput +%% +%% End of file `test-loader-plain.tex'. diff --git a/Master/texmf-dist/doc/luatex/luatexbase/test-loader.lua b/Master/texmf-dist/doc/luatex/luatexbase/test-loader.lua new file mode 100644 index 00000000000..7917a288f58 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/test-loader.lua @@ -0,0 +1,16 @@ +-- +-- This is file `test-loader.lua', +-- generated with the docstrip utility. +-- +-- The original source files were: +-- +-- luatexbase-loader.dtx (with options: `testdummy') +-- +-- Written in 2009, 2010 by Manuel Pegourie-Gonnard and Elie Roux. +-- +-- This work is under the CC0 license. +-- See source file 'luatexbase-loader.dtx' for details. +-- +return true +-- +-- End of File `test-loader.lua'. diff --git a/Master/texmf-dist/doc/luatex/luatexbase/test-loader.sub.lua b/Master/texmf-dist/doc/luatex/luatexbase/test-loader.sub.lua new file mode 100644 index 00000000000..f8a868ee817 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/test-loader.sub.lua @@ -0,0 +1,16 @@ +-- +-- This is file `test-loader.sub.lua', +-- generated with the docstrip utility. +-- +-- The original source files were: +-- +-- luatexbase-loader.dtx (with options: `testdummy') +-- +-- Written in 2009, 2010 by Manuel Pegourie-Gonnard and Elie Roux. +-- +-- This work is under the CC0 license. +-- See source file 'luatexbase-loader.dtx' for details. +-- +return true +-- +-- End of File `test-loader.sub.lua'. diff --git a/Master/texmf-dist/doc/luatex/luatexbase/test-mcb-latex.tex b/Master/texmf-dist/doc/luatex/luatexbase/test-mcb-latex.tex new file mode 100644 index 00000000000..be36abc6d4a --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/test-mcb-latex.tex @@ -0,0 +1,41 @@ +%% +%% This is file `test-mcb-latex.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% luatexbase-mcb.dtx (with options: `testlatex') +%% +%% Copyright (C) 2009 by Elie Roux <elie.roux@telecom-bretagne.eu> +%% +%% This work is under the CC0 license. +%% See source file 'luatexbase-mcb.dtx' for details. +%% +\RequirePackage{luatexbase-mcb} +\catcode 64 11 +\luatexbase@directlua{ + local function one(head,...) + texio.write_nl("I'm number 1") + return head, true + end + + local function two(head,...) + texio.write_nl("I'm number 2") + return head, true + end + + local function three(head,...) + texio.write_nl("I'm number 3") + return head, true + end + + luatexbase.add_to_callback("hpack_filter",one,"my sample function one",1) + luatexbase.add_to_callback("hpack_filter",two,"my sample function two",2) + luatexbase.add_to_callback("hpack_filter",three,"my sample function three",1) + + luatexbase.remove_from_callback("hpack_filter","my sample function three") +} +\stop +\endinput +%% +%% End of file `test-mcb-latex.tex'. diff --git a/Master/texmf-dist/doc/luatex/luatexbase/test-mcb-plain.tex b/Master/texmf-dist/doc/luatex/luatexbase/test-mcb-plain.tex new file mode 100644 index 00000000000..c3f556da86a --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/test-mcb-plain.tex @@ -0,0 +1,41 @@ +%% +%% This is file `test-mcb-plain.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% luatexbase-mcb.dtx (with options: `testplain') +%% +%% Copyright (C) 2009 by Elie Roux <elie.roux@telecom-bretagne.eu> +%% +%% This work is under the CC0 license. +%% See source file 'luatexbase-mcb.dtx' for details. +%% +\input luatexbase-mcb.sty +\catcode 64 11 +\luatexbase@directlua{ + local function one(head,...) + texio.write_nl("I'm number 1") + return head, true + end + + local function two(head,...) + texio.write_nl("I'm number 2") + return head, true + end + + local function three(head,...) + texio.write_nl("I'm number 3") + return head, true + end + + luatexbase.add_to_callback("hpack_filter",one,"my sample function one",1) + luatexbase.add_to_callback("hpack_filter",two,"my sample function two",2) + luatexbase.add_to_callback("hpack_filter",three,"my sample function three",1) + + luatexbase.remove_from_callback("hpack_filter","my sample function three") +} +\bye +\endinput +%% +%% End of file `test-mcb-plain.tex'. diff --git a/Master/texmf-dist/doc/luatex/luatexbase/test-modutils-latex.tex b/Master/texmf-dist/doc/luatex/luatexbase/test-modutils-latex.tex new file mode 100644 index 00000000000..4785b3ac422 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/test-modutils-latex.tex @@ -0,0 +1,21 @@ +%% +%% This is file `test-modutils-latex.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% luatexbase-modutils.dtx (with options: `testlatex') +%% +%% Written in 2009, 2010 by Manuel Pegourie-Gonnard and Elie Roux. +%% +%% This work is under the CC0 license. +%% See source file 'luatexbase-modutils.dtx' for details. +%% +\RequirePackage{luatexbase-modutils} +\luatexRequireModule +[1970/01/01] +{test-modutils} +\stop +\endinput +%% +%% End of file `test-modutils-latex.tex'. diff --git a/Master/texmf-dist/doc/luatex/luatexbase/test-modutils-plain.tex b/Master/texmf-dist/doc/luatex/luatexbase/test-modutils-plain.tex new file mode 100644 index 00000000000..4f3f564e8a9 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/test-modutils-plain.tex @@ -0,0 +1,21 @@ +%% +%% This is file `test-modutils-plain.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% luatexbase-modutils.dtx (with options: `testplain') +%% +%% Written in 2009, 2010 by Manuel Pegourie-Gonnard and Elie Roux. +%% +%% This work is under the CC0 license. +%% See source file 'luatexbase-modutils.dtx' for details. +%% +\input luatexbase-modutils.sty +\luatexRequireModule +{test-modutils} +{1970/01/01} +\bye +\endinput +%% +%% End of file `test-modutils-plain.tex'. diff --git a/Master/texmf-dist/doc/luatex/luatexbase/test-modutils.lua b/Master/texmf-dist/doc/luatex/luatexbase/test-modutils.lua new file mode 100644 index 00000000000..98a21e81d9c --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/test-modutils.lua @@ -0,0 +1,21 @@ +-- +-- This is file `test-modutils.lua', +-- generated with the docstrip utility. +-- +-- The original source files were: +-- +-- luatexbase-modutils.dtx (with options: `testdummy') +-- +-- Written in 2009, 2010 by Manuel Pegourie-Gonnard and Elie Roux. +-- +-- This work is under the CC0 license. +-- See source file 'luatexbase-modutils.dtx' for details. +-- +luatexbase.provides_module { + name = 'test-modutils', + date = '2000/01/01', + version = 1, + description = 'dummy test package', +} +-- +-- End of File `test-modutils.lua'. diff --git a/Master/texmf-dist/doc/luatex/luatexbase/test-regs-latex.tex b/Master/texmf-dist/doc/luatex/luatexbase/test-regs-latex.tex new file mode 100644 index 00000000000..6a0ec8c8baa --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/test-regs-latex.tex @@ -0,0 +1,57 @@ +%% +%% This is file `test-regs-latex.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% luatexbase-regs.dtx (with options: `testlatex') +%% +%% Written in 2009, 2010 by Manuel Pegourie-Gonnard and Elie Roux. +%% +%% This work is under the CC0 license. +%% See source file 'luatexbase-regs.dtx' for details. +%% +\RequirePackage{luatexbase-regs} +\def\checkregister#1{% + \edef\newregister{\expandafter\noexpand\csname new#1\endcsname}% + \edef\locregister{\expandafter\noexpand\csname loc#1\endcsname}% + \count0 1 + \loop + \newregister\dummy + \locregister\dummy + \ifnum\count0<30000 + \advance\count0 1 + \repeat} +\checkregister{count} +\checkregister{dimen} +\checkregister{skip} +\checkregister{muskip} +\checkregister{box} +\checkregister{toks} +\checkregister{marks} + +\count0 1 +\loop \ifnum\count0<100 + \csname newinsert\endcsname\dummy + \advance\count0 1 +\repeat + +\globcountblk \dummy{3000} +\globdimenblk \dummy{3000} +\globskipblk \dummy{3000} +\globmuskipblk\dummy{3000} +\globboxblk \dummy{3000} +\globtoksblk \dummy{3000} +\globmarksblk \dummy{3000} + +\loccountblk \dummy{1000} +\locdimenblk \dummy{1000} +\locskipblk \dummy{1000} +\locmuskipblk \dummy{1000} +\locboxblk \dummy{1000} +\loctoksblk \dummy{1000} +\locmarksblk \dummy{1000} +\stop +\endinput +%% +%% End of file `test-regs-latex.tex'. diff --git a/Master/texmf-dist/doc/luatex/luatexbase/test-regs-plain.tex b/Master/texmf-dist/doc/luatex/luatexbase/test-regs-plain.tex new file mode 100644 index 00000000000..81581305bd2 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luatexbase/test-regs-plain.tex @@ -0,0 +1,57 @@ +%% +%% This is file `test-regs-plain.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% luatexbase-regs.dtx (with options: `testplain') +%% +%% Written in 2009, 2010 by Manuel Pegourie-Gonnard and Elie Roux. +%% +%% This work is under the CC0 license. +%% See source file 'luatexbase-regs.dtx' for details. +%% +\input luatexbase-regs.sty +\def\checkregister#1{% + \edef\newregister{\expandafter\noexpand\csname new#1\endcsname}% + \edef\locregister{\expandafter\noexpand\csname loc#1\endcsname}% + \count0 1 + \loop + \newregister\dummy + \locregister\dummy + \ifnum\count0<30000 + \advance\count0 1 + \repeat} +\checkregister{count} +\checkregister{dimen} +\checkregister{skip} +\checkregister{muskip} +\checkregister{box} +\checkregister{toks} +\checkregister{marks} + +\count0 1 +\loop \ifnum\count0<100 + \csname newinsert\endcsname\dummy + \advance\count0 1 +\repeat + +\globcountblk \dummy{3000} +\globdimenblk \dummy{3000} +\globskipblk \dummy{3000} +\globmuskipblk\dummy{3000} +\globboxblk \dummy{3000} +\globtoksblk \dummy{3000} +\globmarksblk \dummy{3000} + +\loccountblk \dummy{1000} +\locdimenblk \dummy{1000} +\locskipblk \dummy{1000} +\locmuskipblk \dummy{1000} +\locboxblk \dummy{1000} +\loctoksblk \dummy{1000} +\locmarksblk \dummy{1000} +\bye +\endinput +%% +%% End of file `test-regs-plain.tex'. |