diff options
-rw-r--r-- | doc/source/conf.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index b89639ae8..7c34a62cd 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -129,8 +129,9 @@ html_file_suffix = '.html' htmlhelp_basename = 'numpy' -pngmath_use_preview = True -pngmath_dvipng_args = ['-gamma', '1.5', '-D', '96', '-bg', 'Transparent'] +if 'sphinx.ext.pngmath' in extensions: + pngmath_use_preview = True + pngmath_dvipng_args = ['-gamma', '1.5', '-D', '96', '-bg', 'Transparent'] plot_html_show_formats = False plot_html_show_source_link = False |