1
2
3
4
5
6
7
8
9
10
11
12
13
14\writestatus{loading}{ConTeXt Core Macros Runner}
15
16\registerctxluafile{contrun}{}
17
18
19
20
21
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\let\continuewhenmkivmode\relax
57
58\unexpanded\def\continuewhenlmtxmode
59 {\starttext
60 \startTEXpage[\c!offset=2ex,\c!foregroundstyle=\tttf]
61 This file needs \LuaMetaTeX\ and \ConTeXt\ \LMTX.
62 \stopTEXpage
63 \stoptext
64 \endinput}
65
66\protect \endinput
67 |