Skip to content

Commit

Permalink
Sphinx: Embed math images
Browse files Browse the repository at this point in the history
Avoids uploading many small svg files to speedup CI
  • Loading branch information
jschueller committed Sep 26, 2022
1 parent 8f7a27e commit 2752cfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/doc/conf.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ try:
imgmath_use_preview = True
if subprocess.call('dvisvgm -V', shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) == 0:
imgmath_image_format = 'svg'
imgmath_embed = True
except ImportError:
extensions.append('sphinx.ext.pngmath')
pngmath_latex_preamble = r'\usepackage{{{0}math_notations}}'.format(
Expand Down

0 comments on commit 2752cfd

Please sign in to comment.