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.cmd54
1 files changed, 42 insertions, 12 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 6232434028a..03e6e0707b4 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
@@ -11,14 +11,18 @@ if "%CMDEXTVERSION%"=="" (
if "%e2e%"=="" set e2e=eps2eps
if "%epstool%"=="" set epstool=epstool
if "%epstopdf%"=="" set epstopdf=epstopdf
+if "%gs%"=="" set gs=gswin32c
if "%e2eflags%"=="" set e2eflags=-dSAFER
if "%etflags%"=="" set etflags=--quiet --copy --bbox
+if "%res%"=="" set res=600
if "%e2efiles%"=="" set e2efiles=*.eps
if "%e2pfiles%"=="" set e2pfiles=*.eps
+if "%pdf2pngfiles%"=="" set pdf2pngfiles=*.pdf
+if "%pdf2tiffiles%"=="" set pdf2tiffiles=*.pdf
if "%fbbfiles%"=="" set fbbfiles=*.eps
-if "%figclfiles%"=="" set figclfiles=*.pdf
+if "%figclfiles%"=="" set figclfiles=*.pdf *.png *.tif
if "%suffix%"=="" set suffix=~
rem end of configuration
@@ -34,17 +38,6 @@ goto :eof
:start
if "%1"=="" goto :eof
-if "%1"=="help" (
-:help
- 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
-)
-
if "%1"=="clean" (
:clean
del /s %figclfiles% 2> nul
@@ -63,6 +56,30 @@ if "%1"=="epstopdf" (
goto :eof
)
+if "%1"=="pdftopng256" (
+:pdftopng
+ if "%2" neq "" set pdf2pngfiles=%2 %3 %4 %5 %6 %7 %8 %9
+ for %%f in (!pdf2pngfiles!) do (
+ if not exist "%%~nf.png" (
+ %gs% -sDEVICE=png256 -r%res% -q -sOutputFile=%%~nf.png -dNOPAUSE -dBATCH -dSAFER "%%f"
+ echo pdftopng256: %%f
+ )
+ )
+goto :eof
+)
+
+if "%1"=="pdftotiffg4" (
+:pdftotiffg4
+ if "%2" neq "" set pdf2tiffiles=%2 %3 %4 %5 %6 %7 %8 %9
+ for %%f in (!pdf2tiffiles!) do (
+ if not exist "%%~nf.tif" (
+ %gs% -sDEVICE=tiffg4 -r%res% -q -sOutputFile=%%~nf.tif -dNOPAUSE -dBATCH -dSAFER "%%f"
+ echo pdftotiffg4: %%f
+ )
+ )
+goto :eof
+)
+
if "%1"=="fixbb" (
:fixbb
if "%2" neq "" set fbbfiles=%2 %3 %4 %5 %6 %7 %8 %9
@@ -85,6 +102,19 @@ if "%1"=="epstoeps" (
goto :eof
)
+if "%1"=="help" (
+:help
+ echo Targets:
+ echo clean clean PDF files
+ echo epstoeps optimize EPS files using Ghostscript
+ echo epstopdf convert EPS to PDF
+ echo fixbb fix BoundingBox of EPS files
+ echo pdftopng256 convert PDF to PNG (256-color)
+ echo pdftotiffg4 convert PDF to TIFF (b/w CCITT Group 4)
+ echo help ^(default^) show this message
+goto :eof
+)
+
if "%1" neq "" echo Don't know how to make %1
:end
shift & goto :start