summaryrefslogtreecommitdiff
path: root/sphinx/ext/pngmath.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-10-28 19:06:48 +0100
committerGeorg Brandl <georg@python.org>2012-10-28 19:06:48 +0100
commit0c02841412f8c0efe871853f192252e58e23680d (patch)
treea5f81a130f26cf44d2923f2dac9f0499f1bca4b9 /sphinx/ext/pngmath.py
parent20e5574c544c03369e15f4482f64ed617898163c (diff)
downloadsphinx-git-0c02841412f8c0efe871853f192252e58e23680d.tar.gz
Closes #1010: Make pngmath images transparent by default; IE7+ should handle it.
Diffstat (limited to 'sphinx/ext/pngmath.py')
-rw-r--r--sphinx/ext/pngmath.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/ext/pngmath.py b/sphinx/ext/pngmath.py
index 78c331a60..549dfb83a 100644
--- a/sphinx/ext/pngmath.py
+++ b/sphinx/ext/pngmath.py
@@ -237,7 +237,8 @@ def setup(app):
app.add_config_value('pngmath_latex', 'latex', 'html')
app.add_config_value('pngmath_use_preview', False, 'html')
app.add_config_value('pngmath_dvipng_args',
- ['-gamma 1.5', '-D 110'], 'html')
+ ['-gamma', '1.5', '-D', '110', '-bg', 'Transparent'],
+ 'html')
app.add_config_value('pngmath_latex_args', [], 'html')
app.add_config_value('pngmath_latex_preamble', '', 'html')
app.add_config_value('pngmath_add_tooltips', True, 'html')