src/Pure/Thy/html.ML
changeset 15801 d2f5ca3c048d
parent 15531 08c8dad8e399
child 16196 abff174ba569
equal deleted inserted replaced
15800:f2215ed00438 15801:d2f5ca3c048d
    36   val results: string -> (string * thm list) list -> text
    36   val results: string -> (string * thm list) list -> text
    37   val chapter: string -> text
    37   val chapter: string -> text
    38   val section: string -> text
    38   val section: string -> text
    39   val subsection: string -> text
    39   val subsection: string -> text
    40   val subsubsection: string -> text
    40   val subsubsection: string -> text
    41   val setup: (theory -> theory) list
       
    42 end;
    41 end;
    43 
    42 
    44 structure HTML: HTML =
    43 structure HTML: HTML =
    45 struct
    44 struct
    46 
    45 
   252   ("free",  style "free"),
   251   ("free",  style "free"),
   253   ("bound", style "bound"),
   252   ("bound", style "bound"),
   254   ("var",   style "var"),
   253   ("var",   style "var"),
   255   ("xstr",  style "xstr")];
   254   ("xstr",  style "xstr")];
   256 
   255 
       
   256 val _ = Context.add_setup [Theory.add_mode_tokentrfuns htmlN html_trans];
       
   257 
   257 
   258 
   258 
   259 
   259 (** HTML markup **)
   260 (** HTML markup **)
   260 
   261 
   261 type text = string;
   262 type text = string;
   425 fun section heading = "\n\n<h2>" ^ plain heading ^ "</h2>\n";
   426 fun section heading = "\n\n<h2>" ^ plain heading ^ "</h2>\n";
   426 fun subsection heading = "\n\n<h3>" ^ plain heading ^ "</h3>\n";
   427 fun subsection heading = "\n\n<h3>" ^ plain heading ^ "</h3>\n";
   427 fun subsubsection heading = "\n\n<h4>" ^ plain heading ^ "</h4>\n";
   428 fun subsubsection heading = "\n\n<h4>" ^ plain heading ^ "</h4>\n";
   428 
   429 
   429 
   430 
   430 (** theory setup **)
       
   431 
       
   432 val setup =
       
   433  [Theory.add_mode_tokentrfuns htmlN html_trans];
       
   434 
       
   435 
       
   436 end;
   431 end;