src/Doc/antiquote_setup.ML
author blanchet
Mon, 31 Jan 2022 16:09:23 +0100
changeset 75020 b087610592b4
parent 73780 466fae6bf22e
permissions -rw-r--r--
rationalized output for forthcoming slicing model
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
48985
5386df44a037 renamed doc-src to src/Doc;
wenzelm
parents: 48899
diff changeset
     1
(*  Title:      Doc/antiquote_setup.ML
21375
ae8a112b62d7 Auxiliary antiquotations for Isabelle manuals.
wenzelm
parents:
diff changeset
     2
    Author:     Makarius
ae8a112b62d7 Auxiliary antiquotations for Isabelle manuals.
wenzelm
parents:
diff changeset
     3
26742
5a86bc79431c misc cleanup;
wenzelm
parents: 26710
diff changeset
     4
Auxiliary antiquotations for the Isabelle manuals.
21375
ae8a112b62d7 Auxiliary antiquotations for Isabelle manuals.
wenzelm
parents:
diff changeset
     5
*)
ae8a112b62d7 Auxiliary antiquotations for Isabelle manuals.
wenzelm
parents:
diff changeset
     6
56059
2390391584c2 some document antiquotations for Isabelle/jEdit elements;
wenzelm
parents: 55997
diff changeset
     7
structure Antiquote_Setup: sig end =
26742
5a86bc79431c misc cleanup;
wenzelm
parents: 26710
diff changeset
     8
struct
21375
ae8a112b62d7 Auxiliary antiquotations for Isabelle manuals.
wenzelm
parents:
diff changeset
     9
26742
5a86bc79431c misc cleanup;
wenzelm
parents: 26710
diff changeset
    10
(* misc utils *)
5a86bc79431c misc cleanup;
wenzelm
parents: 26710
diff changeset
    11
29736
ec3fc818b82e clean_string/clean_name: proper treatment of \<dash>;
wenzelm
parents: 29726
diff changeset
    12
fun translate f = Symbol.explode #> map f #> implode;
ec3fc818b82e clean_string/clean_name: proper treatment of \<dash>;
wenzelm
parents: 29726
diff changeset
    13
ec3fc818b82e clean_string/clean_name: proper treatment of \<dash>;
wenzelm
parents: 29726
diff changeset
    14
val clean_string = translate
26853
52cb0e965041 clean_string: map "_" to "\\_" (best used with underscore.sty);
wenzelm
parents: 26843
diff changeset
    15
  (fn "_" => "\\_"
30120
aaa4667285c8 uniform treatment of ML indexing, using general \indexdef macro for formal Isabelle/Isar entities;
wenzelm
parents: 29736
diff changeset
    16
    | "#" => "\\#"
52408
fa2dc6c6c94f updated operations on proof terms;
wenzelm
parents: 50239
diff changeset
    17
    | "$" => "\\$"
fa2dc6c6c94f updated operations on proof terms;
wenzelm
parents: 50239
diff changeset
    18
    | "%" => "\\%"
26897
044619358d3a clean_string: cover <;
wenzelm
parents: 26894
diff changeset
    19
    | "<" => "$<$"
26768
844068d16ba0 clean_string: handle { };
wenzelm
parents: 26756
diff changeset
    20
    | ">" => "$>$"
844068d16ba0 clean_string: handle { };
wenzelm
parents: 26756
diff changeset
    21
    | "{" => "\\{"
30120
aaa4667285c8 uniform treatment of ML indexing, using general \indexdef macro for formal Isabelle/Isar entities;
wenzelm
parents: 29736
diff changeset
    22
    | "|" => "$\\mid$"
26768
844068d16ba0 clean_string: handle { };
wenzelm
parents: 26756
diff changeset
    23
    | "}" => "\\}"
42666
fee67c099d03 use existing \<hyphen>;
wenzelm
parents: 42361
diff changeset
    24
    | "\<hyphen>" => "-"
26768
844068d16ba0 clean_string: handle { };
wenzelm
parents: 26756
diff changeset
    25
    | c => c);
26751
2b97ea3130c2 added setup for Isar entities;
wenzelm
parents: 26742
diff changeset
    26
31546
d58d6acab331 eliminated escaped symbols;
wenzelm
parents: 31297
diff changeset
    27
fun clean_name "\<dots>" = "dots"
26897
044619358d3a clean_string: cover <;
wenzelm
parents: 26894
diff changeset
    28
  | clean_name ".." = "ddot"
044619358d3a clean_string: cover <;
wenzelm
parents: 26894
diff changeset
    29
  | clean_name "." = "dot"
