Comparison: sphinx.ext.imgmath
vs sphinx-mathjax-offline
#105
Labels
analysis
Detailed analysis comparing options to guide choices and clarify understanding
dependencies
Pull requests that update a dependency file
When improving our documentation setup for Comptox AI, we faced the decision of which Sphinx extension to use for math rendering. This issue provides a detailed comparison of
sphinx.ext.imgmath
andsphinx-mathjax-offline
, which informed our decision.sphinx.ext.imgmath
:dvipng
,dvisvgm
, orconvert
(from ImageMagick) command to be on the system. This involves converting LaTeX to DVI and then to the desired image format.Pros:
Cons:
sphinx-mathjax-offline
:Pros:
sphinx.ext.mathjax
which retrieves MathJax from a CDN.Cons:
Decision:
Given our specific requirements, especially concerning our EC2 setup and memory constraints, we opted to use
sphinx-mathjax-offline
. This decision prioritizes scalable rendering, offline capabilities, and avoids the necessity of a resource-heavy LaTeX installation on our EC2 instance.Related issues: #87 , #101
The text was updated successfully, but these errors were encountered: