diff --git a/doc/utils/sphinx-config/conf.py b/doc/utils/sphinx-config/conf.py index 29de3af156..727a5f7612 100644 --- a/doc/utils/sphinx-config/conf.py +++ b/doc/utils/sphinx-config/conf.py @@ -30,7 +30,7 @@ import os # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ - 'sphinx.ext.mathjax', + 'sphinx.ext.mathjax', 'sphinx.ext.imgmath' ] # 2017-12-07: commented out, since this package is broken with Sphinx 16.x # yet we can no longer use Sphinx 15.x, since that breaks with @@ -201,6 +201,11 @@ htmlhelp_basename = 'LAMMPSdoc' html_add_permalinks = '' +if 'epub' in sys.argv: + html_math_renderer = 'imgmath' +else: + html_math_renderer = 'mathjax' + # -- Options for LaTeX output --------------------------------------------- latex_elements = {