src/Pure/Thy/latex.ML
changeset 46811 03a2dc9e0624
parent 45666 d83797ef0d2d
child 48628 4dd1d4585902
equal deleted inserted replaced
46810:a910e12fca85 46811:03a2dc9e0624
   128 val invisible_token = Token.keyword_with (fn s => s = ";") orf Token.is_kind Token.Comment;
   128 val invisible_token = Token.keyword_with (fn s => s = ";") orf Token.is_kind Token.Comment;
   129 
   129 
   130 fun output_basic tok =
   130 fun output_basic tok =
   131   let val s = Token.content_of tok in
   131   let val s = Token.content_of tok in
   132     if invisible_token tok then ""
   132     if invisible_token tok then ""
   133     else if Token.is_kind Token.Command tok then
   133     else if Token.is_command tok then
   134       "\\isacommand{" ^ output_syms s ^ "}"
   134       "\\isacommand{" ^ output_syms s ^ "}"
   135     else if Token.is_kind Token.Keyword tok andalso Lexicon.is_ascii_identifier s then
   135     else if Token.is_kind Token.Keyword tok andalso Lexicon.is_ascii_identifier s then
   136       "\\isakeyword{" ^ output_syms s ^ "}"
   136       "\\isakeyword{" ^ output_syms s ^ "}"
   137     else if Token.is_kind Token.String tok then
   137     else if Token.is_kind Token.String tok then
   138       output_syms s |> enclose
   138       output_syms s |> enclose