regi-ini.mkiv /size: 998 b    last modification: 2020-07-01 14:35
1
%D \module
2
%D [ file=regi-ini,
3
%D version=2005.04.25,
4
%D title=\CONTEXT\ Regime Macros,
5
%D subtitle=Regime Support,
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
\registerctxluafile
{
regi
-
ini
}{}
15 16
\unprotect
17 18
%D \macros
19
%D {enableregime,disableregime,
20
%D startregime,stopregime,
21
%D currentregime}
22
%D
23
%D Beware, the enable and disable commands are global switches, so
24
%D best use the start|/|stop commands.
25 26
\let
\currentregime
\empty
27 28
\unexpanded
\def
\enableregime
[#
1
]
{
\clf_enableregime
{
#
1
}}
29
\unexpanded
\def
\disableregime
{
\clf_disableregime
}
30
\unexpanded
\def
\startregime
[#
1
]
{
\clf_startregime
{
#
1
}}
31
\unexpanded
\def
\stopregime
{
\clf_stopregime
}
32 33
% only for diagnostics:
34 35
% \def\codepagename#1{\cldcontext{os.tocodepage("#1")}}
36 37
\protect
\endinput
38