-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOC] document how this is different to sphinxcontrib-proof #8
Comments
Let me explain very briefly some of the reasoning behind the implementation and syntax. During the first two iterations of this extension, I followed the instructions under Developing a “recipe” extension to create the different directives. The main reason I chose to use a Unlike sphinxcontrib-proof, I wasn't using The syntax is similar to sphinxcontrib-proof primarily because both implementations use domains, but also because I wasn't sure what to call the domain so I ended up using the same name (hoping we'd change it to something more inclusive). However, unlike sphinxcontrib-proof, this extension supports the following options for most directives:
The biggest headache I had with sphinxcontrib-proof was the actual referencing throughout the text. In order to reference a directive, you have to remember its target name and type (theorem, definition, corollary, etc.). Here's an example: You can label and reference definition and theorems (e.g. :numref:`theorem {number} <pythagorean>`).
You can also reference proofs (see the :ref:`proof of the Pythagorean theorem <proof>`). I found this to be too cumbersome (or maybe I'm just that lazy haha). I didn't want to have to remember the type in addition to the target. So, I decided that the labels will by default incorporate the type when referenced. This is what the equivalent of the references above would look like in this extension: You can label and reference definition and theorems (e.g. :proof:ref:`pythagorean`).
You can also reference proofs (see the :proof:ref:`proof of the Pythagorean theorem <proof>`). |
Thanks @najuzilu we should copy this to the docs :-). |
Do we use any code from |
Working on it... :-)
We don't use any code from |
Can I ask for one extra piece of information here? I think we should also document why this package is a different package from |
@najuzilu beyond the obvious styling improvements would you be able to put a list together of the differences between this project and sphinxcontrib-prettyproof. It would be helpful in the
docs
when people are trying to decide which to use etc.From memory you had lots of issues with
sphinxcontrib-proof
The text was updated successfully, but these errors were encountered: