src/Doc/Isar_Ref/document/showsymbols
author wenzelm
Fri, 12 Aug 2016 15:25:25 +0200
changeset 63676 88727334666e
parent 56451 856492b0f755
child 67146 909dcdec2122
permissions -rwxr-xr-x
more latex symbols, notably for embedded ML;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
28838
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
     1
#!/usr/bin/env perl
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
     2
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
     3
print "\\begin{supertabular}{ll\@{\\qquad}ll}\n";
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
     4
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
     5
$eol = "&";
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
     6
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
     7
while (<ARGV>) {
63676
88727334666e more latex symbols, notably for embedded ML;
wenzelm
parents: 56451
diff changeset
     8
    if (m/^\\newcommand\{\\(isasym|isactrl)([A-Za-z]+)\}/) {
88727334666e more latex symbols, notably for embedded ML;
wenzelm
parents: 56451
diff changeset
     9
        if ($1 eq "isasym") {
88727334666e more latex symbols, notably for embedded ML;
wenzelm
parents: 56451
diff changeset
    10
            print "\\verb,\\<$2>, & {\\isasym$2} $eol\n";
88727334666e more latex symbols, notably for embedded ML;
wenzelm
parents: 56451
diff changeset
    11
        }
88727334666e more latex symbols, notably for embedded ML;
wenzelm
parents: 56451
diff changeset
    12
        else {
88727334666e more latex symbols, notably for embedded ML;
wenzelm
parents: 56451
diff changeset
    13
            print "\\verb,\\<^$2>, & {\\isactrl$2} $eol\n";
88727334666e more latex symbols, notably for embedded ML;
wenzelm
parents: 56451
diff changeset
    14
        }
28838
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
    15
        if ("$eol" eq "&") {
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
    16
            $eol = "\\\\";
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
    17
        } else {
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
    18
            $eol = "&";
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
    19
        }
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
    20
    }
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
    21
}
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
    22
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
    23
if ("$eol" eq "\\\\") {
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
    24
    print "$eol\n";
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
    25
}
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
    26
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
    27
print "\\end{supertabular}\n";
d5db6dfcb34a moved table of standard Isabelle symbols to isar-ref manual;
wenzelm
parents:
diff changeset
    28