doc-src/Ref/theories.tex
changeset 1551 4a617e14d12c
parent 1520 5fee0fef5019
child 1650 a4ed2655b08c
equal deleted inserted replaced
1550:f945e3a96b35 1551:4a617e14d12c
   522 \end{ttbox}
   522 \end{ttbox}
   523 
   523 
   524 
   524 
   525 \subsection*{Manual HTML generation}
   525 \subsection*{Manual HTML generation}
   526 
   526 
   527 To manually activate and deactivate the generation of HTML files the
   527 To manually control the generation of HTML files the following
   528 following commands and reference variables are used:
   528 commands and reference variables are used:
   529 
   529 
   530 \begin{ttbox}
   530 \begin{ttbox}
   531 init_html   : unit -> unit
   531 init_html   : unit -> unit
   532 make_html   : bool ref
   532 make_html   : bool ref
   533 finish_html : unit -> unit
   533 finish_html : unit -> unit
   614 
   614 
   615 The generated HTML files contain all theorems that were proved in the
   615 The generated HTML files contain all theorems that were proved in the
   616 theory's \ML{} file with {\tt qed}, {\tt qed_goal} and {\tt qed_goalw},
   616 theory's \ML{} file with {\tt qed}, {\tt qed_goal} and {\tt qed_goalw},
   617 or stored with {\tt bind_thm} and {\tt store_thm}. Additionally there
   617 or stored with {\tt bind_thm} and {\tt store_thm}. Additionally there
   618 is a hypertext link to the whole \ML{} file.
   618 is a hypertext link to the whole \ML{} file.
       
   619 
       
   620 You can add section headings to the list of theorems by using
       
   621 
       
   622 \begin{ttbox}\index{use_dir}
       
   623 section: string -> unit
       
   624 \end{ttbox}
       
   625 
       
   626 in a theory's ML file, which converts a plain string to a HTML
       
   627 heading and inserts it before the next theorem proved or stored with
       
   628 one of the above functions. If {\tt make_html} is {\tt false} nothing
       
   629 is done.
   619 
   630 
   620 
   631 
   621 \subsection*{Using someone else's database}
   632 \subsection*{Using someone else's database}
   622 
   633 
   623 To make them independent from their storage place, the HTML files only
   634 To make them independent from their storage place, the HTML files only