forked from DanGrayson/M2-merge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmerge.tex
63 lines (59 loc) · 1.37 KB
/
merge.tex
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
% these macros are needed by the output of the 'merge' program:
{\obeyspaces\global\let =\ }
\font\tteight=cmtt8
\font\ttten=cmtt10
\newdimen\outputBaseLineSkip
\outputBaseLineSkip = 10pt % was 9pt
\newskip\beginOutputSkip
\beginOutputSkip = 4.5 pt plus .5 pt minus .5 pt
\newskip\endOutputSkip
\endOutputSkip = 2.5 pt plus .25 pt minus .25 pt
\def\looserOutput#1{%
\advance\beginOutputSkip by #1
\advance\endOutputSkip by #1
}
\def\tighterOutput#1{%
\advance\beginOutputSkip by -#1
\advance\endOutputSkip by -#1
}
\def\beginOutput{%
\par
\penalty -150
% \vskip \beginOutputSkip
\penalty -150
\begingroup
\def\\{%
\leavevmode
\hss
\endgraf
\penalty 150
}
% \tteight
\ttten
% \baselineskip = \outputBaseLineSkip
\parindent = 24pt
\def\${\char`\$}
\def\{{\char`\{}
\def\}{\char`\}}
\catcode`\_=\the\catcode`a
\catcode`\^=\the\catcode`a
\catcode`\#=\the\catcode`a
\catcode`\~=\the\catcode`a
\catcode`\&=\the\catcode`a
\parskip=0pt
\lineskip=0pt
\obeyspaces
}
\def\emptyLine{%
\penalty -100
% \vskip \endOutputSkip
% \vskip \beginOutputSkip
\penalty -100
}
\def\endOutput{%
\endgroup
\par
\penalty -150
% \vskip \endOutputSkip
\penalty -150
\noindent}