author | wenzelm |
Mon, 11 Sep 2000 17:37:50 +0200 | |
changeset 9917 | 5af7632388a0 |
parent 9795 | c362e75e8939 |
child 11057 | e68becb804fe |
permissions | -rw-r--r-- |
6203 | 1 |
(* Title: Pure/Thy/present.ML |
2 |
ID: $Id$ |
|
9416 | 3 |
Author: Markus Wenzel and Stefan Berghofer, TU Muenchen |
8808 | 4 |
License: GPL (GNU GENERAL PUBLIC LICENSE) |
6203 | 5 |
|
9416 | 6 |
Theory presentation: HTML, graph files, (PDF)LaTeX documents. |
6203 | 7 |
*) |
8 |
||
9 |
signature BASIC_PRESENT = |
|
10 |
sig |
|
7727 | 11 |
val section: string -> unit |
6203 | 12 |
end; |
13 |
||
14 |
signature PRESENT = |
|
15 |
sig |
|
7727 | 16 |
include BASIC_PRESENT |
9452 | 17 |
val write_graph: {name: string, ID: string, dir: string, unfold: bool, |
18 |
path: string, parents: string list} list -> Path.T -> unit |
|
8196 | 19 |
val init: bool -> string -> string list -> string -> Path.T option -> Url.T option * bool -> unit |
7727 | 20 |
val finish: unit -> unit |
21 |
val init_theory: string -> unit |
|
8192 | 22 |
val verbatim_source: string -> (unit -> Symbol.symbol list) -> unit |
23 |
val old_symbol_source: string -> (unit -> Symbol.symbol list) -> unit |
|
9136 | 24 |
val theory_output: string -> string -> unit |
7727 | 25 |
val begin_theory: string -> string list -> (Path.T * bool) list -> theory -> theory |
26 |
val result: string -> string -> thm -> unit |
|
27 |
val results: string -> string -> thm list -> unit |
|
28 |
val theorem: string -> thm -> unit |
|
29 |
val theorems: string -> thm list -> unit |
|
8088 | 30 |
val chapter: string -> unit |
7727 | 31 |
val subsection: string -> unit |
32 |
val subsubsection: string -> unit |
|
33 |
val setup: (theory -> theory) list |
|
9416 | 34 |
val get_info: theory -> {name: string, session: string list, is_local: bool} |
6203 | 35 |
end; |
36 |
||
7685 | 37 |
structure Present: PRESENT = |
38 |
struct |
|
39 |
||
7727 | 40 |
|
41 |
(** paths **) |
|
42 |
||
43 |
val output_path = Path.variable "ISABELLE_BROWSER_INFO"; |
|
44 |
||
45 |
val tex_ext = Path.ext "tex"; |
|
46 |
val tex_path = tex_ext o Path.basic; |
|
47 |
val html_ext = Path.ext "html"; |
|
48 |
val html_path = html_ext o Path.basic; |
|
49 |
val graph_path = Path.ext "graph" o Path.basic; |
|
50 |
val index_path = Path.basic "index.html"; |
|
51 |
val doc_path = Path.basic "document"; |
|
8196 | 52 |
val doc_indexN = "session"; |
7727 | 53 |
|
54 |
val session_path = Path.basic ".session"; |
|
55 |
val session_entries_path = Path.unpack ".session/entries"; |
|
56 |
val pre_index_path = Path.unpack ".session/pre-index"; |
|
57 |
||
9044 | 58 |
fun mk_rel_path [] ys = Path.make ys |
59 |
| mk_rel_path xs [] = Path.appends (replicate (length xs) Path.parent) |
|
9416 | 60 |
| mk_rel_path (ps as x :: xs) (qs as y :: ys) = if x = y then mk_rel_path xs ys else |
9044 | 61 |
Path.appends (replicate (length ps) Path.parent @ [Path.make qs]); |
7727 | 62 |
|
63 |
||
64 |
(** additional theory data **) |
|
65 |
||
66 |
structure BrowserInfoArgs = |
|
67 |
struct |
|
68 |
val name = "Pure/browser_info"; |
|
9416 | 69 |
type T = {name: string, session: string list, is_local: bool}; |
7727 | 70 |
|
9416 | 71 |
val empty = {name = "Pure", session = [], is_local = false}; |
7727 | 72 |
val copy = I; |
9452 | 73 |
fun prep_ext _ = {name = "", session = [], is_local = false}; |
7727 | 74 |
fun merge _ = empty; |
75 |
fun print _ _ = (); |
|
76 |
end; |
|
77 |
||
78 |
structure BrowserInfoData = TheoryDataFun(BrowserInfoArgs); |
|
79 |
||
80 |
fun get_info thy = |
|
81 |
if Theory.eq_thy (thy, ProtoPure.thy) then BrowserInfoArgs.empty |
|
82 |
else BrowserInfoData.get thy; |
|
83 |
||
84 |
||
85 |
||
86 |
(** graphs **) |
|
87 |
||
88 |
type graph_node = |
|
89 |
{name: string, ID: string, dir: string, unfold: bool, |
|
90 |
path: string, parents: string list}; |
|
91 |
||
9416 | 92 |
fun write_graph gr path = |
93 |
File.write path (cat_lines (map (fn {name, ID, dir, unfold, path, parents} => |
|
94 |
"\"" ^ name ^ "\" \"" ^ ID ^ "\" \"" ^ dir ^ (if unfold then "\" + \"" else "\" \"") ^ |
|
95 |
path ^ "\" > " ^ space_implode " " (map quote parents) ^ " ;") gr)); |
|
7727 | 96 |
|
9416 | 97 |
fun ID_of sess s = space_implode "/" (sess @ [s]); |
7727 | 98 |
|
9416 | 99 |
(*retrieve graph data from initial theory loader database*) |
100 |
fun init_graph remote_path curr_sess = map (fn name => |
|
7727 | 101 |
let |
9416 | 102 |
val {name = sess_name, session, is_local} = get_info (ThyInfo.theory name); |
103 |
val path' = Path.append (Path.make session) (html_path name); |
|
7727 | 104 |
in |
9416 | 105 |
{name = name, ID = ID_of session name, dir = sess_name, |
106 |
path = |
|
107 |
if null session then "" else |
|
108 |
if is_some remote_path andalso not is_local then |
|
109 |
Url.pack (Url.append (the remote_path) (Url.file |
|
110 |
(Path.append (Path.make session) (html_path name)))) |
|
111 |
else Path.pack (Path.append (mk_rel_path curr_sess session) (html_path name)), |
|
112 |
unfold = false, |
|
113 |
parents = |
|
114 |
map (fn s => ID_of (#session (get_info (ThyInfo.theory s))) s) (ThyInfo.get_preds name)} |
|
7727 | 115 |
end) (ThyInfo.names ()); |
116 |
||
9416 | 117 |
fun ins_graph_entry (entry as {ID, ...}) (gr: graph_node list) = |
7727 | 118 |
filter_out (fn entry' => #ID entry' = ID) gr @ [entry]; |
119 |
||
120 |
||
121 |
||
122 |
(** global browser info state **) |
|
123 |
||
124 |
(* type theory_info *) |
|
125 |
||
126 |
type theory_info = {tex_source: Buffer.T, html_source: Buffer.T, html: Buffer.T}; |
|
127 |
||
128 |
fun make_theory_info (tex_source, html_source, html) = |
|
129 |
{tex_source = tex_source, html_source = html_source, html = html}: theory_info; |
|
130 |
||
131 |
val empty_theory_info = make_theory_info (Buffer.empty, Buffer.empty, Buffer.empty); |
|
132 |
||
133 |
fun map_theory_info f {tex_source, html_source, html} = |
|
134 |
make_theory_info (f (tex_source, html_source, html)); |
|
135 |
||
136 |
||
137 |
(* type browser_info *) |
|
138 |
||
139 |
type browser_info = {theories: theory_info Symtab.table, tex_index: Buffer.T, |
|
9416 | 140 |
html_index: Buffer.T, graph: graph_node list}; |
7727 | 141 |
|
9416 | 142 |
fun make_browser_info (theories, tex_index, html_index, graph) = |
7727 | 143 |
{theories = theories, tex_index = tex_index, html_index = html_index, |
9416 | 144 |
graph = graph}: browser_info; |
7727 | 145 |
|
9416 | 146 |
val empty_browser_info = make_browser_info (Symtab.empty, Buffer.empty, Buffer.empty, []); |
7727 | 147 |
|
9416 | 148 |
fun init_browser_info remote_path curr_sess = make_browser_info |
149 |
(Symtab.empty, Buffer.empty, Buffer.empty, init_graph remote_path curr_sess); |
|
7727 | 150 |
|
9416 | 151 |
fun map_browser_info f {theories, tex_index, html_index, graph} = |
152 |
make_browser_info (f (theories, tex_index, html_index, graph)); |
|
7727 | 153 |
|
154 |
||
155 |
(* state *) |
|
156 |
||
157 |
val browser_info = ref empty_browser_info; |
|
158 |
||
159 |
fun change_browser_info f = browser_info := map_browser_info f (! browser_info); |
|
160 |
||
161 |
fun init_theory_info name info = |
|
9416 | 162 |
change_browser_info (fn (theories, tex_index, html_index, graph) => |
163 |
(Symtab.update ((name, info), theories), tex_index, html_index, graph)); |
|
7727 | 164 |
|
165 |
fun change_theory_info name f = |
|
9416 | 166 |
change_browser_info (fn (info as (theories, tex_index, html_index, graph)) => |
7727 | 167 |
(case Symtab.lookup (theories, name) of |
168 |
None => (warning ("Browser info: cannot access theory document " ^ quote name); info) |
|
169 |
| Some info => (Symtab.update ((name, map_theory_info f info), theories), |
|
9416 | 170 |
tex_index, html_index, graph))); |
7727 | 171 |
|
172 |
||
173 |
fun add_tex_index txt = |
|
9416 | 174 |
change_browser_info (fn (theories, tex_index, html_index, graph) => |
175 |
(theories, Buffer.add txt tex_index, html_index, graph)); |
|
7727 | 176 |
|
177 |
fun add_html_index txt = |
|
9416 | 178 |
change_browser_info (fn (theories, tex_index, html_index, graph) => |
179 |
(theories, tex_index, Buffer.add txt html_index, graph)); |
|
7727 | 180 |
|
181 |
fun add_graph_entry e = |
|
9416 | 182 |
change_browser_info (fn (theories, tex_index, html_index, graph) => |
183 |
(theories, tex_index, html_index, ins_graph_entry e graph)); |
|
7727 | 184 |
|
185 |
fun add_tex_source name txt = change_theory_info name (fn (tex_source, html_source, html) => |
|
186 |
(Buffer.add txt tex_source, html_source, html)); |
|
187 |
||
188 |
fun add_html_source name txt = change_theory_info name (fn (tex_source, html_source, html) => |
|
189 |
(tex_source, Buffer.add txt html_source, html)); |
|
190 |
||
191 |
fun add_html name txt = change_theory_info name (fn (tex_source, html_source, html) => |
|
192 |
(tex_source, html_source, Buffer.add txt html)); |
|
193 |
||
194 |
||
195 |
||
196 |
(** global session state **) |
|
197 |
||
198 |
(* session_info *) |
|
199 |
||
200 |
type session_info = |
|
201 |
{name: string, parent: string, session: string, path: string list, html_prefix: Path.T, |
|
9416 | 202 |
doc_format: string, doc_prefixes: (Path.T * Path.T option) option, remote_path: Url.T option}; |
7727 | 203 |
|
9416 | 204 |
fun make_session_info |
205 |
(name, parent, session, path, html_prefix, doc_format, doc_prefixes, remote_path) = |
|
7802 | 206 |
{name = name, parent = parent, session = session, path = path, html_prefix = html_prefix, |
9416 | 207 |
doc_format = doc_format, doc_prefixes = doc_prefixes, remote_path = remote_path}: session_info; |
7685 | 208 |
|
209 |
||
7727 | 210 |
(* state *) |
211 |
||
212 |
val session_info = ref (None: session_info option); |
|
213 |
||
214 |
fun with_session x f = (case ! session_info of None => x | Some info => f info); |
|
215 |
fun with_context f = f (PureThy.get_name (Context.the_context ())); |
|
216 |
||
217 |
||
218 |
||
219 |
(** HTML output **) |
|
220 |
||
221 |
(* maintain index *) |
|
222 |
||
223 |
val session_entries = |
|
224 |
HTML.session_entries o |
|
225 |
map (fn name => (Url.file (Path.append (Path.basic name) index_path), name)); |
|
226 |
||
227 |
fun get_entries dir = |
|
228 |
split_lines (File.read (Path.append dir session_entries_path)); |
|
229 |
||
230 |
fun put_entries entries dir = |
|
231 |
File.write (Path.append dir session_entries_path) (cat_lines entries); |
|
232 |
||
233 |
||
234 |
fun create_index dir = |
|
235 |
File.read (Path.append dir pre_index_path) ^ |
|
236 |
session_entries (get_entries dir) ^ HTML.end_index |
|
237 |
|> File.write (Path.append dir index_path); |
|
238 |
||
239 |
fun update_index dir name = |
|
240 |
(case try get_entries dir of |
|
241 |
None => warning ("Browser info: cannot access session index of " ^ quote (Path.pack dir)) |
|
242 |
| Some es => (put_entries ((es \ name) @ [name]) dir; create_index dir)); |
|
243 |
||
244 |
||
245 |
(* init session *) |
|
246 |
||
247 |
fun name_of_session elems = space_implode "/" ("Isabelle" :: elems); |
|
248 |
||
249 |
fun could_copy inpath outpath = |
|
250 |
if File.exists inpath then (File.copy inpath outpath; true) |
|
251 |
else false; |
|
252 |
||
9044 | 253 |
fun copy_files path1 path2 = |
254 |
(File.mkdir path2; |
|
9795 | 255 |
File.system_command (*FIXME: quote paths!?*) |
256 |
("cp " ^ File.sysify_path path1 ^ " " ^ File.sysify_path path2)); |
|
9044 | 257 |
|
9416 | 258 |
|
8196 | 259 |
fun init false _ _ _ _ _ = (browser_info := empty_browser_info; session_info := None) |
260 |
| init true doc path name dump_path (remote_path, first_time) = |
|
7727 | 261 |
let |
9416 | 262 |
val parent_name = name_of_session (Library.take (length path - 1, path)); |
7727 | 263 |
val session_name = name_of_session path; |
264 |
val sess_prefix = Path.make path; |
|
265 |
||
266 |
val out_path = Path.expand output_path; |
|
267 |
val html_prefix = Path.append out_path sess_prefix; |
|
268 |
||
8196 | 269 |
val (doc_prefixes, document_path) = |
7727 | 270 |
if doc = "" then (None, None) |
8196 | 271 |
else (Some (Path.append html_prefix doc_path, dump_path), Some (Path.ext doc doc_path)); |
7727 | 272 |
|
9044 | 273 |
val graph_up_lnk = (Url.file index_path, session_name); |
7727 | 274 |
|
9044 | 275 |
val _ = |
276 |
(copy_files (Path.unpack "~~/lib/browser/awtUtilities/*.class") |
|
277 |
(Path.append html_prefix (Path.basic "awtUtilities")); |
|
278 |
copy_files (Path.unpack "~~/lib/browser/GraphBrowser/*.class") |
|
279 |
(Path.append html_prefix (Path.basic "GraphBrowser"))); |
|
7727 | 280 |
|
281 |
fun prep_readme readme = |
|
282 |
let val readme_path = Path.basic readme in |
|
283 |
if could_copy readme_path (Path.append html_prefix readme_path) then Some readme_path |
|
284 |
else None |
|
285 |
end; |
|
286 |
val opt_readme = |
|
287 |
(case prep_readme "README.html" of None => prep_readme "README" | some => some); |
|
288 |
||
289 |
val parent_index_path = Path.append Path.parent index_path; |
|
290 |
val index_up_lnk = if first_time then |
|
291 |
Url.append (the remote_path) (Url.file (Path.append sess_prefix parent_index_path)) |
|
292 |
else Url.file parent_index_path; |
|
293 |
||
294 |
val index_text = HTML.begin_index (index_up_lnk, parent_name) |
|
295 |
(Url.file index_path, session_name) (apsome Url.file opt_readme) |
|
9044 | 296 |
(apsome Url.file document_path) (Url.unpack "medium.html"); |
7727 | 297 |
in |
298 |
File.mkdir (Path.append html_prefix session_path); |
|
299 |
File.write (Path.append html_prefix session_entries_path) ""; |
|
8196 | 300 |
if is_some doc_prefixes then File.copy_all doc_path html_prefix else (); |
9044 | 301 |
seq (fn (name, txt) => File.write (Path.append html_prefix (Path.basic name)) txt) |
9416 | 302 |
(HTML.applet_pages session_name graph_up_lnk); |
7727 | 303 |
session_info := Some (make_session_info (name, parent_name, session_name, path, |
9416 | 304 |
html_prefix, doc, doc_prefixes, remote_path)); |
305 |
browser_info := init_browser_info remote_path path; |
|
7727 | 306 |
add_html_index index_text |
307 |
end; |
|
308 |
||
309 |
||
310 |
(* finish session *) |
|
7685 | 311 |
|
7802 | 312 |
fun isatool_document doc_format doc_prefix = |
8646
1a2c5ccebfdb
isatool document: check output file (workaround PolyML problem with RC);
wenzelm
parents:
8499
diff
changeset
|
313 |
let |
9785 | 314 |
val cmd = |
315 |
"\"$ISATOOL\" document -c -o '" ^ doc_format ^ "' " ^ File.quote_sysify_path doc_prefix; |
|
8646
1a2c5ccebfdb
isatool document: check output file (workaround PolyML problem with RC);
wenzelm
parents:
8499
diff
changeset
|
316 |
in |
1a2c5ccebfdb
isatool document: check output file (workaround PolyML problem with RC);
wenzelm
parents:
8499
diff
changeset
|
317 |
writeln cmd; |
1a2c5ccebfdb
isatool document: check output file (workaround PolyML problem with RC);
wenzelm
parents:
8499
diff
changeset
|
318 |
if system cmd <> 0 orelse not (File.exists (Path.ext doc_format doc_prefix)) then |
1a2c5ccebfdb
isatool document: check output file (workaround PolyML problem with RC);
wenzelm
parents:
8499
diff
changeset
|
319 |
error "Failed to build document" |
1a2c5ccebfdb
isatool document: check output file (workaround PolyML problem with RC);
wenzelm
parents:
8499
diff
changeset
|
320 |
else () |
1a2c5ccebfdb
isatool document: check output file (workaround PolyML problem with RC);
wenzelm
parents:
8499
diff
changeset
|
321 |
end; |
7802 | 322 |
|
8196 | 323 |
fun write_tex src name path = Buffer.write (Path.append path (tex_path name)) src; |
324 |
||
325 |
fun write_texes src name (path, None) = write_tex src name path |
|
326 |
| write_texes src name (path, Some path') = (write_tex src name path; write_tex src name path'); |
|
327 |
||
328 |
||
7727 | 329 |
fun finish () = with_session () |
9416 | 330 |
(fn {name, html_prefix, doc_format, doc_prefixes, path, ...} => |
7727 | 331 |
let |
9416 | 332 |
val {theories, tex_index, html_index, graph} = ! browser_info; |
333 |
val parent_html_prefix = Path.append html_prefix Path.parent; |
|
7727 | 334 |
|
335 |
fun finish_node (a, {tex_source, html_source = _, html}) = |
|
8196 | 336 |
(doc_prefixes |> apsome (write_texes tex_source a); |
7727 | 337 |
Buffer.write (Path.append html_prefix (html_path a)) (Buffer.add HTML.end_theory html)); |
338 |
in |
|
339 |
seq finish_node (Symtab.dest theories); |
|
340 |
Buffer.write (Path.append html_prefix pre_index_path) html_index; |
|
9708 | 341 |
doc_prefixes |> apsome (write_texes (Buffer.add Latex.tex_trailer tex_index) doc_indexN); |
8196 | 342 |
doc_prefixes |> apsome (isatool_document doc_format o #1); |
9416 | 343 |
write_graph graph (Path.append html_prefix (graph_path "session")); |
7727 | 344 |
create_index html_prefix; |
9416 | 345 |
if length path > 1 then update_index parent_html_prefix name else (); |
7727 | 346 |
browser_info := empty_browser_info; |
347 |
session_info := None |
|
348 |
end); |
|
349 |
||
350 |
||
351 |
(* theory elements *) |
|
352 |
||
353 |
fun init_theory name = with_session () (fn _ => init_theory_info name empty_theory_info); |
|
354 |
||
355 |
fun verbatim_source name mk_text = |
|
356 |
with_session () (fn _ => add_html_source name (HTML.verbatim_source (mk_text ()))); |
|
357 |
||
8192 | 358 |
fun old_symbol_source name mk_text = |
8499 | 359 |
with_session () (fn _ => add_tex_source name (Latex.old_symbol_source name (mk_text ()))); |
8192 | 360 |
|
9136 | 361 |
fun theory_output name s = |
9917 | 362 |
with_session () (fn _ => add_tex_source name (Latex.isabelle_file name s)); |
7727 | 363 |
|
364 |
||
365 |
fun parent_link remote_path curr_session name = |
|
9416 | 366 |
let val {name = _, session, is_local} = get_info (ThyInfo.theory name) |
7727 | 367 |
in (if null session then None else |
368 |
Some (if is_some remote_path andalso not is_local then |
|
9044 | 369 |
Url.append (the remote_path) (Url.file |
370 |
(Path.append (Path.make session) (html_path name))) |
|
371 |
else Url.file (Path.append (mk_rel_path curr_session session) |
|
372 |
(html_path name))), name) |
|
7727 | 373 |
end; |
374 |
||
375 |
fun begin_theory name raw_parents orig_files thy = |
|
9416 | 376 |
with_session thy (fn {name = sess_name, session, path, html_prefix, remote_path, ...} => |
7727 | 377 |
let |
378 |
val parents = map (parent_link remote_path path) raw_parents; |
|
379 |
val ml_path = ThyLoad.ml_path name; |
|
380 |
val files = map (apsnd Some) orig_files @ |
|
381 |
(if is_some (ThyLoad.check_file ml_path) then [(ml_path, None)] else []); |
|
382 |
||
383 |
fun prep_file (raw_path, loadit) = |
|
384 |
(case ThyLoad.check_file raw_path of |
|
385 |
Some (path, _) => |
|
386 |
let |
|
387 |
val base = Path.base path; |
|
388 |
val base_html = html_ext base; |
|
389 |
in |
|
390 |
File.write (Path.append html_prefix base_html) |
|
391 |
(HTML.ml_file (Url.file base) (File.read path)); |
|
392 |
(Some (Url.file base_html), Url.file raw_path, loadit) |
|
393 |
end |
|
394 |
| None => (warning ("Browser info: expected to find ML file" ^ quote (Path.pack raw_path)); |
|
395 |
(None, Url.file raw_path, loadit))); |
|
396 |
||
397 |
val files_html = map prep_file files; |
|
398 |
||
399 |
fun prep_html_source (tex_source, html_source, html) = |
|
400 |
let |
|
401 |
val txt = HTML.begin_theory (Url.file index_path, session) |
|
402 |
name parents files_html (Buffer.content html_source) |
|
403 |
in (tex_source, Buffer.empty, Buffer.add txt html) end; |
|
404 |
||
9416 | 405 |
val entry = |
406 |
{name = name, ID = ID_of path name, dir = sess_name, unfold = true, |
|
407 |
path = Path.pack (html_path name), |
|
408 |
parents = map (fn s => ID_of (#session (get_info (ThyInfo.theory s))) s) raw_parents}; |
|
7727 | 409 |
|
410 |
in |
|
411 |
change_theory_info name prep_html_source; |
|
9416 | 412 |
add_graph_entry entry; |
7727 | 413 |
add_html_index (HTML.theory_entry (Url.file (html_path name), name)); |
414 |
add_tex_index (Latex.theory_entry name); |
|
9416 | 415 |
BrowserInfoData.put {name = sess_name, session = path, is_local = is_some remote_path} thy |
7727 | 416 |
end); |
417 |
||
418 |
||
419 |
fun result k a thm = with_session () (fn _ => with_context add_html (HTML.result k a thm)); |
|
420 |
fun results k a thms = with_session () (fn _ => with_context add_html (HTML.results k a thms)); |
|
421 |
fun theorem a thm = with_session () (fn _ => with_context add_html (HTML.theorem a thm)); |
|
422 |
fun theorems a thms = with_session () (fn _ => with_context add_html (HTML.theorems a thms)); |
|
8088 | 423 |
fun chapter s = with_session () (fn _ => with_context add_html (HTML.chapter s)); |
7727 | 424 |
fun section s = with_session () (fn _ => with_context add_html (HTML.section s)); |
425 |
fun subsection s = with_session () (fn _ => with_context add_html (HTML.subsection s)); |
|
426 |
fun subsubsection s = with_session () (fn _ => with_context add_html (HTML.subsubsection s)); |
|
427 |
||
428 |
||
429 |
||
430 |
(** theory setup **) |
|
431 |
||
432 |
val setup = [BrowserInfoData.init]; |
|
7685 | 433 |
|
434 |
||
435 |
end; |
|
436 |
||
6203 | 437 |
|
438 |
structure BasicPresent: BASIC_PRESENT = Present; |
|
439 |
open BasicPresent; |