26910
aa6357b39212 tuned clean_name (underscore);
wenzelm
parents: 26903
diff changeset
    30
  | clean_name "_" = "underscore"
26897
044619358d3a clean_string: cover <;
wenzelm
parents: 26894
diff changeset
    31
  | clean_name "{" = "braceleft"
044619358d3a clean_string: cover <;
wenzelm
parents: 26894
diff changeset
    32
  | clean_name "}" = "braceright"
42666
fee67c099d03 use existing \<hyphen>;
wenzelm
parents: 42361
diff changeset
    33
  | clean_name s = s |> translate (fn "_" => "-" | "\<hyphen>" => "-" | c => c);
26897
044619358d3a clean_string: cover <;
wenzelm
parents: 26894
diff changeset
    34
26742
5a86bc79431c misc cleanup;
wenzelm
parents: 26710
diff changeset
    35
30394
c11a1e65a2ed moved @{ML_functor} and @{ML_text} to Pure;
wenzelm
parents: 30382
diff changeset
    36
(* named theorems *)
23846
bfedd1a024fc Added named_thms antiquotation.
berghofe
parents: 23651
diff changeset
    37
56059
2390391584c2 some document antiquotations for Isabelle/jEdit elements;
wenzelm
parents: 55997
diff changeset
    38
