src/Pure/Thy/thy_output.ML
changeset 69891 def3ec9cdb7e
parent 69887 b9985133805d
child 69892 f752f3993db8
equal deleted inserted replaced
69890:cb643a1a5313 69891:def3ec9cdb7e
    59       |> Latex.enclose_body "%\n\\isamarkupcmt{" "%\n}"
    59       |> Latex.enclose_body "%\n\\isamarkupcmt{" "%\n}"
    60   | Comment.Cancel =>
    60   | Comment.Cancel =>
    61       Symbol_Pos.cartouche_content syms
    61       Symbol_Pos.cartouche_content syms
    62       |> output_symbols
    62       |> output_symbols
    63       |> Latex.enclose_body "%\n\\isamarkupcancel{" "}"
    63       |> Latex.enclose_body "%\n\\isamarkupcancel{" "}"
    64   | Comment.Latex =>
    64   | Comment.Latex => [Latex.symbols (Symbol_Pos.cartouche_content syms)]
    65       [Latex.symbols (Symbol_Pos.cartouche_content syms)])
    65   | Comment.Marker => [])
    66 and output_comment_document ctxt (comment, syms) =
    66 and output_comment_document ctxt (comment, syms) =
    67   (case comment of
    67   (case comment of
    68     SOME kind => output_comment ctxt (kind, syms)
    68     SOME kind => output_comment ctxt (kind, syms)
    69   | NONE => [Latex.symbols syms])
    69   | NONE => [Latex.symbols syms])
    70 and output_document_text ctxt syms =
    70 and output_document_text ctxt syms =
   137     fun output antiq bg en =
   137     fun output antiq bg en =
   138       output_body ctxt antiq bg en (Input.source_explode (Token.input_of tok));
   138       output_body ctxt antiq bg en (Input.source_explode (Token.input_of tok));
   139   in
   139   in
   140     (case Token.kind_of tok of
   140     (case Token.kind_of tok of
   141       Token.Comment NONE => []
   141       Token.Comment NONE => []
       
   142     | Token.Comment (SOME Comment.Marker) => []
   142     | Token.Command => output false "\\isacommand{" "}"
   143     | Token.Command => output false "\\isacommand{" "}"
   143     | Token.Keyword =>
   144     | Token.Keyword =>
   144         if Symbol.is_ascii_identifier (Token.content_of tok)
   145         if Symbol.is_ascii_identifier (Token.content_of tok)
   145         then output false "\\isakeyword{" "}"
   146         then output false "\\isakeyword{" "}"
   146         else output false "" ""
   147         else output false "" ""