-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformat.fmt
40 lines (35 loc) · 1.06 KB
/
format.fmt
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
%include polycode.fmt
%include forall.fmt
%include spacing.fmt
\newmuskip\codemuskip
\codemuskip=4.0mu plus 2.0mu minus 2.0mu\relax
\providecommand\codeskip{\mskip\codemuskip}%
\let\codefont\textsf
\providecommand\sub[1]{\ensuremath{_{\text{#1}}}}
\providecommand\keyw[1]{{\codefont{\textbf{#1}}}}
\providecommand\id[1]{\Varid{#1}}
\providecommand\idsym[1]{\mathbin{\id{#1}}}
\providecommand{\vertrule}[1][1.0ex]{\rule[-0.0ex]{.45pt}{#1}}
\renewcommand\Varid[1]{\codefont{#1}}
\let\Conid\Varid
%if style /= newcode
%format `comp_` = "\cdot "
%subst space = "\codeskip "
%subst char a = "\text{\ttfamily{\textquotesingle}" a "\textquotesingle}"
%subst backquoted a = "\mathbin{\text{\`{}}" a "\text{\`{}}}"
%format return = "\keyw{return}"
%format <-> = "<\!\!\!\!-\!\!\!\!>"
%format :+: = ":\!\!+\!\!:"
%format :<: = ":\prec:"
%format <$> = "<\!\!\$\!\!>"
%format :++ = ":\!\!+\!\!+"
%endif
%if style == newcode
%format (SQ(x)) = "''" x
%format (Q(x)) = "''" x
%else
%format STICK = "\,''\!\!"
%format (SQ(x)) = STICK x
%format TICK = "''"
%format (Q(x)) = TICK x
%endif