-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathquadview.edt
45 lines (37 loc) · 1.51 KB
/
quadview.edt
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
43
44
45
Requires(20110504);
PushTagsandRegisters;
CreateFolders("%@('APPDATA');\QuadView",0);
Assign("quadview", "%b\QuadView");
Assign("quadview-version", "\def\quadview{0.7}%\");
//Assign("quadview-handout", "\PassOptionsToClass{handout}{beamer}%\");
Assign("quadview-preview", >
"\makeatletter%\"+>
"\@ifclassloaded{beamer}{}{%\"+>
" \usepackage[active,tightpage]{preview}%\"+>
" \setlength{\PreviewBorder}{8pt}%\"+>
" \AtBeginDocument{%%%\"+>
" \edef\quadview@parindent{\the\parindent}%%%\"+>
" \edef\quadview@baselineskip{\the\baselineskip}%%%\"+>
" \edef\quadview@lineskiplimit{\the\lineskiplimit}%%%\"+>
" \edef\quadview@lineskip{\the\lineskip}%%%\"+>
" \begin{preview}%\"+>
" \parindent\quadview@parindent\relax%\"+>
" \baselineskip\quadview@baselineskip\relax%\"+>
" \lineskiplimit\quadview@lineskiplimit\relax%\"+>
" \lineskip\quadview@lineskip\relax%\"+>
" \ignorespaces%\"+>
" }%\"+>
" \AtEndDocument{\end{preview}}%\"+>
" \pagestyle{empty}%\"+>
"}%\"+>
"\makeatother">
);
Assign("quadview-fragment", "");
Assign("quadview-fragment-old", "");
// SetEventTimer macro changed in WinEdt 8.2
GetVersion(1);
IfNum(%!1, 8.1, '>=', 'LetRegNum(2,1000)', 'LetRegNum(2,1)');
SetEventTimer(1, %!2, "Exe('%$(|quadview|);\fragment.edt')");
Run('"%$(|quadview|);\wlua52.exe" "%$(|quadview|);\quadview.lua"', '%$(|quadview|)');
PopTagsandRegisters;