# HG changeset patch # User wenzelm # Date 1218653857 -7200 # Node ID 911bf8e58c4c06583f3a86f825f5ef7492bcd5f2 # Parent 5125b3c1efc228dd3202f95bed89c2b5e3ff7736 removed obsolete verbatim_source, results, chapter, section etc.; removed redundant end_index, end_theory; diff -r 5125b3c1efc2 -r 911bf8e58c4c src/Pure/Thy/html.ML --- a/src/Pure/Thy/html.ML Wed Aug 13 20:57:35 2008 +0200 +++ b/src/Pure/Thy/html.ML Wed Aug 13 20:57:37 2008 +0200 @@ -25,20 +25,13 @@ val begin_document: string -> text val end_document: text val begin_index: Url.T * string -> Url.T * string -> (Url.T * string) list -> Url.T -> text - val end_index: text val applet_pages: string -> Url.T * string -> (string * string) list val theory_entry: Url.T * string -> text val session_entries: (Url.T * string) list -> text - val verbatim_source: Symbol.symbol list -> text + val theory_source: text -> text val begin_theory: Url.T * string -> string -> (Url.T option * string) list -> (Url.T * Url.T * bool) list -> text -> text - val end_theory: text val ml_file: Url.T -> string -> text - val results: Proof.context -> string -> (string * thm list) list -> text - val chapter: string -> text - val section: string -> text - val subsection: string -> text - val subsubsection: string -> text end; structure HTML: HTML = @@ -310,8 +303,6 @@ implode (map (fn (p, name) => "
\nView " ^ href_path p name) docs)) ^ "\n\n
\n
\n

Theories

\n
\n
\n
\n
" ^
-  implode (output_symbols ss) ^
-  "
\n
\n
\n
\n"; +val theory_source = enclose + "\n
\n
\n
\n
"
+  "
\n
\n"; local @@ -376,13 +366,10 @@ theory up A ^ "
\n" ^ imports Bs ^ "
\n" ^ (if null Ps then "" else uses Ps) ^ - keyword "begin" ^ "
\n" ^ body; end; -val end_theory = end_document; - (* ML file *) @@ -390,38 +377,7 @@ begin_document ("File " ^ Url.implode path) ^ "\n
\n
\n" ^ verbatim str ^ - "\n
\n
\n
\n" ^ + "\n
\n
\n
" ^ end_document; - -(* theorems *) - -local - -fun string_of_thm ctxt = - Output.output o Pretty.setmp_margin 80 Pretty.string_of o - setmp show_question_marks false (ProofContext.pretty_thm ctxt); - -fun thm ctxt th = prefix_lines " " (html_mode (string_of_thm ctxt) th); - -fun thm_name "" = "" - | thm_name a = " " ^ name (a ^ ":"); - -in - -fun result ctxt k (a, ths) = preform (cat_lines ((command k ^ thm_name a) :: map (thm ctxt) ths)); - -fun results _ _ [] = "" - | results ctxt k (res :: ress) = cat_lines (result ctxt k res :: map (result ctxt "and") ress); - end; - - -(* sections *) - -fun chapter heading = "\n\n

" ^ plain heading ^ "

\n"; -fun section heading = "\n\n

" ^ plain heading ^ "

\n"; -fun subsection heading = "\n\n

" ^ plain heading ^ "

\n"; -fun subsubsection heading = "\n\n

" ^ plain heading ^ "

\n"; - -end;