commit bd89a273bcc0d85b9bf1dc456ce444b1f85f6f0a
Author: Juergen Spitzmueller <[email protected]>
Date: Mon May 18 08:32:26 2020 +0200
Amend 74f831e06d
Forgot this part.
---
lib/scripts/svg2pstex.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/lib/scripts/svg2pstex.py b/lib/scripts/svg2pstex.py
index cc7c9cc..09d8ac7 100644
--- a/lib/scripts/svg2pstex.py
+++ b/lib/scripts/svg2pstex.py
@@ -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)
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs