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/test-mcb-plain.tex | |
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/test-mcb-plain.tex')
-rw-r--r-- | Master/texmf-dist/doc/luatex/luatexbase/test-mcb-plain.tex | 41 |
1 files changed, 41 insertions, 0 deletions
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'. |