1 %% Support macros for LaTeX documentation generated by ocamldoc.
2 %% This file is in the public domain; do what you want with it.
4 \NeedsTeXFormat{LaTeX2e}
5 \ProvidesPackage{ocamldoc}
6 [2001/12/04 v1.0 ocamldoc support]
8 \newenvironment{ocamldoccode}{%
10 \leftskip\@totalleftmargin
13 \parfillskip\@flushglue
20 \leavevmode\null\@@par\penalty\interlinepenalty
23 \ifhmode\@@par\penalty\interlinepenalty\fi
29 \let\org@dospecials\dospecials
30 \g@remfrom@specials{\\}
31 \g@remfrom@specials{\{}
32 \g@remfrom@specials{\}}
35 \let\dospecials\org@dospecials
36 \frenchspacing\@vobeyspaces
37 \everypar \expandafter{\the\everypar \unpenalty}}
40 \def\g@remfrom@specials#1{%
44 \g@addto@macro\@new@specials{\do ##1}\fi}
45 \let\do\@remove\dospecials
46 \let\dospecials\@new@specials
49 \newenvironment{ocamldocdescription}
50 {\list{}{\rightmargin0pt \topsep0pt}\raggedright\item\relax}
53 \newenvironment{ocamldoccomment}
54 {\list{}{\leftmargin 2\leftmargini \rightmargin0pt \topsep0pt}\raggedright\item\relax}
57 \let\ocamldocvspace\vspace