blob: 4ad31d81ebecfabe4b2ceaecb01ce1b8dd1b0e65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
%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={PRAGMA ADE \& \CONTEXT\ Development Team}]
%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
%D
%D Anyway \unknown\ the following are {\em not} user commands:
\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
|