equal
deleted
inserted
replaced
637 |
637 |
638 local |
638 local |
639 |
639 |
640 fun ml_text name ml = antiquotation name (Scan.lift Args.name_source_position) |
640 fun ml_text name ml = antiquotation name (Scan.lift Args.name_source_position) |
641 (fn {context, ...} => fn source => |
641 (fn {context, ...} => fn source => |
642 (ML_Context.eval_in (SOME context) {SML = false, verbose = false} (#pos source) (ml source); |
642 (ML_Context.eval_in (SOME context) ML_Compiler.flags (#pos source) (ml source); |
643 Symbol_Pos.source_content source |
643 Symbol_Pos.source_content source |
644 |> #1 |
644 |> #1 |
645 |> (if Config.get context quotes then quote else I) |
645 |> (if Config.get context quotes then quote else I) |
646 |> (if Config.get context display then enclose "\\begin{verbatim}\n" "\n\\end{verbatim}" |
646 |> (if Config.get context display then enclose "\\begin{verbatim}\n" "\n\\end{verbatim}" |
647 else verb_text))); |
647 else verb_text))); |