val _ =
73761
ef1a18e20ace clarified modules;
wenzelm
parents: 73760
diff changeset
    39
  Theory.setup (Document_Output.antiquotation_raw \<^binding>\<open>named_thms\<close>
43564
9864182c6bad document antiquotations are managed as theory data, with proper name space and entity markup;
wenzelm
parents: 43563
diff changeset
    40
    (Scan.repeat (Attrib.thm -- Scan.lift (Args.parens Args.name)))
67463
a5ca98950a91 clarified access to antiquotation options;
wenzelm
parents: 67386
diff changeset
    41
    (fn ctxt =>
a5ca98950a91 clarified access to antiquotation options;
wenzelm
parents: 67386
diff changeset
    42
      map (fn (thm, name) =>
a5ca98950a91 clarified access to antiquotation options;
wenzelm
parents: 67386
diff changeset
    43
        Output.output
a5ca98950a91 clarified access to antiquotation options;
wenzelm
parents: 67386
diff changeset
    44
          (Document_Antiquotation.format ctxt
73761
ef1a18e20ace clarified modules;
wenzelm
parents: 73760
diff changeset
    45
            (Document_Antiquotation.delimit ctxt (Document_Output.pretty_thm ctxt thm))) ^
67468
aa8c25c528c0 tuned output of plain name;
wenzelm
parents: 67463
diff changeset
    46
        enclose "\\rulename{" "}" (Output.output name))
67463
a5ca98950a91 clarified access to antiquotation options;
wenzelm
parents: 67386
diff changeset
    47
      #> space_implode "\\par\\smallskip%\n"
73780
466fae6bf22e compose Latex text as XML, output exported YXML in Isabelle/Scala;
wenzelm
parents: 73765
diff changeset
    48
      #> Latex.string
73761
ef1a18e20ace clarified modules;
wenzelm
parents: 73760
diff changeset
    49
      #> Document_Output.isabelle ctxt));
26742
5a86bc79431c misc cleanup;
wenzelm
parents: 26710
diff changeset
    50
5a86bc79431c misc cleanup;
wenzelm
parents: 26710
diff changeset
    51
30394
c11a1e65a2ed moved @{ML_functor} and @{ML_text} to Pure;
wenzelm
parents: 30382
diff changeset
    52
(* Isabelle/Isar entities (with index) *)
26751
2b97ea3130c2 added setup for Isar entities;
wenzelm
parents: 26742
diff changeset
    53
2b97ea3130c2 added setup for Isar entities;
wenzelm
parents: 26742
diff changeset
    54
local
2b97ea3130c2 added setup for Isar entities;
wenzelm
parents: 26742
diff changeset
    55
61620
01db1bed4487 tuned signature;
wenzelm
parents: 61618
diff changeset
    56
fun no_check (_: Proof.context) (name, _: Position.T) = name;
26894
1120f6cc10b0 proper checking of various Isar elements;
wenzelm
parents: 26853
diff changeset
    57
61620
01db1bed4487 tuned signature;
wenzelm
parents: 61618
diff changeset
    58
fun check_keyword ctxt (name, pos) =
01db1bed4487 tuned signature;
wenzelm
parents: 61618
diff changeset
    59
  if Keyword.is_keyword (Thy_Header.get_keywords' ctxt) name then name
01db1bed4487 tuned signature;
wenzelm
parents: 61618
diff changeset
    60
  else error ("Bad outer syntax keyword " ^ quote name ^ Position.here pos);
53061
417cb0f713e0 more markup;
wenzelm
parents: 53045
diff changeset
    61
71913
8357ee06ade1 adapted to d25093536482;
wenzelm
parents: 70121
diff changeset
    62
fun check_system_option ctxt arg =
8357ee06ade1 adapted to d25093536482;
wenzelm
parents: 70121
diff changeset
    63
  (Completion.check_option (Options.default ()) ctxt arg; true)
56467
8d7d6f17c6a7 more uniform ML/document antiquotations;
wenzelm
parents: 56304
diff changeset
    64
    handle ERROR _ => false;
8d7d6f17c6a7 more uniform ML/document antiquotations;
wenzelm
parents: 56304
diff changeset
    65
26751
2b97ea3130c2 added setup for Isar entities;
wenzelm
parents: 26742
diff changeset
    66
val arg = enclose "{" "}" o clean_string;
2b97ea3130c2 added setup for Isar entities;
wenzelm
parents: 26742
diff changeset
    67
56185
851c7b05eb92 more antiquotations;
wenzelm
parents: 56135
diff changeset
    68
fun entity check markup binding index =
73761
ef1a18e20ace clarified modules;
wenzelm
parents: 73760
diff changeset
    69
  Document_Output.antiquotation_raw
56185
851c7b05eb92 more antiquotations;
wenzelm
parents: 56135
diff changeset
    70
    (binding |> Binding.map_name (fn name => name ^
43564
9864182c6bad document antiquotations are managed as theory data, with proper name space and entity markup;
wenzelm
parents: 43563
diff changeset
    71
      (case index of NONE => "" | SOME true => "_def" | SOME false => "_ref")))
69349
7cef9e386ffe more accurate positions for "name" (quoted string) and "embedded" (cartouche): refer to content without delimiters, which is e.g. relevant for systematic selection/renaming of scope groups;
wenzelm
parents: 68823
diff changeset
    72
    (Scan.lift (Scan.optional (Args.parens Args.name) "" -- Args.name_position))
67463
a5ca98950a91 clarified access to antiquotation options;
wenzelm
parents: 67386
diff changeset
    73
    (fn ctxt => fn (logic, (name, pos)) =>
30394
c11a1e65a2ed moved @{ML_functor} and @{ML_text} to Pure;
wenzelm
parents: 30382
diff changeset
    74
      let
56185
851c7b05eb92 more antiquotations;
wenzelm
parents: 56135
diff changeset
    75
        val kind = translate (fn "_" => " " | c => c) (Binding.name_of binding);
30394
c11a1e65a2ed moved @{ML_functor} and @{ML_text} to Pure;
wenzelm
parents: 30382
diff changeset
    76
        val hyper_name =
c11a1e65a2ed moved @{ML_functor} and @{ML_text} to Pure;
wenzelm
parents: 30382
diff changeset
    77
          "{" ^ Long_Name.append kind (Long_Name.append logic (clean_name name)) ^ "}";
c11a1e65a2ed moved @{ML_functor} and @{ML_text} to Pure;
wenzelm
parents: 30382
diff changeset
    78
        val hyper =
c11a1e65a2ed moved @{ML_functor} and @{ML_text} to Pure;
wenzelm
parents: 30382
diff changeset
    79
          enclose ("\\hyperlink" ^ hyper_name ^ "{") "}" #>
c11a1e65a2ed moved @{ML_functor} and @{ML_text} to Pure;
wenzelm
parents: 30382
diff changeset
    80
          index = SOME true ? enclose ("\\hypertarget" ^ hyper_name ^ "{") "}";
c11a1e65a2ed moved @{ML_functor} and @{ML_text} to Pure;
wenzelm
parents: 30382
diff changeset
    81
        val idx =
c11a1e65a2ed moved @{ML_functor} and @{ML_text} to Pure;
wenzelm
parents: 30382
diff changeset
    82
          (case index of
c11a1e65a2ed moved @{ML_functor} and @{ML_text} to Pure;
wenzelm
parents: 30382
diff changeset
    83
            NONE => ""
c11a1e65a2ed moved @{ML_functor} and @{ML_text} to Pure;
wenzelm
parents: 30382
diff changeset
    84
          | SOME is_def =>
c11a1e65a2ed moved @{ML_functor} and @{ML_text} to Pure;
wenzelm
parents: 30382
diff changeset
    85
              "\\index" ^ (if is_def then "def" else "ref") ^ arg logic ^ arg kind ^ arg name);
66682
c4cbe609f6a8 avoid duplicate message for @{action} in particular (see also @{action} within Pure);
wenzelm
parents: 62829
diff changeset
    86
        val _ =
c4cbe609f6a8 avoid duplicate message for @{action} in particular (see also @{action} within Pure);
wenzelm
parents: 62829
diff changeset
    87
          if Context_Position.is_reported ctxt pos then ignore (check ctxt (name, pos)) else ();
67463
a5ca98950a91 clarified access to antiquotation options;
wenzelm
parents: 67386
diff changeset
    88
        val latex =
a5ca98950a91 clarified access to antiquotation options;
wenzelm
parents: 67386
diff changeset
    89
          idx ^
a5ca98950a91 clarified access to antiquotation options;
wenzelm
parents: 67386
diff changeset
    90
          (Output.output name
a5ca98950a91 clarified access to antiquotation options;
wenzelm
parents: 67386
diff changeset
    91
            |> (if markup = "" then I else enclose ("\\" ^ markup ^ "{") "}")
a5ca98950a91 clarified access to antiquotation options;
wenzelm
parents: 67386
diff changeset
    92
            |> hyper o enclose "\\mbox{\\isa{" "}}");
a5ca98950a91 clarified access to antiquotation options;
wenzelm
parents: 67386
diff changeset
    93
      in Latex.string latex end);
26897
044619358d3a clean_string: cover <;
wenzelm
parents: 26894
diff changeset
    94
26894
1120f6cc10b0 proper checking of various Isar elements;
wenzelm
parents: 26853
diff changeset
    95
fun entity_antiqs check markup kind =
43564
9864182c6bad document antiquotations are managed as theory data, with proper name space and entity markup;
wenzelm
parents: 43563
diff changeset
    96
  entity check markup kind NONE #>
9864182c6bad document antiquotations are managed as theory data, with proper name space and entity markup;
wenzelm
parents: 43563
diff changeset
    97
  entity check markup kind (SOME true) #>
9864182c6bad document antiquotations are managed as theory data, with proper name space and entity markup;
wenzelm
parents: 43563
diff changeset
    98
  entity check markup kind (SOME false);
26751
2b97ea3130c2 added setup for Isar entities;
wenzelm
parents: 26742
diff changeset
    99
2b97ea3130c2 added setup for Isar entities;
wenzelm
parents: 26742
diff changeset
   100
in
2b97ea3130c2 added setup for Isar entities;
wenzelm
parents: 26742
diff changeset
   101
56059
2390391584c2 some document antiquotations for Isabelle/jEdit elements;
wenzelm
parents: 55997
diff changeset
   102
val _ =
2390391584c2 some document antiquotations for Isabelle/jEdit elements;
wenzelm
parents: 55997
diff changeset
   103
  Theory.setup
69593
3dda49e08b9d isabelle update -u control_cartouches;
wenzelm
parents: 69349
diff changeset
   104
   (entity_antiqs no_check "" \<^binding>\<open>syntax\<close> #>
3dda49e08b9d isabelle update -u control_cartouches;
wenzelm
parents: 69349
diff changeset
   105
    entity_antiqs Outer_Syntax.check_command "isacommand" \<^binding>\<open>command\<close> #>
3dda49e08b9d isabelle update -u control_cartouches;
wenzelm
parents: 69349
diff changeset
   106
    entity_antiqs check_keyword "isakeyword" \<^binding>\<open>keyword\<close> #>
3dda49e08b9d isabelle update -u control_cartouches;
wenzelm
parents: 69349
diff changeset
   107
    entity_antiqs check_keyword "isakeyword" \<^binding>\<open>element\<close> #>
3dda49e08b9d isabelle update -u control_cartouches;
wenzelm
parents: 69349
diff changeset
   108
    entity_antiqs Method.check_name "" \<^binding>\<open>method\<close> #>
3dda49e08b9d isabelle update -u control_cartouches;
wenzelm
parents: 69349
diff changeset
   109
    entity_antiqs Attrib.check_name "" \<^binding>\<open>attribute\<close> #>
3dda49e08b9d isabelle update -u control_cartouches;
wenzelm
parents: 69349
diff changeset
   110
    entity_antiqs no_check "" \<^binding>\<open>fact\<close> #>
3dda49e08b9d isabelle update -u control_cartouches;
wenzelm
parents: 69349
diff changeset
   111
    entity_antiqs no_check "" \<^binding>\<open>variable\<close> #>
3dda49e08b9d isabelle update -u control_cartouches;
wenzelm
parents: 69349
diff changeset
   112
    entity_antiqs no_check "" \<^binding>\<open>case\<close> #>
3dda49e08b9d isabelle update -u control_cartouches;
wenzelm
parents: 69349
diff changeset
   113
    entity_antiqs Document_Antiquotation.check "" \<^binding>\<open>antiquotation\<close> #>
3dda49e08b9d isabelle update -u control_cartouches;
wenzelm
parents: 69349
diff changeset
   114
    entity_antiqs Document_Antiquotation.check_option "" \<^binding>\<open>antiquotation_option\<close> #>
69962
82e945d472d5 documentation of document markers and re-interpreted command tags;
wenzelm
parents: 69593
diff changeset
   115
    entity_antiqs Document_Marker.check "" \<^binding>\<open>document_marker\<close> #>
69593
3dda49e08b9d isabelle update -u control_cartouches;
wenzelm
parents: 69349
diff changeset
   116
    entity_antiqs no_check "isasystem" \<^binding>\<open>setting\<close> #>
3dda49e08b9d isabelle update -u control_cartouches;
wenzelm
parents: 69349
diff changeset
   117
    entity_antiqs check_system_option "isasystem" \<^binding>\<open>system_option\<close> #>
3dda49e08b9d isabelle update -u control_cartouches;
wenzelm
parents: 69349
diff changeset
   118
    entity_antiqs no_check "" \<^binding>\<open>inference\<close> #>
3dda49e08b9d isabelle update -u control_cartouches;
wenzelm
parents: 69349
diff changeset
   119
    entity_antiqs no_check "isasystem" \<^binding>\<open>executable\<close> #>
72763
3cc73d00553c added document antiquotation @{tool};
wenzelm
parents: 71913
diff changeset
   120
    entity_antiqs Isabelle_Tool.check "isatool" \<^binding>\<open>tool\<close> #>
69593
3dda49e08b9d isabelle update -u control_cartouches;
wenzelm
parents: 69349
diff changeset
   121
    entity_antiqs ML_Context.check_antiquotation "" \<^binding>\<open>ML_antiquotation\<close> #>
3dda49e08b9d isabelle update -u control_cartouches;
wenzelm
parents: 69349
diff changeset
   122
    entity_antiqs (K JEdit.check_action) "isasystem" \<^binding>\<open>action\<close>);
26751
2b97ea3130c2 added setup for Isar entities;
wenzelm
parents: 26742
diff changeset
   123
26742
5a86bc79431c misc cleanup;
wenzelm
parents: 26710
diff changeset
   124
end;
26751
2b97ea3130c2 added setup for Isar entities;
wenzelm
parents: 26742
diff changeset
   125
73734
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   126
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   127
(* show symbols *)
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   128
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   129
val _ =
73761
ef1a18e20ace clarified modules;
wenzelm
parents: 73760
diff changeset
   130
  Theory.setup (Document_Output.antiquotation_raw \<^binding>\<open>show_symbols\<close> (Scan.succeed ())
73734
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   131
    (fn _ => fn _ =>
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   132
      let
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   133
        val symbol_name =
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   134
          unprefix "\\newcommand{\\isasym"
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   135
          #> raw_explode
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   136
          #> take_prefix Symbol.is_ascii_letter
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   137
          #> implode;
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   138
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   139
        val symbols =
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   140
          File.read \<^file>\<open>~~/lib/texinputs/isabellesym.sty\<close>
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   141
          |> split_lines
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   142
          |> map_filter (fn line =>
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   143
            (case try symbol_name line of
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   144
              NONE => NONE
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   145
            | SOME "" => NONE
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   146
            | SOME name => SOME ("\\verb,\\" ^ "<" ^ name ^ ">, & {\\isasym" ^ name ^ "}")));
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   147
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   148
        val eol = "\\\\\n";
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   149
        fun table (a :: b :: rest) = a ^ " & " ^ b ^ eol :: table rest
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   150
          | table [a] = [a ^ eol]
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   151
          | table [] = [];
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   152
      in
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   153
        Latex.string
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   154
          ("\\begin{supertabular}{ll@{\\qquad}ll}\n" ^ implode (table symbols) ^
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   155
           "\\end{supertabular}\n")
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   156
      end))
f7f0d516df0c show symbols in Isabelle/ML instead of perl;
wenzelm
parents: 72763
diff changeset
   157
26751
2b97ea3130c2 added setup for Isar entities;
wenzelm
parents: 26742
diff changeset
   158
end;