diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/proposal/lib')
4 files changed, 292 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/proposal/lib/Makefile.ctan b/Master/texmf-dist/source/latex/proposal/lib/Makefile.ctan new file mode 100644 index 00000000000..d24d524aa6a --- /dev/null +++ b/Master/texmf-dist/source/latex/proposal/lib/Makefile.ctan @@ -0,0 +1,88 @@ +################################################################ +# make a zip for CTAN submission including the TeX directory structure. +# +# The overall procedure is to run make in this directory $(HERE) and then +# export it to a temporary directory $(EXPORTED) without all the generated +# files. On this directory we run "make ctanext" (see below) which makes a +# CTAN-compliant directory structure, and zips it up to the file +# <package>.ctan.zip which can be submitted to the CTAN maintainers. +# +# Note that part of the CTAN submission is a zip file with a TDS-compliant +# directory struture, which is generated by running "make tdsext" (see below) +# on $(EXPORTED). +# +# Note furthermore, that this Makefile only automates the top-level mechanics +# of the CTAN zip files, ... It relies on the Variables set in the regular Makefiles +# and in particular on their targets "ltds", "lctan", "filedate", and "checksum". +################################################################ + +HERE = $(shell pwd) +GITREPOS = $(HERE) +REPOSNAME = LaTeX-proposal +TMP = /tmp +#TDSCOLL ?= $(shell basename $$PWD) +TDSCOLL = proposal +EXPORTED = $(TMP)/$(TDSCOLL).exp + +TDS.dir = $(TDSCOLL).tds +TDSDIR = $(TMP)/$(TDS.dir) +TDS.zip = $(TDS.dir).zip +TDSZIP = $(TMP)/$(TDS.zip) + +CTANDIR = $(TMP)/$(TDSCOLL) +CTAN.zip = $(TDSCOLL).ctan.zip +CTANZIP = $(TMP)/$(CTAN.zip) + +MAKE = make + +# this target makes the file CTANZIP by creating and populating the directory +# CTANDIR and zipping it. To be current, we first make all, and update +# the filedates and the checksums. To get rid of all the junk we commit and +# export a clean copy EXPORTED, on which we run the target ctanexp below, +# which generates a directory CTANDIR, which we zip and move into place. +ctan: all filedate checksum + git commit -am'draining just to be sure for CTAN distribution' --allow-empty + rm -Rf $(EXPORTED) + @echo "exporting a clean copy to $(EXPORTED)" + cd $(TMP);rm -Rf $(REPOSNAME);git clone $(GITREPOS);mv $(REPOSNAME) $(EXPORTED) + rm -Rf $(EXPORTED)/.git + find $(EXPORTED) -name ".gitignore" -delete + cd $(EXPORTED);$(MAKE) -$(MAKEFLAGS) ctanext + @echo "zipping the result to $(TDSCOLL).ctan.zip" + cd $(TMP);zip -r $(CTANZIP) $(TDS.zip) $(TDSCOLL);cp $(CTANZIP) $(HERE) + @echo "cleaning up" + rm -Rf $(EXPORTED) $(CTANDIR) $(CTANZIP) $(TDSZIP) + @echo "disabling checksums again for further development" + $(MAKE) -$(MAKEFLAGS) disablechecksum + +# this target is run on EXPORTED. It first makes the target tdsext below, +# and then copies all necessary stuff into CTANDIR. +ctanext: tdsext + @echo "making a CTAN compliant archive in $(CTANDIR)" + rm -Rf $(CTANDIR) $(CTANZIP) + mkdir -p $(CTANDIR) + @echo " copying material from $(EXPORTED) to $(CTANDIR)" + @for d in $(DTXDIRS); do (cd $$d && $(MAKE) -$(MAKEFLAGS) lctan) done + @for d in $(SRCDIRS) $(DOCDIRS); do (cp -R $$d $(CTANDIR)) done; + @for d in $(SRCFILES); do (cp -p $$d $(CTANDIR)) done; + cp $(TDS.README) $(CTANDIR)/README + +# this target makes the file TDSZIP by creating and populating the directory +# TDSDIR and zipping it. +tdsext: + @echo "making a TDS compliant archive" + rm -Rf $(TDSDIR) $(TDSZIP) + @echo " enabling checksums" + $(MAKE) -$(MAKEFLAGS) enablechecksum + @echo " copying LaTeX Sources to $(TDSDIR)" + @for d in $(DTXDIRS); do (cd $$d && $(MAKE) -$(MAKEFLAGS) ltds) done + @echo " copying binary dir to $(TDSDIR)" + @for d in $(SRCDIRS); do (cp -R $$d $(TDSDIR)/source/latex/$(TDSCOLL)) done; + @for d in $(SRCFILES); do (cp -R $$d $(TDSDIR)/source/latex/$(TDSCOLL)) done; + @echo " copying documentation to $(TDSDIR)" + @for d in $(DOCDIRS); do (cp -R $$d $(TDSDIR)/doc/latex/$(TDSCOLL)) done; + @for d in $(TDS.doc); do (cp -R $$d $(TDSDIR)/doc/latex/$(TDSCOLL)) done; + @echo "zipping the result to $(TDSCOLL).tds.zip" + cd $(TDSDIR);zip -r -q $(TDSZIP) . + @echo "and removing the temporary directory $(TDSDIR)" + rm -Rf $(TDSDIR) diff --git a/Master/texmf-dist/source/latex/proposal/lib/Makefile.in b/Master/texmf-dist/source/latex/proposal/lib/Makefile.in new file mode 100644 index 00000000000..57da62fad1b --- /dev/null +++ b/Master/texmf-dist/source/latex/proposal/lib/Makefile.in @@ -0,0 +1,90 @@ +all: package doc +package: $(DTX.sty) $(DTX.cls) +doc: $(DTX.pdf) $(EXAMPLE.pdf) + +$(DTX.sty) $(DTX.cls): $(INS) $(DTX) + $(PDFLATEX) $(INS) + + +$(EXAMPLE.pdf): %.pdf: %.tex $(DTX.sty) $(DTX.cls) $(EXAMPLE.deps) + $(PDFLATEX) $(firstword $<) + @if (grep 'Please (re)run Biber' $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\ + then biber $(patsubst %.dtx, %, $(firstword $<));fi + @if (grep 'Please (re)run BibTeX' $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\ + then bibtex $(patsubst %.dtx, %, $(firstword $<));fi + @if (grep "Writing index file" $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\ + then makeindex\ + -o $(patsubst %.dtx, %.ind, $(firstword $<))\ + $(patsubst %.dtx, %.idx, $(firstword $<)); fi + @if (grep Rerun $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\ + then $(PDFLATEX) $(firstword $<); fi + @if (grep Rerun $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\ + then $(PDFLATEX) $(firstword $<); fi + +%.ind: + touch $@ + +$(DTX.pdf): %.pdf: %.dtx $(DTX.sty) $(DTX.cls) + $(PDFLATEX) $(firstword $<) + @if (grep 'Please (re)run Biber' $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\ + then biber $(patsubst %.dtx, %, $(firstword $<));fi + @if (grep "Writing glossary file" $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\ + then makeindex\ + -o $(patsubst %.dtx, %.gls, $(firstword $<))\ + $(patsubst %.dtx, %.glo, $(firstword $<)); fi + @if (grep "Writing index file" $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\ + then makeindex\ + -o $(patsubst %.dtx, %.ind, $(firstword $<))\ + $(patsubst %.dtx, %.idx, $(firstword $<)); fi + @if (grep Rerun $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\ + then $(PDFLATEX) $(firstword $<); fi + @if (grep Rerun $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\ + then $(PDFLATEX) $(firstword $<); fi + +clean: + rm -f *~ *.log *.ilg *.out *.glo *.idx *.ilg *.blg + +distclean: clean + rm -f *.aux *.ind *.gls *.ps *.dvi *.toc *.thm + rm -Rf auto + +filedate: + @for d in $(DTX); do \ + $(FILEDATEPROG) $$d ; \ + done + +checksum: + @for d in $(DTX); do \ + $(CHECKSUMPROG) $$d --update ; \ + done + +enablechecksum: + @for d in $(DTX); do \ + $(CHECKSUMPROG) $$d --enable ; \ + done + +disablechecksum: + @for d in $(DTX); do \ + $(CHECKSUMPROG) $$d --disable ; \ + done + +# copy stuff around for making the TeX Directory Structure +ltds: + rm -Rf $(TDSDIR.doc);mkdir -p $(TDSDIR.doc) + rm -Rf $(TDSDIR.tex);mkdir -p $(TDSDIR.tex) + rm -Rf $(TDSDIR.src);mkdir -p $(TDSDIR.src) + cp $(DTX.src) $(TDS.src) $(TDSDIR.src) + cp $(DTX.sty) $(DTX.cls) $(TDS.tex) $(TDSDIR.tex) + cp README $(DTX.pdf) $(EXAMPLE.tex) $(EXAMPLE.pdf) $(TDS.doc) $(TDSDIR.doc) + @for d in $(TDS.exdirs); do cp -R $$d $(TDSDIR.doc); done + +lctan: + mkdir -p $(CTANDIR) + cp $(DTX.src) $(DTX.sty) $(DTX.cls) $(TDS.src) $(TDS.tex) $(CTANDIR) + cp README $(DTX.pdf) $(EXAMPLE.tex) $(EXAMPLE.pdf) $(TDS.doc) $(CTANDIR) + @for d in $(TDS.exdirs); do cp -R $$d $(CTANDIR); done + +# sometimes (when bibLaTeX changes) we have to rerun biber; use make -B biber +biber: + pdflatex $(DTX.base:%=%.dtx) + biber $(DTX.base) diff --git a/Master/texmf-dist/source/latex/proposal/lib/Makefile.vars b/Master/texmf-dist/source/latex/proposal/lib/Makefile.vars new file mode 100644 index 00000000000..6155fee0909 --- /dev/null +++ b/Master/texmf-dist/source/latex/proposal/lib/Makefile.vars @@ -0,0 +1,38 @@ +# DTX.sty.base and DTX.cls.base are set in the including Makefiles +DTX.base ?= $(DTX.sty.base) $(DTX.cls.base) +DTX.src = $(DTX) $(DTX:%.dtx=%.ins) +INS = $(DTX:%.dtx=%.ins) + +DTX.sty = $(DTX.sty.base:%=%.sty) +DTX.cls = $(DTX.cls.base:%=%.cls) +DTX.pdf = $(DTX:%.dtx=%.pdf) + +# The examples +EXAMPLE.pdf = $(EXAMPLE.base:%=%.pdf) +EXAMPLE.tex = $(EXAMPLE.base:%=%.tex) +EXAMPLE.deps = $(filter-out $(EXAMPLE.base:%=%.tex), $(shell ls *.tex)) + +# The TeX Directory Structure (see http://www.tug.org/tds/tds.html) +TDSDIR = /tmp/$(TDSCOLL).tds +TDSDIR.tex = $(TDSDIR)/tex/latex/$(TDSCOLL)/$(PACKAGE) +TDSDIR.doc = $(TDSDIR)/doc/latex/$(TDSCOLL)/$(PACKAGE) +TDSDIR.src = $(TDSDIR)/source/latex/$(TDSCOLL)/$(PACKAGE) + +# make a zip for CTAN submission +CTANDIR = /tmp/$(TDSCOLL)/$(CTANPREFIX)$(PACKAGE) + +# the dependencies +SOURCES = $(DTX.sty) $(BIB) +TEXINPUTS := .:$(PREFIX)//: +BIBINPUTS := .:$(PREFIX)//: +BSTINPUTS := .:$(PREFIX)//: + +# we want to quiet down pdflatex +PDFLATEX = pdflatex -interaction batchmode -file-line-error + +# we set the package date for 'make filedate' to today +BINDIR = $(PREFIX)/../bin +PACKAGEDATE ?= $(shell date "+%Y/%m/%d") +FILEDATEPROG = PERL5LIB=$(BINDIR) $(BINDIR)/filedate +CHECKSUMPROG = PERL5LIB=$(BINDIR) $(BINDIR)/checksum + diff --git a/Master/texmf-dist/source/latex/proposal/lib/proposal.bib b/Master/texmf-dist/source/latex/proposal/lib/proposal.bib new file mode 100644 index 00000000000..8970c41baa9 --- /dev/null +++ b/Master/texmf-dist/source/latex/proposal/lib/proposal.bib @@ -0,0 +1,76 @@ +@STRING{stexyear = 2016} +@techreport{Kohlhase:ed:ctan,crossref={Kohlhase:ed:base}, + institution = {Comprehensive {\TeX} Archive Network (CTAN)}, + CHANGEurl = {http://www.ctan.org/get/macros/latex/contrib/ed/ed.pdf}, + pubs = {mkohlhase,projects/stex}} +@techreport{Kohlhase:ed:svn,crossref={Kohlhase:ed:base}, + url = {https://svn.kwarc.info/repos/kwarc/doc/macros/forCTAN/ed/ed.pdf}} +@techreport{Kohlhase:ed:base, + author = {Michael Kohlhase}, + title = {Editorial Notes for {\LaTeX}}, + type = {Self-documenting {\LaTeX} package}, + year = stexyear} + +@online{gitinfo2:on, + title = {gitinfo2.sty}, + subtitle = {A package for accessing metadata from the git dvcs}, + author = {Brent Longborough}, + urldate = {2014-10-26}, + url = {http://mirrors.ctan.org/macros/latex/contrib/gitinfo2/gitinfo2.pdf}} + +@techreport{Kohlhase:workaddress:ctan,crossref={Kohlhase:workaddress:base}, + institution = {Comprehensive {\TeX} Archive Network (CTAN)}, + url = {http://mirror.ctan.org/macros/latex/contrib/stex/sty/workaddress/workaddress.pdf}, + pubs = {mkohlhase,projects/stex}} +@techreport{Kohlhase:workaddress:svn,crossref={Kohlhase:workaddress:base}, + url = {https://github.com/KWARC/sTeX/raw/master/sty/stex/workaddress/workaddress.pdf}} +@techreport{Kohlhase:workaddress:base, + author = {Michael Kohlhase}, + title = {{\texttt{workaddress.sty}}: An Infrastructure for marking up {Dublin Core} Metadata in {\LaTeX} documents}, + type = {Self-documenting {\LaTeX} package}, + year = stexyear} + +@techreport{Kohlhase:pdrp:ctan,crossref={Kohlhase:pdrp:base}, + institution = {Comprehensive {\TeX} Archive Network (CTAN)}, + url = {http://mirror.ctan.org/macros/latex/contrib/proposal/dfg/dfgproposal.pdf}, + pubs = {mkohlhase,projects/stex}} +@techreport{Kohlhase:pdrp:svn,crossref={Kohlhase:pdrp:base}, + url = {http://github.com/KWARC/LaTeX-proposal/dfg/dfgproposal.pdf}} +@techreport{Kohlhase:pdrp:base, + author = {Michael Kohlhase}, + title = {Preparing DFG Proposals and Reports in {\LaTeX} with {\texttt{dfgproposal.cls}}}, + type = {Self-documenting {\LaTeX} package}, + year = stexyear} + +@techreport{Kohlhase:pplp:ctan,crossref={Kohlhase:pplp:base}, + institution = {Comprehensive {\TeX} Archive Network (CTAN)}, + url = {http://mirror.ctan.org/macros/latex/contrib/proposal/base/proposal.pdf}, + pubs = {mkohlhase,projects/stex}} +@techreport{Kohlhase:pplp:svn,crossref={Kohlhase:pplp:base}, + url = {http://github.com/KWARC/LaTeX-proposal/base/proposal.pdf}} +@techreport{Kohlhase:pplp:base, + author = {Michael Kohlhase}, + title = {Preparing Proposals in {\LaTeX} with {\tt{proposal.cls}}}, + type = {Self-documenting {\LaTeX} package}, + year = stexyear} + +@Manual{DFG:102e, + title = {Research Grants, Guidelines and Proposal Preparation Instructions}, + organization = {German Research Foundation (DFG)}, + url = {http://www.dfg.de/download/programme/emmy_noether_programm/antragstellung/1_02_e/1_02e.pdf}, + month = oct, + year = 2010} + +@Manual{DFG:2012e, + title = {Guidelines for the Use of Funds International Research Grants with Guidelines for Final Reports}, + organization = {German Research Foundation (DFG)}, + url = {http://www.dfg.de/download/programme/sachbeihilfe/antragstellung/2_012_e/2_012e.pdf}, + month = jul, + year = 2010} + +@Manual{DFG:201, + title = {Verwendungsrichtlinien, Sachbeihilfen mit Leitfaden f{\"ur}r Abschlussberichte und Regeln guter wissenschaftlicher Praxis}, + organization = {German Research Foundation (DFG)}, + url = {http://www.dfg.de/download/programme/sachbeihilfe/abschlussberichte/2_01/2_01.pdf}, + month = jun, + year = 2010} |