have sphinx configuration switch math formula renderer for epub
this still needs work, that has to be done after we switched to RST
This commit is contained in:
@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user