summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/disser/include
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-04-15 18:27:58 +0000
committerKarl Berry <karl@freefriends.org>2009-04-15 18:27:58 +0000
commit1a04c4958efaf6b4b8b9d2464a222f61de314ef5 (patch)
treea10805300b448de2375ac01d834fefdd3a2705d5 /Master/texmf-dist/doc/latex/disser/include
parent88f7d1ac35385d57d17eb60fb2d77f6704eadde5 (diff)
disser update (14apr09)
git-svn-id: svn://tug.org/texlive/trunk@12723 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/disser/include')
-rw-r--r--Master/texmf-dist/doc/latex/disser/include/latex.fig.mk38
-rw-r--r--Master/texmf-dist/doc/latex/disser/include/latex.fig.nmk.cmd54
-rw-r--r--Master/texmf-dist/doc/latex/disser/include/latex.mk2
-rw-r--r--Master/texmf-dist/doc/latex/disser/include/latex.nmk.cmd3
4 files changed, 75 insertions, 22 deletions
diff --git a/Master/texmf-dist/doc/latex/disser/include/latex.fig.mk b/Master/texmf-dist/doc/latex/disser/include/latex.fig.mk
index f3e23d5ded5..55bdc57e4c1 100644
--- a/Master/texmf-dist/doc/latex/disser/include/latex.fig.mk
+++ b/Master/texmf-dist/doc/latex/disser/include/latex.fig.mk
@@ -6,25 +6,31 @@
E2E?=eps2eps
EPSTOOL?=epstool
EPSTOPDF?=epstopdf
+GS?=gs
E2EFLAGS?=-dSAFER
ETFLAGS?=--quiet --copy --bbox
+RES?=600
E2EFILES?=*.eps
E2PFILES?=*.eps
FBBFILES?=*.eps
-FIGCLFILES?=*.pdf
+PDF2PNGFILES?=*.pdf
+PDF2TIFFILES?=*.pdf
+FIGCLFILES?=*.pdf *.png *.tif
SUFFIX?=~
# end of configuration
help:
@echo "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 help"
+ @echo " clean clean PDF files"
+ @echo " epstoeps optimize EPS files"
+ @echo " epstopdf convert all figures to PDF"
+ @echo " pdftopng256 convert PDF to PNG (256-color)"
+ @echo " pdftotiffg4 convert PDF to TIFF (b/w CCITT Group 4)"
+ @echo " fixbb fix BoundingBox of EPS files"
+ @echo " help (default) show help"
clean:
rm -f $(FIGCLFILES)
@@ -40,6 +46,10 @@ epstoeps: $(E2EFILES)
epstopdf: $(patsubst %.eps, %.pdf, $(wildcard $(E2PFILES)))
+pdftopng256: $(patsubst %.pdf, %.png, $(wildcard $(PDF2PNGFILES)))
+
+pdftotiffg4: $(patsubst %.pdf, %.tif, $(wildcard $(PDF2TIFFILES)))
+
fixbb: $(FBBFILES)
@for f in $^ ;\
do \
@@ -50,6 +60,18 @@ fixbb: $(FBBFILES)
done
%.pdf: %.eps
- @echo -n "epstopdf: $<..."
- @$(EPSTOPDF) "$<"
+ @echo -n "epstopdf: $^..."
+ @$(EPSTOPDF) "$^"
+ @echo "done"
+
+%.png: %.pdf
+ @echo -n "pdftopng256: $^..."
+ @$(GS) -sDEVICE=png256 -r$(RES) -q -sOutputFile=$(^:.pdf=.png) \
+ -dNOPAUSE -dBATCH -dSAFER "$^"
+ @echo "done"
+
+%.tif: %.pdf
+ @echo -n "pdftotiffg4: $^..."
+ @$(GS) -sDEVICE=tiffg4 -r$(RES) -q -sOutputFile=$(^:.pdf=.tif) \
+ -dNOPAUSE -dBATCH -dSAFER "$^"
@echo "done"
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
diff --git a/Master/texmf-dist/doc/latex/disser/include/latex.mk b/Master/texmf-dist/doc/latex/disser/include/latex.mk
index de058733d32..14586fd20fb 100644
--- a/Master/texmf-dist/doc/latex/disser/include/latex.mk
+++ b/Master/texmf-dist/doc/latex/disser/include/latex.mk
@@ -116,7 +116,7 @@ clean:
@$(MAKE) -C fig $@
help:
- @echo "List of targets:"
+ @echo "Targets:"
@echo " dvi (default) build DVI"
@echo " clean remove output files"
@echo " epstoeps optimize EPS files"
diff --git a/Master/texmf-dist/doc/latex/disser/include/latex.nmk.cmd b/Master/texmf-dist/doc/latex/disser/include/latex.nmk.cmd
index 80ed92bfe9d..e41d5571ea8 100644
--- a/Master/texmf-dist/doc/latex/disser/include/latex.nmk.cmd
+++ b/Master/texmf-dist/doc/latex/disser/include/latex.nmk.cmd
@@ -169,7 +169,7 @@ goto :eof
if "%1"=="help" (
:help
- echo List of targets:
+ echo Targets:
echo dvi ^(default^) build DVI
echo clean remove output files
echo epstoeps optimize EPS files
@@ -177,6 +177,7 @@ if "%1"=="help" (
echo fixbb fix BoundingBox of EPS files
echo help show list of targets
echo html convert to HTML
+ echo pdf build PDF
echo pdf_2on1 build PDF with two A5 pages on one A4 ordered by number
echo pdf_book build PDF booklet ^(two A5 on A4^)
echo ps build PS