diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/cldf-ini.mkiv')
-rw-r--r-- | Master/texmf-dist/tex/context/base/cldf-ini.mkiv | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/base/cldf-ini.mkiv b/Master/texmf-dist/tex/context/base/cldf-ini.mkiv new file mode 100644 index 00000000000..8aef17f9340 --- /dev/null +++ b/Master/texmf-dist/tex/context/base/cldf-ini.mkiv @@ -0,0 +1,40 @@ +%D \module +%D [ file=cldf-ini, +%D version=2010.10.19,, +%D title=\CONTEXT\ \LUA\ Document Functions, +%D subtitle=Initialization, +%D author=Hans Hagen, +%D date=\currentdate, +%D copyright=Hans Hagen] +%C +%C This module is part of the \CONTEXT\ macro||package and is +%C therefore copyrighted by \PRAGMA. See mreadme.pdf for +%C details. + +\writestatus{loading}{ConTeXt Lua Documents / Initialization} + +\registerctxluafile{cldf-ini}{1.001} + +%D With each new update of \MKIV\ we can join Within Temptation in +%D singing: +%D +%D \startbuffer +%D \startluacode +%D context("I go faster%s",string.rep(" and faster",6)) +%D \stopluacode +%D +%D \cldcontext{"I go faster\letterpercent s", +%D string.rep(" and faster",6)} +%D \stopbuffer +%D +%D \typebuffer \getbuffer + +\def\cldf#1{\directlua\zerocount{_cldf_(#1)}} % global (functions) +\def\cldn#1{\directlua\zerocount{_cldn_(#1)}} % global (nodes) + +\normalprotected\def\cldprocessfile#1{\directlua\zerocount{context.runfile("#1")}} + \def\cldcontext #1{\directlua\zerocount{context(#1)}} + \def\cldcommand #1{\directlua\zerocount{context.#1}} + % \def\cldverbatim #1{\directlua\zerocount{context.verbatim.#1}} % maybe make verbatim global + +\endinput |