cldf-ini.mkxl /size: 1441 b    last modification: 2023-12-21 09:44
1%D \module
2%D   [       file=cldf-ini,
3%D        version=2019.01.01,
4%D          title=\CONTEXT\ Data Macros,
5%D       subtitle=Integer,
6%D         author=Hans Hagen,
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9%C
10%C This module is part of the \CONTEXT\ macro||package and is
11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12%C details.
13
14\writestatus{loading}{ConTeXt Lua Documents / Initialization}
15
16% \newcount\trialtypesettingstate % gets aliased at the Lua end
17
18\registerctxluafile{cldf-ini}{autosuffix}
19
20%D With each new update of \MKIV\ we can join Within Temptation in singing:
21%D
22%D \startbuffer
23%D \startluacode
24%D     context("I go faster%s",string.rep(" and faster",6))
25%D \stopluacode
26%D
27%D \cldcontext{"I go faster\letterpercent s",
28%D     string.rep(" and faster",6)}
29%D \stopbuffer
30%D
31%D \typebuffer \getbuffer
32%D
33%D Anyway \unknown\ the following are {\em not} user commands:
34
35% \catcode`=\activecatcode \let\luafunction % saves 10% on the call
36
37% todo: these can become implementers
38
39\permanent\protected\def\cldprocessfile#1{\directlua{context.runfile("#1")}}
40\permanent          \def\cldloadfile   #1{\directlua{context.loadfile("#1")}}
41\permanent          \def\cldloadviafile#1{\directlua{context.loadviafile("#1")}}
42\permanent          \def\cldcontext    #1{\directlua{context(#1)}}
43\permanent          \def\cldcommand    #1{\directlua{context.#1}}
44
45\endinput
46