src/Tools/8bit/man/man1/isa2latex.1
author wenzelm
Thu, 07 Sep 2000 20:57:57 +0200
changeset 9902 1ea354905d88
parent 1826 2a2c0dbeb4ac
permissions -rw-r--r--
improved att names / msgs;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1826
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
     1
.\" @(#)isa2latex
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
     2
.TH ISA2LATEX 1 "12 Mar 1995" ""
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
     3
.SH NAME
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
     4
\fBisa2latex\fP \- converts files containing Isabelle source to LaTeX format
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
     5
.IX isa2latex#(1) "" "\fLisa2latex\fP(1)"
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
     6
.SH SYNOPSIS
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
     7
.B isa2latex
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
     8
[\fIoptions\fP]
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
     9
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    10
.SH DESCRIPTION
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    11
.B isa2latex
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    12
converts a file written using the Isabelle font (with graphical 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    13
characters, or pure ASCII) to a source file for LaTeX (alternatviely to 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    14
an ASCII representation).
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    15
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    16
In contrast to its predecessor 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    17
.B spec2latex,
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    18
the converter
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    19
.B isa2latex
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    20
is capable of converting multi character input sequences. Therefore,
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    21
.B isa2latex 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    22
can also  be used as a LaTeX pretty printer for Isabelle theories 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    23
and proofs. Common tasks are the conversion of multi character
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    24
sequences like !! and ==> to corresponding LaTeX code 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    25
\\bigwedge
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    26
and
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    27
\\Longrightarrow
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    28
respectively.
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    29
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    30
The converter has several conversion modes 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    31
(\fIISA\fP, \fIINLINE\fP, \fILATEX\fP, and \fIESC\fP) that depend 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    32
on the options given and 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    33
on special mode switches (\\I@isa, \\I@ and \\E@)
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    34
inside the converted files. 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    35
For a full description, see the manual of the 8bit package.
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    36
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    37
There is a \fIperl\fP script 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    38
.B gen-isa2latex
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    39
that allows the extension or redefinition of the standard converter 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    40
.B isa2latex. 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    41
The script automatically generates the converter
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    42
from a configuration file that is provided by the user. 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    43
See the manpage about
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    44
.B gen-isa2latex
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    45
for more details. 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    46
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    47
.B isa2latex 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    48
normally reads its input from stdin and writes its output
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    49
to stdout. The default conversion mode is the same as if option 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    50
.B \-i
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    51
(described below) was given.
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    52
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    53
\fIoptions\fP consists of one or a sequence of the following options:
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    54
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    55
.SH OPTIONS
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    56
.TP 5
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    57
.B "file" "\t"
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    58
read input from
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    59
.I file
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    60
instead of stdin
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    61
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    62
.TP 5
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    63
.B \-a "\t"
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    64
generate ASCII representation instead of LaTeX source
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    65
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    66
.TP 5
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    67
.B \-A "\t"
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    68
accept additionally ASCII representations of graphical characters as input
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    69
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    70
This option is used to pretty print files containing ASCII representations of
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    71
special symbols that could also have been represented using the graphical
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    72
Isabelle font. This conversion is somewhat unsafe because of ambiguities.
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    73
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    74
.TP 5
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    75
.B \-b "\t"
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    76
generate bigger TABs in the LaTeX source
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    77
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    78
.TP 5
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    79
.B \-e "\t"
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    80
generate LaTeX2e output (if option 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    81
.B \-s
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    82
given)
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    83
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    84
.TP 5
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    85
.B \-f " fontstring"
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    86
use the LaTeX font specified in
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    87
.I fontstring
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    88
instead of
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    89
the default font 'cmr'.
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    90
.I fontstring
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    91
uses directly LaTeX syntax,
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    92
i.e. \\sf for sans serif. In order to prevent the shell from
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    93
interpreting the '\\' the fontstring should be quoted. 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    94
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    95
\fIexample:\fP isa2latex \-f '\\sf' HOL.thy > HOL.tex 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    96
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    97
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    98
.TP 5
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
    99
.B \-i "\t"
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   100
generate a LaTeX representation of the input, for inclusion into other LaTeX 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   101
documents
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   102
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   103
The containing LaTeX document should use the style \fIisa2latex.sty\fP.
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   104
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   105
The initial conversion mode is \fIISA\fP, and escaping to \fIESC\fP mode
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   106
is possible with the \\E@ switch.
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   107
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   108
This is the default option, and is mutually exclusive with the
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   109
.B \-s
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   110
and 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   111
.B \-x
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   112
options.
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   113
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   114
\fIexample:\fP isa2latex HOL.thy > HOL.tex 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   115
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   116
.TP 5
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   117
.B \-h "\t"
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   118
print a help message
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   119
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   120
.TP 5
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   121
.B \-o " file"
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   122
write output to
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   123
.I file
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   124
instead of stdout
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   125
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   126
Note: I/O redirection and "piping" are, of course, also possible.
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   127
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   128
.TP 5
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   129
.B \-s "\t"
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   130
like option 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   131
.B \-i,
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   132
but generate a standalone LaTeX document including a complete
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   133
document header etc.
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   134
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   135
This is useful for pretty printing an Isabelle theory or proof file. 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   136
The document header includes
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   137
also the LaTeX style file \fIisa2latex.sty\fP which should be somewhere
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   138
in your LaTeX include path.
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   139
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   140
\fIexample:\fP isa2latex \-s HOL.thy -o HOL.tex 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   141
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   142
.TP 5
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   143
.B \-t " n"
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   144
set tabstops every
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   145
.B n 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   146
characters
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   147
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   148
Default value is 8. 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   149
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   150
.TP 5
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   151
.B \-v "\t"
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   152
show version number of the converter program on stderr
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   153
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   154
.TP 5
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   155
.B \-x "\t"
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   156
generate a pure LaTeX file from LaTeX source with interspersed Isabelle code
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   157
(i.e. support of some primitive form of literate programming)
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   158
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   159
This option, which excludes the options
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   160
.B \-i
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   161
and
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   162
.B \-s,
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   163
is useful for documenting Isabelle theories and proofs.
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   164
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   165
In the document source, the style \fIisa2latex.sty\fP should be included.
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   166
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   167
The initial conversion mode is \fILATEX\fP. You may switch to \fIISA\fP mode
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   168
using \\I@isa and to \fIINLINE\fP mode using \\I@. From both these
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   169
modes, escaping to \fIESC\fP mode is possible with the \\E@ switch.
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   170
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   171
\fIexample:\fP isa2latex \-x HOL.itex -o HOL.tex 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   172
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   173
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   174
.SH WARNINGS
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   175
If a mode switch is given that is not suitable in the current mode,
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   176
a warning message like 
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   177
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   178
 "WARNING: line 15: '\\I@isa' inside ESC mode"
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   179
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   180
is written to stderr.
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   181
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   182
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   183
.SH FILES
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   184
 bin/isa2latex           (executable)
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   185
 latex/isa2latex.sty     (LaTeX style file)
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   186
 config/conv-tables.inp  (specification of the conversion table)
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   187
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   188
.SH RELATED COMMANDS
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   189
 gen-isa2latex gen-isadoc
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   190
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   191
.SH AUTHORS
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   192
 spec2latex: Franz Huber, David von Oheimb, Bernhard Rumpe
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   193
 isa2latex, extensions: Franz Regensburger, David von Oheimb
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   194
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   195
.SH BUGS
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   196
 None known
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   197
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   198
2a2c0dbeb4ac Initial revision
oheimb
parents:
diff changeset
   199