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