src/Pure/Thy/latex.ML
changeset 8192 45a7027136e3
parent 8117 0a6173c9b2d0
child 8460 274426d1adbc
--- a/src/Pure/Thy/latex.ML	Fri Feb 04 21:44:04 2000 +0100
+++ b/src/Pure/Thy/latex.ML	Fri Feb 04 21:44:38 2000 +0100
@@ -8,6 +8,7 @@
 signature LATEX =
 sig
   datatype token = Basic of OuterLex.token | Markup of string * string | Verbatim of string
+  val old_symbol_source: Symbol.symbol list -> string
   val token_source: token list -> string
   val theory_entry: string -> string
 end;
@@ -46,7 +47,8 @@
 
 in
 
-val output_syms = implode o map output_sym o Symbol.explode;
+val output_symbols = implode o map output_sym;
+val output_syms = output_symbols o Symbol.explode;
 
 end;
 
@@ -86,8 +88,10 @@
 
 (* theory presentation *)
 
-fun token_source toks =
-  "\\begin{isabellesimple}%\n" ^ output_tokens toks ^ "\\end{isabellesimple}\n";
+val isabelle_simple = enclose "\\begin{isabellesimple}%\n" "\\end{isabellesimple}%\n";
+
+val old_symbol_source = isabelle_simple o output_symbols;
+val token_source = isabelle_simple o output_tokens;
 
 fun theory_entry name = "\\input{" ^ name ^ ".tex}\n";