summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/disser/include/latex.fig.nmk.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/disser/include/latex.fig.nmk.cmd')
-rw-r--r--Master/texmf-dist/doc/latex/disser/include/latex.fig.nmk.cmd59
1 files changed, 37 insertions, 22 deletions
diff --git a/Master/texmf-dist/doc/latex/disser/include/latex.fig.nmk.cmd b/Master/texmf-dist/doc/latex/disser/include/latex.fig.nmk.cmd
index f6f164b74a1..556eeb49a12 100644
--- a/Master/texmf-dist/doc/latex/disser/include/latex.fig.nmk.cmd
+++ b/Master/texmf-dist/doc/latex/disser/include/latex.fig.nmk.cmd
@@ -8,13 +8,18 @@ if "%CMDEXTVERSION%"=="" (
goto :eof
)
-set epstool=epstool
-set epstopdf=epstopdf
+if "%e2e%"=="" set e2e=eps2eps
+if "%epstool%"=="" set epstool=epstool
+if "%epstopdf%"=="" set epstopdf=epstopdf
-set etflags=--quiet --copy --bbox
+if "%e2eflags%"=="" set e2eflags=-dSAFER
+if "%etflags%"=="" set etflags=--quiet --copy --bbox
-set figclfiles=*.pdf
-set suffix=~
+if "%e2efiles%"=="" set e2efiles=*.eps
+if "%e2pfiles%"=="" set e2pfiles=*.eps
+if "%fbbfiles%"=="" set fbbfiles=*.eps
+if "%figclfiles%"=="" set figclfiles=*.pdf
+if "%suffix%"=="" set suffix=~
rem end of configuration
@@ -29,11 +34,12 @@ if "%1"=="" goto :eof
if "%1"=="help" (
:help
- echo Targets:
- echo clean - clean generated PDF files
- echo epstopdf - convert all figures to PDF
- echo fixbb - fix BoundingBox
- echo help - ^(default^) show this message
+ echo List of targets:
+ echo clean clean PDF files
+ echo epstoeps optimize EPS files
+ echo epstopdf convert all figures to PDF
+ echo fixbb fix BoundingBox of EPS files
+ echo help ^(default^) show this message
goto :eof
)
@@ -45,26 +51,35 @@ goto :eof
if "%1"=="epstopdf" (
:epstopdf
- for /f "usebackq" %%n in (`dir *.eps /s /b`) do call :conv %%n
-goto :end
-:conv
- %epstopdf% "%1"
- echo epstopdf: %~nx1...done
+ for %%f in (%e2pfiles%) do (
+ if not exist "%%~nf.pdf" (
+ %epstopdf% "%%f"
+ echo epstopdf: %%f
+ )
+ )
goto :eof
)
if "%1"=="fixbb" (
:fixbb
- for /f "usebackq" %%n in (`dir *.eps /s /b`) do call :fix %%n
-goto :end
-:fix
- %epstool% %etflags% %1 %1.%suffix%
- move %1.%suffix% %1 > nul
- echo fixbb: %~nx1...done
+ for %%f in (%fbbfiles%) do (
+ %epstool% %etflags% "%%f" "%%f%suffix%"
+ move "%%f%suffix%" "%%f" > nul
+ echo fixbb: %%f
+ )
+goto :eof
+)
+
+if "%1"=="epstoeps" (
+:epstoeps
+ for %%f in (%e2efiles%) do (
+ %e2e% %e2eflags% "%%f" "%%f%suffix%"
+ move "%%f%suffix%" "%%f" > nul
+ echo epstoeps: %%f
+ )
goto :eof
)
if "%1" neq "" echo Don't know how to make %1
:end
shift & goto :start
-