summaryrefslogtreecommitdiff
path: root/ocamldoc/odoc_latex_style.ml
diff options
context:
space:
mode:
Diffstat (limited to 'ocamldoc/odoc_latex_style.ml')
-rw-r--r--ocamldoc/odoc_latex_style.ml20
1 files changed, 18 insertions, 2 deletions
diff --git a/ocamldoc/odoc_latex_style.ml b/ocamldoc/odoc_latex_style.ml
index 1e557f55f0..5c0ed9bbee 100644
--- a/ocamldoc/odoc_latex_style.ml
+++ b/ocamldoc/odoc_latex_style.ml
@@ -63,14 +63,30 @@ let content ="
}
\\newenvironment{ocamldocdescription}
-{\\list{}{\\rightmargin0pt \\topsep0pt}\\raggedright\\item\\relax}
+{\\list{}{\\rightmargin0pt \\topsep0pt}\\raggedright\\item\\noindent\\relax\\ignorespaces}
{\\endlist\\medskip}
\\newenvironment{ocamldoccomment}
-{\\list{}{\\leftmargin 2\\leftmargini \\rightmargin0pt \\topsep0pt}\\raggedright\\item\\relax}
+{\\list{}{\\leftmargin 2\\leftmargini \\rightmargin0pt \\topsep0pt}\\raggedright\\item\\noindent\\relax}
{\\endlist}
+\\let \\ocamldocparagraph \\paragraph
+\\def \\paragraph #1{\\ocamldocparagraph {#1}\\noindent}
+\\let \\ocamldocsubparagraph \\subparagraph
+\\def \\subparagraph #1{\\ocamldocsubparagraph {#1}\\noindent}
+
\\let\\ocamldocvspace\\vspace
+
+\\newenvironment{ocamldocindent}{\\list{}{}\\item\\relax}{\\endlist}
+\\newenvironment{ocamldocsigend}
+ {\\noindent\\quad\\texttt{sig}\\ocamldocindent}
+ {\\endocamldocindent\\vskip -\\lastskip
+ \\noindent\\quad\\texttt{end}\\medskip}
+\\newenvironment{ocamldocobjectend}
+ {\\noindent\\quad\\texttt{object}\\ocamldocindent}
+ {\\endocamldocindent\\vskip -\\lastskip
+ \\noindent\\quad\\texttt{end}\\medskip}
+
\\endinput
"