diff options
author | Karl Berry <karl@freefriends.org> | 2007-12-02 14:58:50 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-12-02 14:58:50 +0000 |
commit | a06badd5ddd56caafe23bc9b1c80a2cb4cd5eec7 (patch) | |
tree | d2f4be3792761c70377ac41c078ccd50b1c8be73 /Master/texmf-dist/doc/latex/disser/include | |
parent | c5ef0710987f248dea9df928126632d5820a6426 (diff) |
disser update (30nov07)
git-svn-id: svn://tug.org/texlive/trunk@5676 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/disser/include')
4 files changed, 361 insertions, 0 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 new file mode 100644 index 00000000000..75089a8711c --- /dev/null +++ b/Master/texmf-dist/doc/latex/disser/include/latex.fig.mk @@ -0,0 +1,41 @@ +# +# Makefile for EPS figures +# Author: Stanislav Kruchinin <stanislav.kruchinin@gmail.com> +# + +EPSTOOL=epstool +EPSTOPDF=epstopdf + +ETFLAGS=--quiet --copy --bbox + +FIGCLFILES=*.pdf +SUFFIX=~ + +# end of configuration + +help: + @echo Targets: + @echo " clean - clean PDF files" + @echo " epstopdf - convert all figures to PDF" + @echo " fixbb - fix BoundingBox" + @echo " help - (default) show help" + +clean: + rm -f $(FIGCLFILES) + +epstopdf: $(patsubst %.eps, %.pdf, $(wildcard *.eps)) + +fixbb: *.eps + @for f in *.eps ; \ + do \ + echo -n "fixbb: $$f..." ;\ + $(EPSTOOL) $(ETFLAGS) $$f $$f~ ;\ + mv $$f~ $$f ;\ + echo "done" ;\ + done + +%.pdf: %.eps + @echo -n "epstopdf: $<..." + @$(EPSTOPDF) "$<" + @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 new file mode 100644 index 00000000000..f6f164b74a1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/disser/include/latex.fig.nmk.cmd @@ -0,0 +1,70 @@ +@echo off + +rem nomake script for EPS figures +rem Author: Stanislav Kruchinin <stanislav.kruchinin@gmail.com> + +if "%CMDEXTVERSION%"=="" ( + echo Error: This script requires command interpreter from Windows 2000 or above. + goto :eof +) + +set epstool=epstool +set epstopdf=epstopdf + +set etflags=--quiet --copy --bbox + +set figclfiles=*.pdf +set suffix=~ + +rem end of configuration + +if "%1"=="" ( +:default + call :help +goto :eof +) + +:start +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 +goto :eof +) + +if "%1"=="clean" ( +:clean + del /s %figclfiles% 2> nul +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 +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 +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 new file mode 100644 index 00000000000..1546c18f332 --- /dev/null +++ b/Master/texmf-dist/doc/latex/disser/include/latex.mk @@ -0,0 +1,101 @@ +# +# Makefile for LaTeX projects +# Author: Stanislav Kruchinin <stanislav.kruchinin@gmail.com> +# + +TARGET=thesis + +ARCH=7z +BIBTEX=bibtex8 +DVIPS=dvips +FIND=/bin/find +L2H=latex2html +PDFTEX=pdflatex +PS2PDF=gs +PSNUP=psnup +TEX=latex + +ARCHEXT=zip +ARCHFLAGS=a -t$(ARCHEXT) +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 +PS2PDFFLAGS=-dBATCH -dNOPAUSE -sDEVICE=pdfwrite -g4960x7016 -r600 \ + -dCompatibilityLevel=1.2 -sOutputFile=$(TARGET)_2on1.pdf -c save pop \ + -f $(TARGET)_2on1.ps +PSNUPFLAGS=-2 -pA4 +TEXFLAGS=-src-specials + +CLEXT=*.aux *.toc *.idx *.ind *.ilg *.log *.out *.lof *.lot *.lol \ + *.bbl *.blg *.bak *.dvi *.ps *.pdf +CLFILES=$(CLEXT) $(ARCHIVE) +SRCFILES=* + +# end of configuration + +dvi: $(TARGET).dvi + +pdf: $(TARGET).pdf + +pdf_2on1: $(TARGET)_2on1.pdf + +ps: $(TARGET).ps + +ps_2on1: $(TARGET)_2on1.ps + +html: $(TARGET).dvi + @$(L2H) $(L2HFLAGS) $(TARGET).tex + +$(TARGET).dvi: $(TARGET).tex + @$(TEX) $(TEXFLAGS) $^ + @$(BIBTEX) $(BIBTEXFLAGS) $(TARGET) ;\ + @$(TEX) $(TEXFLAGS) $^ + @$(TEX) $(TEXFLAGS) $^ + +$(TARGET).ps: $(TARGET).dvi + @$(DVIPS) -o $@ $^ + +$(TARGET)_2on1.ps: $(TARGET).ps + @$(PSNUP) $(PSNUPFLAGS) $^ > $@ + +$(TARGET).pdf: $(TARGET).tex + @$(MAKE) -C fig epstopdf + @$(PDFTEX) $^ + @$(BIBTEX) $(BIBTEXFLAGS) $(TARGET) + @$(PDFTEX) $^ + @$(PDFTEX) $^ + +$(TARGET)_2on1.pdf: $(TARGET)_2on1.ps + @$(PS2PDF) $^ $@ + +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 ouptut files" + @echo " epstopdf - convert all figures to PDF" + @echo " fixbb - fix BoundingBox" + @echo " help - show help" + @echo " html - build HTML" + @echo " pdf - build PDF" + @echo " pdf_2on1 - build PDF with 2 pages on one landscape-oriented A4" + @echo " ps - build PS" + @echo " ps_2on1 - build PS with 2 pages on one landscape-oriented A4" + @echo " srcdist - build source distribution $(ARCHIVE)" + diff --git a/Master/texmf-dist/doc/latex/disser/include/latex.nmk.cmd b/Master/texmf-dist/doc/latex/disser/include/latex.nmk.cmd new file mode 100644 index 00000000000..2cdc9f56b82 --- /dev/null +++ b/Master/texmf-dist/doc/latex/disser/include/latex.nmk.cmd @@ -0,0 +1,149 @@ +@echo off + +rem nomake script for LaTeX projects +rem Author: Stanislav Kruchinin <stanislav.kruchinin@gmail.com> + +if "%CMDEXTVERSION%"=="" ( + echo Error: This script requires command interpreter from Windows 2000 or above. + goto :eof +) + +if "%texmf%"=="" set texmf=%programfiles%\miktex-2.6 + +set target=thesis + +set arch=7z +set bibtex=bibtex8 +set epstool=epstool +set epstopdf=epstopdf +set ps2pdf=gswin32c +set dvips=dvips +set l2h=latex2html +set mktexlsr=mktexlsr +set pdftex=pdflatex +set psnup=psnup +set tex=latex + +set archext=zip +set archflags=a -t%archext% +set archive=%target%.%archext% +set bibtexflags=-H -c cp1251 +set l2hflags=-dir html -iso_language RU.RU -split 3 -short_index ^ + -numbered_footnotes -no_footnode -white -antialias ^ + -html_version 4.0 +set ps2pdfflags=-dBATCH -dNOPAUSE -sDEVICE=pdfwrite -g4960x7016 -r600 ^ + -dCompatibilityLevel#1.2 -sOutputFile=%target%_2on1.pdf -c save pop ^ + -f %target%_2on1.ps +set psnupflags=-2 -pA4 +set texflags=-src-specials -terminal=oem + +set clext=*.bbl *.bak *.aux *.blg *.out *.toc *.log *.dvi *.tmp *.pdf *.ps +set clfiles= %clext% %target%.%arc% +set srcfiles=* +set suffix=~ + +rem end of configuration + +if "%1"=="" ( +:default + call :dvi +goto :eof +) + +:start +if "%1"=="" goto :eof + +if "%1"=="dvi" ( +:dvi + %tex% %texflags% %target%.tex + %bibtex% %bibtexflags% %target% + %tex% %texflags% %target%.tex + %tex% %texflags% %target%.tex +goto :eof +) + +if "%1"=="pdf" ( +:pdf + call :epstopdf + %pdftex% %texflags% %target%.tex + %bibtex% %bibtexflags% %target% + %pdftex% %texflags% %target%.tex + %pdftex% %texflags% %target%.tex +goto :eof +) + +if "%1"=="pdf_2on1" ( +:pdf2on1 + if not exist %target%.ps call :ps2on1 + %ps2pdf% %ps2pdfflags% 2 > nul 2>&1 +goto :eof +) + +if "%1"=="ps" ( +:ps + if not exist %target%.dvi call :dvi + %dvips% -o %target%.ps %target%.dvi +goto :eof +) + +if "%1"=="ps_2on1" ( +:ps2on1 + if not exist %target%.ps call :ps + %psnup% %psnupflags% %target%.ps > %target%_2on1.ps +goto :eof +) + +if "%1"=="html" ( +:html + if not exist %target%.dvi call :dvi + %l2h% %l2hflags% %target%.tex +goto :eof +) + +if "%1"=="clean" ( +:clean + del /s %clfiles% 2> nul + if exist %target%.%arctype% del %target%.%arctype% +goto :eof +) + +if "%1"=="srcdist" ( +:srcdist + call :clean + %arch% %archflags% %archive% %srcfiles% +goto :eof +) + +if "%1"=="epstopdf" ( +:epstopdf + cd fig & call nomake.cmd epstopdf & cd .. +goto :eof +) + +if "%1"=="fixbb" ( +:fixbb + cd fig & call nomake.cmd fixbb & cd .. +goto :eof +) + +if "%1"=="help" ( +:help + echo Targets: + echo dvi - ^(default^) build DVI + echo clean - remove ouptut files + echo epstopdf - convert all figures to PDF + echo fixbb - fix BoundingBox + echo help - show help + echo html - build HTML + echo pdf - build PDF + echo pdf_2on1 - build PDF with 2 pages on one landscape-oriented A4 + echo ps - build PS + echo ps_2on1 - build PS with 2 pages on one landscape-oriented A4 + echo srcdist - build source distribution %archive% +goto :eof +) + +if "%1" neq "" echo Don't know how to make %1 +:end +shift & goto :start + |