equal
deleted
inserted
replaced
40 let |
40 let |
41 val ((session, chapter), (session', chapter')) = apply2 get_session_chapter (thy, thy'); |
41 val ((session, chapter), (session', chapter')) = apply2 get_session_chapter (thy, thy'); |
42 val link = html_name thy'; |
42 val link = html_name thy'; |
43 in |
43 in |
44 if session = session' then SOME link |
44 if session = session' then SOME link |
45 else if chapter = chapter' then SOME (Path.parent + Path.basic session + link) |
45 else if chapter = chapter' then SOME (Path.parent + Path.basic session' + link) |
46 else if chapter = Context.PureN then NONE |
46 else if chapter' = Context.PureN then NONE |
47 else SOME (Path.parent + Path.parent + Path.basic chapter + Path.basic session + link) |
47 else SOME (Path.parent + Path.parent + Path.basic chapter' + Path.basic session' + link) |
48 end; |
48 end; |
49 |
49 |
50 fun theory_document symbols A Bs body = |
50 fun theory_document symbols A Bs body = |
51 HTML.begin_document symbols ("Theory " ^ A) ^ "\n" ^ |
51 HTML.begin_document symbols ("Theory " ^ A) ^ "\n" ^ |
52 HTML.command symbols "theory" ^ " " ^ HTML.name symbols A ^ "<br/>\n" ^ |
52 HTML.command symbols "theory" ^ " " ^ HTML.name symbols A ^ "<br/>\n" ^ |