From 6c615c46031a3cd8f24ed87c03cae9cf29dd6f99 Mon Sep 17 00:00:00 2001 From: goik <goik@hdm-stuttgart.de> Date: Mon, 22 Oct 2012 20:55:33 +0200 Subject: [PATCH] Modification of fig2dec .create file for correct xfig layer treatment --- bin/createTexModifier.sh | 5 +++++ bin/fig2mpdf | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 bin/createTexModifier.sh diff --git a/bin/createTexModifier.sh b/bin/createTexModifier.sh new file mode 100755 index 000000000..07f82b89f --- /dev/null +++ b/bin/createTexModifier.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +perl -i -pe's/(fig2dev\ \-L\ pstex\ \-D\ \+[0-9]+),([0-9]+)/$1:$2/' $* + +#end \ No newline at end of file diff --git a/bin/fig2mpdf b/bin/fig2mpdf index 1ba638445..0a355dbf0 100755 --- a/bin/fig2mpdf +++ b/bin/fig2mpdf @@ -439,7 +439,9 @@ function fnDoTexFig(szFileNameBase, szFigFile, szRangeList, iPdf, szCommand = sprintf("%s -L pstex_p %s -p %s %s %s", cmdFig2dev, szRangeList, szTexInpPref, szFigFile, szTexInp); debug("%s\n", szCommand); system(szCommand); - + createModifierCommand=sprintf("/ma/goik/createTexModifier.sh %s", szTexCreator); + debug("%s\n",createModifierCommand); + system(createModifierCommand); szCommand = sprintf("./%s", szTexCreator); debug("%s\n", szCommand); system(szCommand); -- GitLab