Is there a nice way to do literate programming in coq or turn code into html/latex?
@Callan McGill as of today Alectryon is your best bet I think
But if you are willing to put up with a less polished publishing chain jsCoq also allows some of it
The closest we have is indeed Alectryon: https://github.com/cpitclaudel/alectryon
If you want to intermix Coq code and LaTeX, you could use coqdoc like what is done here: https://github.com/ilyasergey/pnp
see here for overview of an experimental toolchain that combines LaTeX and Alectryon and Coq, this is where that code lives: https://github.com/coq-community/hydra-battles/tree/master/doc/movies
This tool looks excellent! Do you happen to know how if I can make it aware of _CoqProject
or directly pass coq options to it as without -noinit
I get lots of warnings and errors
Alternatively, can one directly add arg -noinit
to a source file somehow
I figured out one can pass --coqc-arg=noinit
to alectryon but I think I am doing something incorrectly as it doesn't pass that arg to coqc
Try --sertop-arg=--no_prelude
. alectryon doesn't call coqc by default, that's why --coqc-arg
does nothing.
That is perfect, thank you very much :big_smile:
Last updated: Sep 25 2023 at 14:01 UTC