diff options
| author | Georg Brandl <georg@python.org> | 2012-10-28 19:06:48 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2012-10-28 19:06:48 +0100 |
| commit | 11e674c95e351b3409aa3f01b877c18d3976440d (patch) | |
| tree | a5f81a130f26cf44d2923f2dac9f0499f1bca4b9 /sphinx | |
| parent | a11910d91f62996570332d42a39afdbdc82afba1 (diff) | |
| download | sphinx-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.py | 3 |
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') |
