COQDOC(1)

πŸ“¦
version 9.3.0 Β· 3 versions
, in alpine 3.24, arch rolling, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu stonking

πŸ’– 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 by coqdoc. 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.
  • -o file, --output file β€” redirect the output into the file file.
  • -d dir, --directory dir β€” output files into directory dir instead of the current directory. ⚠️ heads up: option -d does 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 like Library Foo for each file, so this is the "no name tags at the party" option.
  • -t string, --title string β€” 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. 🌈
  • -p string, --preamble string β€” insert some material in the LaTeX preamble, right before \begin{document} (meaningless with -html). πŸ’€ yeah, meaningless with -html, don't try it.
  • --vernac-file file, --tex-file file β€” considers the file file respectively as a .v (or .g) file or a .tex file.
  • --files-from file β€” 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 page index.html.

πŸŽ€ Table of contents option

  • -toc, --table-of-contents β€” insert a table of contents. for a LaTeX output, it inserts a \tableofcontents at the beginning of the document. for a HTML output, it builds a table of contents into toc.html. ✨

  • --glob-from file β€” 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.
  • --external url libroot β€” set base URL for the external library whose root prefix is libroot.
  • --coqlib_url url β€” set base URL for the Coq standard library (default is http://coq.inria.fr/library/).
  • --coqlib dir β€” set the base path where the Coq files are installed, especially style files coqdoc.sty and coqdoc.css. 🎨
  • -R dir coqdir β€” map physical directory dir to Coq logical directory coqdir (similarly to Coq option -R). πŸ“Œ note: option -R only 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 Definition
    • Hint / Hints
    • Require
    • Transparent / Opaque
    • Implicit Argument / Implicits
    • Section / 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 at http://www.ctan.org/tex-archive/macros/latex/contrib/supported/unicode/. 🌍
  • --inputenc string β€” give a LaTeX input encoding, as an option to LaTeX package inputenc.
  • --charset string β€” specify the HTML character set, to be inserted in the HTML header.

πŸ’œ SEE ALSO πŸ’œ


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