src/Pure/Thy/document_antiquotation.ML
changeset 68223 88dd06301dd3
parent 67571 f858fe5531ac
child 69349 7cef9e386ffe
equal deleted inserted replaced
68222:3c1a716e7f59 68223:88dd06301dd3
   157       Name_Space.check (Context.Proof ctxt) (#2 (get_antiquotations ctxt)) (xname, pos);
   157       Name_Space.check (Context.Proof ctxt) (#2 (get_antiquotations ctxt)) (xname, pos);
   158   in opt s ctxt end;
   158   in opt s ctxt end;
   159 
   159 
   160 fun eval ctxt (opts, src) =
   160 fun eval ctxt (opts, src) =
   161   let
   161   let
   162     val preview_ctxt = fold option opts ctxt;
   162     val preview_ctxt = fold option opts (Config.put show_markup false ctxt);
   163     val _ = command src preview_ctxt;
   163     val _ = command src preview_ctxt;
   164 
   164 
   165     val print_ctxt = Context_Position.set_visible false preview_ctxt;
   165     val print_ctxt = Context_Position.set_visible false preview_ctxt;
   166     val print_modes = space_explode "," (Config.get print_ctxt thy_output_modes) @ [Latex.latexN];
   166     val print_modes = space_explode "," (Config.get print_ctxt thy_output_modes) @ [Latex.latexN];
   167   in [Print_Mode.with_modes print_modes (fn () => command src print_ctxt) ()] end;
   167   in [Print_Mode.with_modes print_modes (fn () => command src print_ctxt) ()] end;