| 1 |
.TH COQDOC 1 |
| 2 |
. |
| 3 |
.SH NAME |
| 4 |
coqdoc \- documentation tool for the Coq proof assistant |
| 5 |
. |
| 6 |
. |
| 7 |
.SH SYNOPSIS |
| 8 |
.B coqdoc |
| 9 |
[ |
| 10 |
options |
| 11 |
] |
| 12 |
.I files |
| 13 |
. |
| 14 |
. |
| 15 |
.SH DESCRIPTION |
| 16 |
. |
| 17 |
.B coqdoc |
| 18 |
is a documentation tool for the Coq proof assistant. |
| 19 |
It creates LaTeX or HTML documents from a set of Coq files. |
| 20 |
See the Coq reference manual for documentation (url below). |
| 21 |
. |
| 22 |
. |
| 23 |
.SH OPTIONS |
| 24 |
. |
| 25 |
.SS Overall options |
| 26 |
. |
| 27 |
.TP |
| 28 |
.B \-h |
| 29 |
Help. |
| 30 |
Will give you the complete list of options accepted by |
| 31 |
.BR coqdoc . |
| 32 |
.TP |
| 33 |
.B \-\-html |
| 34 |
Select a HTML output. |
| 35 |
.TP |
| 36 |
.B \-\-latex |
| 37 |
Select a LaTeX output. |
| 38 |
.TP |
| 39 |
.B \-\-dvi |
| 40 |
Select a DVI output. |
| 41 |
.TP |
| 42 |
.B \-\-ps |
| 43 |
Select a PostScript output. |
| 44 |
.TP |
| 45 |
.B \-\-texmacs |
| 46 |
Select a TeXmacs output. |
| 47 |
.TP |
| 48 |
.B \-\-stdout |
| 49 |
Redirect the output to stdout |
| 50 |
.TP |
| 51 |
.BI \-o \ file, \-\-output \ file |
| 52 |
Redirect the output into the file |
| 53 |
.I file. |
| 54 |
.TP |
| 55 |
.BI \-d \ dir, \ \-\-directory \ dir |
| 56 |
Output files into directory |
| 57 |
.I dir |
| 58 |
instead of current directory (option |
| 59 |
.B \-d |
| 60 |
does not change the filename specified with option |
| 61 |
.BR \-o , |
| 62 |
if any). |
| 63 |
.TP |
| 64 |
.BR \-s , \ \-\-short |
| 65 |
Do not insert titles for the files. |
| 66 |
The default behavior is to insert a title like ``Library Foo'' for each |
| 67 |
file. |
| 68 |
.TP |
| 69 |
.BI \-t \ string, \ \-\-title \ string |
| 70 |
Set the document title. |
| 71 |
.TP |
| 72 |
.B \-\-body\-only |
| 73 |
Suppress the header and trailer of the final document. |
| 74 |
Thus, you can insert the resulting document into a larger one. |
| 75 |
.TP |
| 76 |
.BI \-p \ string, \ \-\-preamble \ string |
| 77 |
Insert some material in the LaTeX preamble, right before |
| 78 |
\\begin{document} (meaningless with \-html). |
| 79 |
.TP |
| 80 |
.BI \-\-vernac\-file \ file, \ \-\-tex\-file \ file |
| 81 |
Considers the file |
| 82 |
.I file |
| 83 |
respectively as a .v (or .g) file or a .tex file. |
| 84 |
.TP |
| 85 |
.BI \-\-files\-from \ file |
| 86 |
Read file names to process in file |
| 87 |
.I file |
| 88 |
as if they were given on the command line. |
| 89 |
Useful for program sources split in several directories. |
| 90 |
.TP |
| 91 |
.BR \-q , \ \-\-quiet |
| 92 |
Be quiet. |
| 93 |
Do not print anything except errors. |
| 94 |
.TP |
| 95 |
.BR \-h , \ \-\-help |
| 96 |
Give a short summary of the options and exit. |
| 97 |
.TP |
| 98 |
.BR \-v , \ \-\-version |
| 99 |
Print the version and exit. |
| 100 |
. |
| 101 |
.SS Index options |
| 102 |
. |
| 103 |
Default behavior is to build an index, for the HTML output only, into |
| 104 |
index.html. |
| 105 |
. |
| 106 |
.TP |
| 107 |
.B \-\-no\-index |
| 108 |
Do not output the index. |
| 109 |
.TP |
| 110 |
.B \-\-multi\-index |
| 111 |
Generate one page for each category and each letter in the index, |
| 112 |
together with a top page index.html. |
| 113 |
. |
| 114 |
.SS Table of contents option |
| 115 |
. |
| 116 |
.TP |
| 117 |
.BR \-toc , \ \-\-table\-of\-contents |
| 118 |
Insert a table of contents. |
| 119 |
For a LaTeX output, it inserts a \\tableofcontents at the beginning of |
| 120 |
the document. |
| 121 |
For a HTML output, it builds a table of contents into toc.html. |
| 122 |
. |
| 123 |
.SS Hyperlinks options |
| 124 |
. |
| 125 |
.TP |
| 126 |
.BI \-\-glob\-from \ file |
| 127 |
Make references using Coq globalizations from file file. |
| 128 |
(Such globalizations are obtained with Coq option |
| 129 |
.BR \-dump\-glob ). |
| 130 |
. |
| 131 |
.TP |
| 132 |
.B \-\-no\-externals |
| 133 |
Do not insert links to the Coq standard library. |
| 134 |
. |
| 135 |
.TP |
| 136 |
.BI \-\-external \ url\ libroot |
| 137 |
Set base URL for the external library whose root prefix is |
| 138 |
.I libroot. |
| 139 |
. |
| 140 |
.TP |
| 141 |
.BI \-\-coqlib_url \ url |
| 142 |
Set base URL for the Coq standard library (default is |
| 143 |
http://coq.inria.fr/library/). |
| 144 |
. |
| 145 |
.TP |
| 146 |
.BI \-\-coqlib \ dir |
| 147 |
Set the base path where the Coq files are installed, especially style |
| 148 |
files coqdoc.sty and coqdoc.css. |
| 149 |
. |
| 150 |
.TP |
| 151 |
.BI \-R \ dir\ coqdir |
| 152 |
Map physical directory dir to Coq logical directory coqdir (similarly |
| 153 |
to Coq option |
| 154 |
.BR \-R ). |
| 155 |
.B Note: |
| 156 |
option |
| 157 |
.B \-R |
| 158 |
only has effect on the files following it on the command |
| 159 |
line, so you will probably need to put this option first. |
| 160 |
. |
| 161 |
.SS Contents options |
| 162 |
. |
| 163 |
.TP |
| 164 |
.BR \-g , \ \-\-gallina |
| 165 |
Do not print proofs. |
| 166 |
. |
| 167 |
.TP |
| 168 |
.BR \-l , \ \-\-light |
| 169 |
Light mode. Suppress proofs (as with |
| 170 |
.BR \-g ) |
| 171 |
and the following commands: |
| 172 |
.RS |
| 173 |
.IP \(bu 3 |
| 174 |
[Recursive] Tactic Definition |
| 175 |
.IP \(bu |
| 176 |
Hint / Hints |
| 177 |
.IP \(bu |
| 178 |
Require |
| 179 |
.IP \(bu |
| 180 |
Transparent / Opaque |
| 181 |
.IP \(bu |
| 182 |
Implicit Argument / Implicits |
| 183 |
.IP \(bu |
| 184 |
Section / Variable / Hypothesis / End |
| 185 |
.PP |
| 186 |
The behavior of options |
| 187 |
.B \-g |
| 188 |
and |
| 189 |
.B \-l |
| 190 |
can be locally overridden using the |
| 191 |
(*\ begin show\ *) .\|.\|. (*\ end show\ *) environment (see above). |
| 192 |
.RE |
| 193 |
. |
| 194 |
.SS Language options |
| 195 |
. |
| 196 |
Default behavior is to assume ASCII 7 bits input files. |
| 197 |
. |
| 198 |
.TP |
| 199 |
.BR \-latin1 , \ \-\-latin1 |
| 200 |
Select ISO-8859-1 input files. |
| 201 |
It is equivalent to |
| 202 |
.BR "\-\-inputenc\ latin1 \-\-charset\ iso\-8859\-1" . |
| 203 |
. |
| 204 |
.TP |
| 205 |
.BR \-utf8 , \ \-\-utf8 |
| 206 |
Select UTF-8 (Unicode) input files. |
| 207 |
It is equivalent to |
| 208 |
.BR "\-\-inputenc\ utf8 \-\-charset\ utf\-8" . |
| 209 |
LaTeX UTF-8 support can be found at |
| 210 |
http://www.ctan.org/tex\-archive/macros/latex/contrib/supported/unicode/. |
| 211 |
. |
| 212 |
.TP |
| 213 |
.BI \-\-inputenc \ string |
| 214 |
Give a LaTeX input encoding, as an option to LaTeX package inputenc. |
| 215 |
. |
| 216 |
.TP |
| 217 |
.BI \-\-charset \ string |
| 218 |
Specify the HTML character set, to be inserted in the HTML header. |
| 219 |
. |
| 220 |
. |
| 221 |
.SH SEE ALSO |
| 222 |
. |
| 223 |
.I |
| 224 |
The Rocq Prover Reference Manual. |
| 225 |
.PP |
| 226 |
The Rocq Prover website: https://rocq-prover.org |