From 55446caca184334ec87b2bddad790a35c1c5ef31 Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Wed, 25 May 2016 14:39:17 +0200 Subject: [PATCH] Dont add the imgmath dvi->svg arg twice It's already added in the general case for png too a few lines below --- sphinx/ext/imgmath.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/sphinx/ext/imgmath.py b/sphinx/ext/imgmath.py index 307145adbf..9dc1004179 100644 --- a/sphinx/ext/imgmath.py +++ b/sphinx/ext/imgmath.py @@ -162,8 +162,6 @@ def render_math(self, math): image_translator_args += ['-o', outfn] # add custom ones from config value image_translator_args.extend(self.builder.config.imgmath_dvisvgm_args) - # last, the input file name - image_translator_args.append(path.join(tempdir, 'math.dvi')) else: raise MathExtError( 'imgmath_image_format must be either "png" or "svg"')