src/Tools/Code/code_target.ML
changeset 67463 a5ca98950a91
parent 67386 998e01d6f8fd
child 69484 ed6b100a9c7d
--- a/src/Tools/Code/code_target.ML	Thu Jan 18 21:29:28 2018 +0100
+++ b/src/Tools/Code/code_target.ML	Thu Jan 18 21:41:30 2018 +0100
@@ -510,14 +510,15 @@
 in
 
 val _ = Theory.setup
-  (Document_Antiquotation.setup @{binding code_stmts}
+  (Thy_Output.antiquotation_raw @{binding code_stmts}
     (parse_const_terms --
       Scan.repeat (parse_consts || parse_types || parse_classes || parse_instances)
       -- Scan.lift (Args.parens (Args.name -- Scan.option Parse.int)))
-    (fn {context = ctxt, ...} => fn ((mk_cs, mk_stmtss), (target_name, some_width)) =>
-        present_code ctxt (mk_cs ctxt)
+    (fn ctxt => fn ((mk_cs, mk_stmtss), (target_name, some_width)) =>
+      Latex.string
+        (present_code ctxt (mk_cs ctxt)
           (maps (fn f => f ctxt) mk_stmtss)
-          target_name some_width "Example" []));
+          target_name some_width "Example" [])));
 
 end;