src/Pure/pure_syn.ML
changeset 61036 f6f2959bed67
parent 60189 0d3a62127057
child 61457 3e21699bb83b
equal deleted inserted replaced
61035:5fa9962e6c38 61036:f6f2959bed67
    41   Outer_Syntax.command ("txt", @{here}) "formal comment (secondary style)"
    41   Outer_Syntax.command ("txt", @{here}) "formal comment (secondary style)"
    42     (Parse.opt_target -- Parse.document_source >> Thy_Output.document_command);
    42     (Parse.opt_target -- Parse.document_source >> Thy_Output.document_command);
    43 
    43 
    44 val _ =
    44 val _ =
    45   Outer_Syntax.command ("text_raw", @{here}) "raw LaTeX text"
    45   Outer_Syntax.command ("text_raw", @{here}) "raw LaTeX text"
    46     (Parse.document_source >> K (Toplevel.keep (fn _ => ())));
    46     (Parse.document_source >> (fn s => Toplevel.keep (fn _ => Thy_Output.report_text s)));
    47 
    47 
    48 val _ =
    48 val _ =
    49   Outer_Syntax.command ("theory", @{here}) "begin theory"
    49   Outer_Syntax.command ("theory", @{here}) "begin theory"
    50     (Thy_Header.args >>
    50     (Thy_Header.args >>
    51       (fn _ => Toplevel.init_theory (fn () => error "Missing theory initialization")));
    51       (fn _ => Toplevel.init_theory (fn () => error "Missing theory initialization")));