From 101f95e48a8bb7833ade978a12e3883a34d64235 Mon Sep 17 00:00:00 2001 From: msozeau Date: Tue, 8 Sep 2009 15:50:12 +0000 Subject: Update coqdoc documentation, CHANGES and add a fix for the proofbox (patch by Chris Casinghino). git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12311 85f007b7-540e-0410-9357-904b9bb8a0f7 --- tools/coqdoc/cpretty.mll | 2 +- tools/coqdoc/output.ml | 11 ++++++++++- tools/coqdoc/output.mli | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/coqdoc/cpretty.mll b/tools/coqdoc/cpretty.mll index 3ad9000503..065b72e7b3 100644 --- a/tools/coqdoc/cpretty.mll +++ b/tools/coqdoc/cpretty.mll @@ -780,7 +780,7 @@ and doc indents = parse | None -> doc_bol lexbuf else doc indents lexbuf)} | "[]" - { Output.symbol "PROOFBOX"; doc indents lexbuf } + { Output.proofbox (); doc indents lexbuf } | "[" { if !Cdglobals.plain_comments then Output.char '[' else (brackets := 1; Output.start_inline_coq (); escaped_coq lexbuf; diff --git a/tools/coqdoc/output.ml b/tools/coqdoc/output.ml index 11a821b7c4..b2e6bbd992 100644 --- a/tools/coqdoc/output.ml +++ b/tools/coqdoc/output.ml @@ -131,7 +131,6 @@ let initialize () = "exists", "\\ensuremath{\\exists}", if_utf8 "∃"; "Π", "\\ensuremath{\\Pi}", if_utf8 "Π"; "λ", "\\ensuremath{\\lambda}", if_utf8 "λ"; - "PROOFBOX", "\\ensuremath{\\Box}", Some ""; (* FIX THIS *) (* "fun", "\\ensuremath{\\lambda}" ? *) ] @@ -318,6 +317,8 @@ module Latex = struct let symbol s = with_latex_printing raw_ident s + let proofbox () = printf "\\ensuremath{\\Box}" + let rec reach_item_level n = if !item_level < n then begin printf "\n\\begin{itemize}\n\\item "; incr item_level; @@ -548,6 +549,8 @@ module Html = struct let symbol s = with_html_printing raw_ident s + let proofbox () = printf "" + let rec reach_item_level n = if !item_level < n then begin printf "