cont-run.mkiv /size: 1806 b    last modification: 2021-10-28 13:50
1%D \module
2%D   [       file=cont-run,
3%D        version=2014.12.26,
4%D          title=\CONTEXT\ Core Macros,
5%D       subtitle=Runner,
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 Core Macros / Runner}
15
16\registerctxluafile{cont-run}{}
17
18% \enabletrackers[system.synctex.visualize]
19% \enabletrackers[system.synctex.xml]
20% \enabledirectives[system.synctex.details]
21% \setupsynctex[state=start]
22
23\unprotect
24
25\let\synctexsetfilename  \clf_synctexsetfilename
26\let\synctexresetfilename\clf_synctexresetfilename
27\let\synctexblockfilename\clf_synctexblockfilename
28
29\let\synctexpause   \donothing
30\let\synctexresume  \donothing
31\let\synctexpushline\donothing
32\let\synctexpopline \donothing
33
34\appendtoks\synctexpause \to\everybeforeoutput
35\appendtoks\synctexresume\to\everyafteroutput
36
37\unexpanded\def\setupsynctex[#1]%
38  {\begingroup
39   \getdummyparameters[\c!state=\v!stop,\c!method=\v!max,#1]%
40   \edef\p_state{\dummyparameter\c!state}%
41   \clf_setupsynctex
42      state  {\p_state}%
43      method {\dummyparameter\c!method}%
44   \relax
45   \ifx\p_state\v!start
46     \glet\synctexpause   \clf_synctexpause
47     \glet\synctexresume  \clf_synctexresume
48     \glet\synctexpushline\clf_synctexpushline
49     \glet\synctexpopline \clf_synctexpopline
50   \fi
51   \endgroup}
52
53\unexpanded\def\blocksynctexfile[#1]%
54  {\processcommacommand{#1}\synctexblockfilename}
55
56\def\continuewhenlmtxmode
57  {\starttext
58   \startTEXpage[\c!offset=2ex,\c!foregroundstyle=\tttf]%
59      This file needs \LuaMetaTeX\ and \ConTeXt\ \LMTX.%
60   \stopTEXpage
61   \stoptext
62   \endinput}
63
64\protect \endinput
65