diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/disser/include')
4 files changed, 134 insertions, 207 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 55bdc57e4c1..9c77cdde874 100644 --- a/Master/texmf-dist/doc/latex/disser/include/latex.fig.mk +++ b/Master/texmf-dist/doc/latex/disser/include/latex.fig.mk @@ -23,14 +23,13 @@ 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 " clean clean PDF, PNG and TIFF files" + @echo " epstoeps optimize EPS files using Ghostscript" + @echo " epstopdf convert EPS to PDF" + @echo " fixbb fix BoundingBox of EPS files" + @echo " help (default) show description of targets" @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) @@ -44,11 +43,7 @@ epstoeps: $(E2EFILES) echo "done" ;\ done -epstopdf: $(patsubst %.eps, %.pdf, $(wildcard $(E2PFILES))) - -pdftopng256: $(patsubst %.pdf, %.png, $(wildcard $(PDF2PNGFILES))) - -pdftotiffg4: $(patsubst %.pdf, %.tif, $(wildcard $(PDF2TIFFILES))) +epstopdf: $(patsubst %.eps, %.pdf, $(wildcard $(E2PFILES))) fixbb: $(FBBFILES) @for f in $^ ;\ @@ -59,18 +54,22 @@ fixbb: $(FBBFILES) echo "done" ;\ done -%.pdf: %.eps +pdftopng256: $(patsubst %.pdf, %.png, $(wildcard $(PDF2PNGFILES))) + +pdftotiffg4: $(patsubst %.pdf, %.tif, $(wildcard $(PDF2TIFFILES))) + +%.pdf: %.eps @echo -n "epstopdf: $^..." @$(EPSTOPDF) "$^" @echo "done" -%.png: %.pdf +%.png: %.pdf @echo -n "pdftopng256: $^..." @$(GS) -sDEVICE=png256 -r$(RES) -q -sOutputFile=$(^:.pdf=.png) \ -dNOPAUSE -dBATCH -dSAFER "$^" @echo "done" -%.tif: %.pdf +%.tif: %.pdf @echo -n "pdftotiffg4: $^..." @$(GS) -sDEVICE=tiffg4 -r$(RES) -q -sOutputFile=$(^:.pdf=.tif) \ -dNOPAUSE -dBATCH -dSAFER "$^" 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 03e6e0707b4..a79a74ab838 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 @@ -33,20 +33,30 @@ if "%1"=="" ( :default call :help goto :eof -) - -:start -if "%1"=="" goto :eof - -if "%1"=="clean" ( +) else if "%1"=="help" ( +:help + echo clean clean PDF, PNG and TIFF files + echo epstoeps optimize EPS files using Ghostscript + echo epstopdf convert EPS to PDF + echo fixbb fix BoundingBox of EPS files + echo help ^(default^) show description of targets + echo pdftopng256 convert PDF to PNG ^(256-color^) + echo pdftotiffg4 convert PDF to TIFF ^(b/w CCITT Group 4^) +goto :eof +) else if "%1"=="clean" ( :clean - del /s %figclfiles% 2> nul + del /s %figclfiles% goto :eof -) - -if "%1"=="epstopdf" ( +) else if "%1"=="epstoeps" ( +:epstoeps + for %%f in (!e2efiles!) do ( + %e2e% %e2eflags% "%%f" "%%f%suffix%" + move "%%f%suffix%" "%%f" > nul + echo epstoeps: %%f + ) +goto :eof +) else if "%1"=="epstopdf" ( :epstopdf - if "%2" neq "" set e2pfiles=%2 %3 %4 %5 %6 %7 %8 %9 for %%f in (!e2pfiles!) do ( if not exist "%%~nf.pdf" ( %epstopdf% "%%f" @@ -54,10 +64,16 @@ if "%1"=="epstopdf" ( ) ) goto :eof -) - -if "%1"=="pdftopng256" ( -:pdftopng +) else if "%1"=="fixbb" ( +:fixbb + for %%f in (!fbbfiles!) do ( + %epstool% %etflags% "%%f" "%%f%suffix%" + move "%%f%suffix%" "%%f" > nul + echo fixbb: %%f + ) +goto :eof +) else if "%1"=="pdftopng256" ( +:pdftopng256 if "%2" neq "" set pdf2pngfiles=%2 %3 %4 %5 %6 %7 %8 %9 for %%f in (!pdf2pngfiles!) do ( if not exist "%%~nf.png" ( @@ -66,9 +82,7 @@ if "%1"=="pdftopng256" ( ) ) goto :eof -) - -if "%1"=="pdftotiffg4" ( +) else if "%1"=="pdftotiffg4" ( :pdftotiffg4 if "%2" neq "" set pdf2tiffiles=%2 %3 %4 %5 %6 %7 %8 %9 for %%f in (!pdf2tiffiles!) do ( @@ -78,43 +92,6 @@ if "%1"=="pdftotiffg4" ( ) ) goto :eof +) else ( + echo Don't know how to make %1 ) - -if "%1"=="fixbb" ( -:fixbb - if "%2" neq "" set fbbfiles=%2 %3 %4 %5 %6 %7 %8 %9 - for %%f in (!fbbfiles!) do ( - %epstool% %etflags% "%%f" "%%f%suffix%" - move "%%f%suffix%" "%%f" > nul - echo fixbb: %%f - ) -goto :eof -) - -if "%1"=="epstoeps" ( -:epstoeps - if "%2" neq "" set e2efiles=%2 %3 %4 %5 %6 %7 %8 %9 - for %%f in (!e2efiles!) do ( - %e2e% %e2eflags% "%%f" "%%f%suffix%" - move "%%f%suffix%" "%%f" > nul - echo epstoeps: %%f - ) -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 14586fd20fb..b0269945088 100644 --- a/Master/texmf-dist/doc/latex/disser/include/latex.mk +++ b/Master/texmf-dist/doc/latex/disser/include/latex.mk @@ -9,8 +9,8 @@ BIBFILE?=thesis.bib ARCH?=7z BIBTEX?=bibtex8 DVIPS?=dvips -FIND?=/bin/find L2H?=latex2html +L2RTF?=latex2rtf LATEX?=latex PDFLATEX?=pdflatex PS2PDF?=gs @@ -23,7 +23,7 @@ ARCHIVE?=$(TARGET).$(ARCHEXT) BIBTEXFLAGS?=-H -c cp1251 L2HFLAGS?=-dir html -iso_language RU.RU -split 3 -short_index \ - -numbered_footnotes -no_footnode -white -antialias -html_version 4.0 + -numbered_footnotes -white -antialias -html_version 4.0 L2RTFFLAGS?=-F -M12 -i russian PS2PDFFLAGS?=-dBATCH -dNOPAUSE -sDEVICE=pdfwrite -g4960x7016 -r600 \ -dCompatibilityLevel=1.2 @@ -40,6 +40,16 @@ SRCFILES?=* dvi: $(TARGET).dvi +clean: + rm -f $(CLFILES) + @$(MAKE) -C fig $@ + +epstoeps epstopdf fixbb pdftopng256 pdftotiffg4: + @$(MAKE) -C fig $@ + +html: $(TARGET).dvi + $(L2H) $(L2HFLAGS) $(TARGET).tex + pdf: $(TARGET).pdf pdf_2on1: $(TARGET)_2on1.pdf @@ -52,11 +62,11 @@ ps_2on1: $(TARGET)_2on1.ps ps_book: $(TARGET)_book.ps -html: $(TARGET).dvi - $(L2H) $(L2HFLAGS) $(TARGET).tex - rtf: $(TARGET).rtf +srcdist: clean + $(ARCH) $(ARCHFLAGS) $(ARCHIVE) $(SRCFILES) + $(TARGET).dvi: $(TARGET).tex $(LATEX) $(TEXFLAGS) $^ @if [ -f $(BIBFILE) ]; then \ @@ -97,39 +107,16 @@ $(TARGET)_book.pdf: $(TARGET)_book.ps $(TARGET).rtf: $(TARGET).dvi $(L2RTF) $(L2RTFFLAGS) -a $(TARGET).aux -b $(TARGET).bbl $(TARGET).tex -epstoeps: - @$(MAKE) -C fig $@ - -epstopdf: - @$(MAKE) -C fig $@ - -fixbb: - @$(MAKE) -C fig $@ - -srcdist: - @$(MAKE) clean - $(ARCH) $(ARCHFLAGS) $(ARCHIVE) $(SRCFILES) - -clean: - rm -f $(CLFILES) - rm -f html/*.* - @$(MAKE) -C fig $@ - help: - @echo "Targets:" - @echo " dvi (default) build DVI" - @echo " clean remove output files" - @echo " epstoeps optimize EPS files" - @echo " epstopdf convert figures to PDF" - @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" - @echo " ps_2on1 build PS with two A5 pages on one A4 ordered by number" - @echo " ps_book build PS booklet (two A5 on A4)" - @echo " rtf convert to RTF" - @echo " srcdist build source distribution $(ARCHIVE)" - + @echo " dvi (default) build DVI" + @echo " clean remove output files" + @echo " help show description of targets" + @echo " html convert DVI 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" + @echo " ps_2on1 build PS with two A5 pages on one A4 ordered by number" + @echo " ps_book build PS booklet (two A5 on A4)" + @echo " rtf convert DVI to RTF" + @echo " srcdist build source distribution" 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 e41d5571ea8..2d71e7acf4b 100644 --- a/Master/texmf-dist/doc/latex/disser/include/latex.nmk.cmd +++ b/Master/texmf-dist/doc/latex/disser/include/latex.nmk.cmd @@ -11,43 +11,38 @@ if "%CMDEXTVERSION%"=="" ( if "%target%"=="" set target=thesis set bibfile=thesis.bib -if "%arch%"=="" set arch=7z -if "%bibtex%"=="" set bibtex=bibtex8 -if "%epstool%"=="" set epstool=epstool -if "%epstopdf%"=="" set epstopdf=epstopdf -if "%ps2pdf%"=="" set ps2pdf=gswin32c -if "%dvips%"=="" set dvips=dvips -if "%l2h%"=="" set l2h=latex2html +if "%arch%"=="" set arch=7z +if "%bibtex%"=="" set bibtex=bibtex8 +if "%dvips%"=="" set dvips=dvips +if "%l2h%"=="" set l2h=latex2html +if "%l2rtf%"=="" set l2rtf=latex2rtf +if "%latex%"=="" set latex=latex if "%mktexlsr%"=="" set mktexlsr=mktexlsr if "%pdflatex%"=="" set pdflatex=pdflatex -if "%psbook%"=="" set psbook=psbook -if "%psnup%"=="" set psnup=psnup -if "%latex%"=="" set latex=latex -if "%l2rtf%"=="" set l2rtf=latex2rtf - -if "%archext%"=="" set archext=zip -if "%archflags%"=="" set archflags=a -t%archext% -if "%archive%"=="" set archive=%target%.%archext% +if "%ps2pdf%"=="" set ps2pdf=gswin32c +if "%psbook%"=="" set psbook=psbook +if "%psnup%"=="" set psnup=psnup +if "%archext%"=="" set archext=zip +if "%archflags%"=="" set archflags=a -t%archext% +if "%archive%"=="" set archive=%target%.%archext% if "%bibtexflags%"=="" set bibtexflags=-H -c cp1251 - if "%l2hflags%"=="" ( set l2hflags=-dir html -iso_language RU.RU -split 3 -short_index ^ - -numbered_footnotes -no_footnode -white -antialias ^ - -html_version 4.0 + -numbered_footnotes -white -antialias -html_version 4.0 ) +if "%l2rtfflags%"=="" set l2rtfflags=-F -M12 -i russian if "%ps2pdfflags%"=="" ( set ps2pdfflags=-dBATCH -dNOPAUSE -sDEVICE=pdfwrite -g4960x7016 -r600 ^ -dCompatibilityLevel#1.2 ) -if "%psnupflags%"=="" set psnupflags=-2 -pA4 +if "%psnupflags%"=="" set psnupflags=-2 -pA4 if "%pdflatexflags%"=="" set pdflatexflags=--shell-escape -if "%latexflags%"=="" set latexflags=-src-specials +if "%latexflags%"=="" set latexflags=-src-specials set clext=*.bbl *.bak *.aux *.blg *.out *.toc *.log *.dvi *.tmp *.pdf *.ps -if "%clfiles%"=="" set clfiles= %clext% %target%.%arc% +if "%clfiles%"=="" set clfiles=%clext% %archive% if "%srcfiles%"=="" set srcfiles=* -if "%suffix%"=="" set suffix=~ rem end of configuration @@ -55,12 +50,12 @@ if "%1"=="" ( :default call :dvi goto :eof -) - -:start -if "%1"=="" goto :eof - -if "%1"=="dvi" ( +) else if "%1"=="clean" ( +:clean + del /s %clfiles% 2> nul + if exist %target%.%arctype% del %target%.%arctype% +goto :eof +) else if "%1"=="dvi" ( :dvi %latex% %latexflags% %target%.tex if exist %bibfile% ( @@ -71,9 +66,12 @@ if "%1"=="dvi" ( ) %latex% %latexflags% %target%.tex goto :eof -) - -if "%1"=="pdf" ( +) else if "%1"=="html" ( +:html + if not exist %target%.dvi call :dvi + %l2h% %l2hflags% %target%.tex +goto :eof +) else if "%1"=="pdf" ( :pdf %pdflatex% %pdflatexflags% %target%.tex if exist %bibfile% ( @@ -84,110 +82,76 @@ if "%1"=="pdf" ( ) %pdflatex% %pdflatexflags% %target%.tex goto :eof -) - -if "%1"=="pdf_2on1" ( +) else if "%1"=="pdf_2on1" ( :pdf2on1 if not exist %target%_2on1.ps call :ps2on1 %ps2pdf% %ps2pdfflags% -sOutputFile=%target%_2on1.pdf ^ -c save pop -f %target%_2on1.ps goto :eof -) - -if "%1"=="pdf_booklet" ( -:pdfbooklet - if not exist %target%_booklet.ps call :psbooklet +) else if "%1"=="pdf_book" ( +:pdfbook + if not exist %target%_book.ps call :psbook %ps2pdf% %ps2pdfflags% -sOutputFile=%target%_booklet.pdf ^ - -c save pop -f %target%_booklet.ps + -c save pop -f %target%_book.ps goto :eof -) - -if "%1"=="ps" ( +) else if "%1"=="ps" ( :ps if not exist %target%.dvi call :dvi %dvips% -o %target%.ps %target%.dvi goto :eof -) - -if "%1"=="ps_2on1" ( +) else if "%1"=="ps_2on1" ( :ps2on1 if not exist %target%.ps call :ps %psnup% %psnupflags% %target%.ps > %target%_2on1.ps goto :eof -) - -if "%1"=="ps_booklet" ( -:psbooklet +) else if "%1"=="ps_book" ( +:psbook if not exist %target%.ps call :ps - %psbook% %target%.ps | %psnup% -2 > %target%_booklet.ps -goto :eof -) - -if "%1"=="html" ( -:html - if not exist %target%.dvi call :dvi - %l2h% %l2hflags% %target%.tex + %psbook% %target%.ps | %psnup% -2 > %target%_book.ps goto :eof -) - -if "%1"=="rtf" ( +) else if "%1"=="rtf" ( call :dvi - %l2rtf% -F -M12 -i russian -a %target%.aux -b %target%.bbl %target%.tex -) - -if "%1"=="clean" ( -:clean - del /s %clfiles% 2> nul - if exist %target%.%arctype% del %target%.%arctype% -goto :eof -) - -if "%1"=="srcdist" ( + %l2rtf% %l2rtfflags% -a %target%.aux -b %target%.bbl %target%.tex +) else if "%1"=="srcdist" ( :srcdist call :clean %arch% %archflags% %archive% %srcfiles% goto :eof -) - -if "%1"=="epstoeps" ( +) else if "%1"=="epstoeps" ( :epstoeps cd fig & call nomake.cmd epstoeps & cd .. goto :eof -) - -if "%1"=="epstopdf" ( +) else if "%1"=="epstopdf" ( :epstopdf cd fig & call nomake.cmd epstopdf & cd .. goto :eof -) - -if "%1"=="fixbb" ( +) else if "%1"=="fixbb" ( :fixbb cd fig & call nomake.cmd fixbb & cd .. goto :eof -) - -if "%1"=="help" ( +) else if "%1"=="pdftopng256" ( +:pdftopng256 + cd fig & call nomake.cmd pdftopng256 & cd .. +goto :eof +) else if "%1"=="pdftotiffg4" ( +:pdftotiffg4 + cd fig & call nomake.cmd pdftotiffg4 & cd .. +goto :eof +) else if "%1"=="help" ( :help - echo Targets: echo dvi ^(default^) build DVI echo clean remove output files - echo epstoeps optimize EPS files - echo epstopdf convert figures to PDF - echo fixbb fix BoundingBox of EPS files - echo help show list of targets - echo html convert to HTML + echo help show description of targets + echo html convert DVI 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 echo ps_2on1 build PS with two A5 pages on A4 ordered by number echo ps_book build PS booklet ^(two A5 on A4^) - echo rtf convert to RTF - echo srcdist build source distribution %archive% + echo rtf convert DVI to RTF + echo srcdist build source distribution goto :eof +) else ( + echo Don't know how to make %1 ) - -if "%1" neq "" echo Don't know how to make %1 -:end -shift & goto :start |