COQDOC(1)
π COQDOC(1) β the coqdoc manual, but make it slay π
okay bestie, pull up a chair, because this is the documentation tool for the Coq proof assistant and she is iconic. it's from the General Commands Manual section of the manual pages, and by the end of this you're gonna be writing docs like a main character. π
β¨ NAME β¨
coqdoc β the documentation tool for the Coq proof assistant. periodt.
πΈ SYNOPSIS πΈ
coqdoc [ options ] files
π¦ DESCRIPTION π¦
so coqdoc is a documentation tool for the Coq proof assistant, and what she does is create LaTeX or HTML documents from a set of Coq files. that's the whole vibe. π«Ά
and listen β for actual documentation, the manual is like "see the Coq reference manual (url below)." so yeah, that's where the deep lore lives, url below, iykyk.
π OPTIONS π
π Overall options
-hβ help. this one gives you the complete list of options accepted bycoqdoc. the full menu, no gatekeeping.--htmlβ select a HTML output. β¨--latexβ select a LaTeX output. π--dviβ select a DVI output.--psβ select a PostScript output.--texmacsβ select a TeXmacs output.--stdoutβ redirect the output to stdout. straight to your terminal, no files, no drama.-ofile,--outputfile β redirect the output into the file file.-ddir,--directorydir β output files into directory dir instead of the current directory. β οΈ heads up: option-ddoes not change the filename specified with option-o, if any.-s,--shortβ do not insert titles for the files. the default behavior is to insert a title likeLibrary Foofor each file, so this is the "no name tags at the party" option.-tstring,--titlestring β set the document title.--body-onlyβ suppress the header and trailer of the final document. so you can insert the resulting document into a larger one, like a little sticker in a scrapbook. π-pstring,--preamblestring β insert some material in the LaTeX preamble, right before\begin{document}(meaningless with-html). π yeah, meaningless with-html, don't try it.--vernac-filefile,--tex-filefile β considers the file file respectively as a.v(or.g) file or a.texfile.--files-fromfile β read file names to process in file file as if they were given on the command line. useful for program sources split in several directories. ποΈ-q,--quietβ be quiet. do not print anything except errors. the "don't text me unless it's an emergency" setting.-h,--helpβ give a short summary of the options and exit.-v,--versionβ print the version and exit.
π₯ Index options
default behavior is to build an index, for the HTML output only, into index.html.
--no-indexβ do not output the index. bye bestie π--multi-indexβ generate one page for each category and each letter in the index, together with a top pageindex.html.
π Table of contents option
-toc,--table-of-contentsβ insert a table of contents. for a LaTeX output, it inserts a\tableofcontentsat the beginning of the document. for a HTML output, it builds a table of contents intotoc.html. β¨
π§ Hyperlinks options
--glob-fromfile β make references using Coq globalizations from file file. (such globalizations are obtained with Coq option-dump-glob.)--no-externalsβ do not insert links to the Coq standard library.--externalurl libroot β set base URL for the external library whose root prefix is libroot.--coqlib_urlurl β set base URL for the Coq standard library (default ishttp://coq.inria.fr/library/).--coqlibdir β set the base path where the Coq files are installed, especially style filescoqdoc.styandcoqdoc.css. π¨-Rdir coqdir β map physical directory dir to Coq logical directory coqdir (similarly to Coq option-R). π note: option-Ronly has effect on the files following it on the command line, so you will probably need to put this option first.
β Contents options
-g,--gallinaβ do not print proofs.-l,--lightβ light mode. suppress proofs (as with-g) and the following commands:[Recursive] Tactic DefinitionHint/HintsRequireTransparent/OpaqueImplicit Argument/ImplicitsSection/Variable/Hypothesis/End
the behavior of options -g and -l can be locally overridden using the (* begin show *) ... (* end show *) environment (see above). π
π Language options
default behavior is to assume ASCII 7 bits input files.
-latin1,--latin1β select ISO-8859-1 input files. it is equivalent to--inputenc latin1 --charset iso-8859-1.-utf8,--utf8β select UTF-8 (Unicode) input files. it is equivalent to--inputenc utf8 --charset utf-8. LaTeX UTF-8 support can be found athttp://www.ctan.org/tex-archive/macros/latex/contrib/supported/unicode/. π--inputencstring β give a LaTeX input encoding, as an option to LaTeX packageinputenc.--charsetstring β specify the HTML character set, to be inserted in the HTML header.
π SEE ALSO π
- The Rocq Prover Reference Manual.
- The Rocq Prover website:
https://rocq-prover.org
and that's the whole page, bestie β no cap. this manual page came to you from the General Commands Manual family, it's the COQDOC(1) page, and if you ever forget it, just know it lives at the very bottom of itself with the same name it started with. slay. π
β¨π¦πΈ
ok that's literally it, go document something gorgeous π
π¦ where this page comes from
- alpine 3.24: rocq-doc 9.1.1-r3 Β· LGPL-2.1-or-later
- arch rolling: rocq 9.3.0-1 Β· LGPL-2.1-only
- fedora 44: coq-core-compat 9.1.1-1.fc44 Β· LGPL-2.1-only AND LGPL-2.1-only WITH OCaml-LGPL-linking-exception AND MIT AND BSD-3-Clause
- fedora 44: coq-core-compat 9.3.0-1.fc44 Β· LGPL-2.1-only AND LGPL-2.1-only WITH OCaml-LGPL-linking-exception AND MIT AND BSD-3-Clause
- nixos 26.05: coq 9.2.0
- nixpkgs unstable: coq 9.1.1
- ubuntu stonking: coq 9.2.0+dfsg-4build2 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms