summaryrefslogtreecommitdiff
path: root/manual/styles/caml.sty
blob: 3f5753caaaf8eca87207e480f37ed1b03068c492 (plain)
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
% CAML style option, for use with the caml-latex filter.

\typeout{Document Style option `caml' <7 Apr 92>.}

{\catcode`\^^M=\active %
 \gdef\@camlinputline#1^^M{\tt\##1\par} %
 \gdef\@camloutputline#1^^M{\tt#1\par} } %
\def\@camlblankline{\medskip}
\chardef\@camlbackslash="5C

\def\caml{
  \bgroup
  \flushleft
  \parindent 0pt
  \parskip 0pt
  \let\do\@makeother\dospecials
  \catcode`\^^M=\active
  \catcode`\\=0
  \catcode`\ \active
  \frenchspacing
  \@vobeyspaces
  \let\?\@camlinputline
  \let\:\@camloutputline
  \let\;\@camlblankline
  \let\\\@camlbackslash
}

\def\endcaml{
  \endflushleft
  \egroup\noindent
}