summaryrefslogtreecommitdiff
path: root/sphinx
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
commit11e674c95e351b3409aa3f01b877c18d3976440d (patch)
treea5f81a130f26cf44d2923f2dac9f0499f1bca4b9 /sphinx
parenta11910d91f62996570332d42a39afdbdc82afba1 (diff)
downloadsphinx-11e674c95e351b3409aa3f01b877c18d3976440d.tar.gz
Closes #1010: Make pngmath images transparent by default; IE7+ should handle it.
Diffstat (limited to 'sphinx')
-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 78c331a6..549dfb83 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')