diff options
author | Karl Berry <karl@freefriends.org> | 2017-01-21 23:10:12 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-01-21 23:10:12 +0000 |
commit | 8997cba3b476b351f1fe11a859adc2494136ce47 (patch) | |
tree | 9a52bdcc9a06a19bb4871e3cc9df8d777183cc4e /Master/texmf-dist/tex/luatex/nodetree/nodetree.tex | |
parent | 12c6358be2e4b84cb8a0888ec14364c714711fbd (diff) |
nodetree.{tex,lua} in runtime, rolf 21 Jan 2017 13:28:23
git-svn-id: svn://tug.org/texlive/trunk@43011 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/nodetree/nodetree.tex')
-rw-r--r-- | Master/texmf-dist/tex/luatex/nodetree/nodetree.tex | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/luatex/nodetree/nodetree.tex b/Master/texmf-dist/tex/luatex/nodetree/nodetree.tex new file mode 100644 index 00000000000..71373b5d716 --- /dev/null +++ b/Master/texmf-dist/tex/luatex/nodetree/nodetree.tex @@ -0,0 +1,47 @@ +%% +%% This is file `nodetree.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% nodetree.dtx (with options: `tex') +%% +%% This is a generated file. +%% +%% Copyright (C) 2016 by Josef Friedrich <josef@friedrich.rocks> +%% ---------------------------------------------------------------------- +%% This work may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.3c of this license +%% or (at your option) any later version. The latest version of this +%% license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.3c or later is part of all distributions of LaTeX +%% version 2008/05/05 or later. +%% +\directlua{ + nodetree = require('nodetree') + nodetree.set_option('engine', 'luatex') + nodetree.set_default_options() +} +\def\nodetreeoption[#1]#2{ + \directlua{ + nodetree.set_option('#1', '#2') + } +} +\def\nodetreeregister#1{ + \directlua{ + nodetree.set_option('callback', '#1') + nodetree.register_callbacks() + } +} +\def\nodetreeunregister#1{ + \directlua{ + nodetree.set_option('callback', '#1') + nodetree.unregister_callbacks() + } +} +\endinput +%% +%% End of file `nodetree.tex'. |