]> git.lyx.org Git - features.git/commitdiff
Amend 74f831e06d
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 18 May 2020 06:32:26 +0000 (08:32 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 18 May 2020 11:20:57 +0000 (13:20 +0200)
Forgot this part.

(cherry picked from commit bd89a273bcc0d85b9bf1dc456ce444b1f85f6f0a)

lib/scripts/svg2pstex.py

index acb0322006721f1d9ffc5e47c3f6082eb6f5cfe2..738ecf785b55baebfe4e45d2f96a39a1d9bbda17 100644 (file)
@@ -85,7 +85,10 @@ OutBase = os.path.splitext(OutputFile)[0]
 # while outsourcing the text to a LaTeX file ${OutBase}.eps_tex which includes and overlays
 # the EPS image and can be \input to LaTeX files. We rename the latter file to ${OutputFile}
 # (although this is probably the name it already has).
-runCommand([r'%s' % InkscapeCmd, '--file=%s' % InputFile, '--export-eps=%s.eps' % OutBase, '--export-latex'])
+if unstable:
+    runCommand([r'%s' % InkscapeCmd, '--file=%s' % InputFile, '--export-eps=%s.eps' % OutBase, '--export-latex'])
+else:
+    runCommand([r'%s' % InkscapeCmd, '%s' % InputFile, '--export-filename=%s.eps' % OutBase, '--export-latex'])
 
 os.rename('%s.eps_tex' % OutBase, OutputFile)