Debian Codegraph @

man/coq-tex.1

raw
1 .TH COQ\-TEX 1
2 .
3 .SH NAME
4 coq\-tex \- process Coq phrases embedded in LaTeX files
5 .
6 .SH SYNOPSIS
7 .B coq\-tex
8 [
9 .BI \-o \ output-file
10 ]
11 [
12 .BI \-n \ line-width
13 ]
14 [
15 .BI \-image \ coq-image
16 ]
17 [
18 .B \-w
19 ]
20 [
21 .B \-v
22 ]
23 [
24 .B \-sl
25 ]
26 [
27 .B \-hrule
28 ]
29 [
30 .B \-small
31 ]
32 .I input-file .\|.\|.
33 .
34 .
35 .SH DESCRIPTION
36 .
37 The
38 .B coq\-tex
39 filter extracts Coq phrases embedded in LaTeX files, evaluates
40 them, and insert the outcome of the evaluation after each phrase.
41 .PP
42 Three LaTeX environments are provided to include Coq code in
43 the input files:
44 .TP
45 .B coq_example
46 The phrases between \\begin{coq_example} and \\end{coq_example} are
47 evaluated and copied into the output file.
48 Each phrase is followed by the response of the toplevel loop.
49 .TP
50 .B coq_example*
51 The phrases between \\begin{coq_example*} and \\end{coq_example*} are
52 evaluated and copied into the output file.
53 The responses of the toplevel loop are discarded.
54 .TP
55 .B coq_eval
56 The phrases between \\begin{coq_eval} and \\end{coq_eval} are
57 silently evaluated.
58 They are not copied into the output file, and the responses of the
59 toplevel loop are discarded.
60 .PP
61 The resulting LaTeX code is stored in the file
62 .IR file \&.v.tex
63 if the input file has a name of the form
64 .IR file \&.tex,
65 otherwise the name of the output file is the name of the input file
66 with `.v.tex' appended.
67 .PP
68 The files produced by
69 .B coq\-tex
70 can be directly processed by LaTeX.
71 Both the Coq phrases and the toplevel output are typeset in
72 typewriter font.
73 .
74 .SH OPTIONS
75 .
76 .TP
77 .BI \-o \ output-file
78 Specify the name of a file where the LaTeX output is to be stored.
79 A dash `\-' causes the LaTeX output to be printed on standard output.
80 .TP
81 .BI \-n \ line-width
82 Set the line width.
83 The default is 72 characters.
84 The responses of the toplevel loop are folded if they are longer than
85 the line width.
86 No folding is performed on the Coq input text.
87 .TP
88 .BI \-image \ coq-image
89 Cause the file
90 .I coq-image
91 to be executed to evaluate the Coq phrases.
92 By default, this is the command
93 .I coqtop
94 without specifying any path which is used to evaluate the Coq phrases.
95 .TP
96 .B \-w
97 Cause lines to be folded on a space character whenever possible,
98 avoiding word cuts in the output.
99 By default, folding occurs at the line width, regardless of word cuts.
100 .TP
101 .B \-v
102 Verbose mode.
103 Prints the Coq answers on the standard output.
104 Useful to detect errors in Coq phrases.
105 .TP
106 .B \-sl
107 Slanted mode.
108 The Coq answers are written in a slanted font.
109 .TP
110 .B \-hrule
111 Horizontal lines mode.
112 The Coq parts are written between two horizontal lines.
113 .TP
114 .B \-small
115 Small font mode.
116 The Coq parts are written in a smaller font.
117 .
118 .
119 .SH CAVEATS
120 The \\begin.\|.\|. and \\end.\|.\|. phrases must sit on a line by
121 themselves, with no characters before the backslash or after the closing
122 brace.
123 Each Coq phrase must be terminated by `.' at the end of a line.
124 Blank space is accepted between `.' and the newline, but any other
125 character will cause
126 .B coq\-tex
127 to ignore the end of the phrase, resulting in an incorrect shuffling of
128 the responses into the phrases.
129 (The responses ``lag behind''.)
130 .
131 .SH SEE ALSO
132 .
133 .BR coqtop (1)