summaryrefslogtreecommitdiff
path: root/ocamldoc/odoc_latex_style.ml
diff options
context:
space:
mode:
authorJun FURUSE / 古瀬 淳 <jun.furuse@gmail.com>2004-06-18 05:04:14 +0000
committerJun FURUSE / 古瀬 淳 <jun.furuse@gmail.com>2004-06-18 05:04:14 +0000
commit5e1bf20850aaa9b1ceb86a971848609ee9e84c47 (patch)
treef3a6e5b5c38263fe527e6275ff95425f12637226 /ocamldoc/odoc_latex_style.ml
parent8ec769214e067da9ee8b33d05f4ef275e9269dd5 (diff)
downloadocaml-gcaml.tar.gz
port to the latest ocaml (2004/06/18)gcaml
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/gcaml@6419 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
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
"