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!repeat
46 \let\p_state\v!start
47 \fi
48 \ifx\p_state\v!start
49 \glet\synctexpause \clf_synctexpause
50 \glet\synctexresume \clf_synctexresume
51 \glet\synctexpushline\clf_synctexpushline
52 \glet\synctexpopline \clf_synctexpopline
53 \fi
54 \endgroup}
55
56\unexpanded\def\blocksynctexfile[#1]
57 {\processcommacommand{#1}\synctexblockfilename}
58
59\let\continuewhenmkivmode\relax
60
61\unexpanded\def\continuewhenlmtxmode
62 {\starttext
63 \startTEXpage[\c!offset=2ex,\c!foregroundstyle=\tttf]
64 This file needs \LuaMetaTeX\ and \ConTeXt\ \LMTX.
65 \stopTEXpage
66 \stoptext
67 \endinput}
68
69\protect \endinput
70 |