From 68339702fcf94b21ba37cc0a8e745c07aabb6ef0 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Tue, 21 Sep 2021 17:03:34 +0200 Subject: Create thesis with latex template --- doc/thesis/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 doc/thesis/Makefile (limited to 'doc/thesis/Makefile') diff --git a/doc/thesis/Makefile b/doc/thesis/Makefile new file mode 100644 index 0000000..3875fcc --- /dev/null +++ b/doc/thesis/Makefile @@ -0,0 +1,23 @@ +TEX := pdflatex +TEXARGS := -halt-on-error -interaction=nonstopmode + +SOURCES := Fading.tex + +# Get the main file from the file +MAIN := $(shell sed -ne 's/^.*\!TeX root =\(.*\)$$/\1/ p' $(SOURCES)) +PDF := $(patsubst %.tex, %.pdf, $(MAIN)) + +ifeq ($(strip $(MAIN)),) +MAIN := $(error Failed to identify TeX root, try adding \ + `% !TeX root = ` to your main tex file) +endif + +.PHONY: all +all: $(PDF) + +%.pdf: %.tex $(SOURCES) + $(TEX) $(TEXARGS) $< + +.PHONY: clean +clean: + @rm -vf *.aux *.aue *.lof *.log *.lot *.fls *.out *.toc *.fmt *.fot *.cb *.cb2 .*.lb *.dvi *.xdv *-converted-to.* *.bbl *.bcf *.blg *-blx.aux *-blx.bib *.run.xml *.fdb_latexmk *.synctex *.synctex\(busy\) *.synctex.gz *.synctex.gz\(busy\) *.pdfsync *.alg *.loa acs-*.bib *.thm *.nav *.pre *.snm *.vrb *.soc *.cut *.cpt *.spl *.ent *.lox *.mf *.acn *.acr *.glg *.glo *.gls *.glsdefs *.lzo *.lzs -- cgit v1.2.1 From fff1b3a7fe3fe5e0d1efc19ded62768582533693 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Tue, 21 Sep 2021 18:27:44 +0200 Subject: Adjust template --- doc/thesis/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'doc/thesis/Makefile') diff --git a/doc/thesis/Makefile b/doc/thesis/Makefile index 3875fcc..c0b0b35 100644 --- a/doc/thesis/Makefile +++ b/doc/thesis/Makefile @@ -1,7 +1,7 @@ TEX := pdflatex TEXARGS := -halt-on-error -interaction=nonstopmode -SOURCES := Fading.tex +SOURCES := Fading.tex tex/classicthesis.sty tex/classicthesis-config.tex # Get the main file from the file MAIN := $(shell sed -ne 's/^.*\!TeX root =\(.*\)$$/\1/ p' $(SOURCES)) @@ -18,6 +18,9 @@ all: $(PDF) %.pdf: %.tex $(SOURCES) $(TEX) $(TEXARGS) $< -.PHONY: clean +.PHONY: clean cleanall clean: @rm -vf *.aux *.aue *.lof *.log *.lot *.fls *.out *.toc *.fmt *.fot *.cb *.cb2 .*.lb *.dvi *.xdv *-converted-to.* *.bbl *.bcf *.blg *-blx.aux *-blx.bib *.run.xml *.fdb_latexmk *.synctex *.synctex\(busy\) *.synctex.gz *.synctex.gz\(busy\) *.pdfsync *.alg *.loa acs-*.bib *.thm *.nav *.pre *.snm *.vrb *.soc *.cut *.cpt *.spl *.ent *.lox *.mf *.acn *.acr *.glg *.glo *.gls *.glsdefs *.lzo *.lzs + +cleanall: clean + @rm -vf $(PDF) -- cgit v1.2.1 From 7c35963f286418a7fde2fe53f350ce6f75a020ad Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Tue, 21 Sep 2021 19:11:18 +0200 Subject: Create thesis skeleton --- doc/thesis/Makefile | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'doc/thesis/Makefile') diff --git a/doc/thesis/Makefile b/doc/thesis/Makefile index c0b0b35..66e0388 100644 --- a/doc/thesis/Makefile +++ b/doc/thesis/Makefile @@ -1,7 +1,17 @@ TEX := pdflatex TEXARGS := -halt-on-error -interaction=nonstopmode -SOURCES := Fading.tex tex/classicthesis.sty tex/classicthesis-config.tex +SOURCES := Fading.tex \ + tex/classicthesis.sty \ + tex/classicthesis-config.tex \ + \ + tex/titlepage.tex \ + tex/preamble.tex \ + \ + chapters/introduction.tex \ + chapters/theory.tex \ + chapters/implementation.tex \ + chapters/conclusions.tex # Get the main file from the file MAIN := $(shell sed -ne 's/^.*\!TeX root =\(.*\)$$/\1/ p' $(SOURCES)) @@ -17,10 +27,15 @@ all: $(PDF) %.pdf: %.tex $(SOURCES) $(TEX) $(TEXARGS) $< + # TODO: makeindex and stuff + $(TEX) $(TEXARGS) $< + $(TEX) $(TEXARGS) $< .PHONY: clean cleanall clean: - @rm -vf *.aux *.aue *.lof *.log *.lot *.fls *.out *.toc *.fmt *.fot *.cb *.cb2 .*.lb *.dvi *.xdv *-converted-to.* *.bbl *.bcf *.blg *-blx.aux *-blx.bib *.run.xml *.fdb_latexmk *.synctex *.synctex\(busy\) *.synctex.gz *.synctex.gz\(busy\) *.pdfsync *.alg *.loa acs-*.bib *.thm *.nav *.pre *.snm *.vrb *.soc *.cut *.cpt *.spl *.ent *.lox *.mf *.acn *.acr *.glg *.glo *.gls *.glsdefs *.lzo *.lzs + @rm -vf *.aux *.aue *.lof *.log *.lot *.fls *.out *.toc *.fmt *.fot *.cb *.cb2 .*.lb *.dvi *.xdv *-converted-to.* *.bbl *.bcf *.blg *-blx.aux *-blx.bib *.run.xml *.fdb_latexmk *.synctex *.synctex\(busy\) *.synctex.gz *.synctex.gz\(busy\) *.pdfsync *.alg *.loa acs-*.bib *.thm *.nav *.pre *.snm *.vrb *.soc *.cut *.cpt *.spl *.ent *.lox *.mf *.acn *.acr *.glg *.glo *.gls *.glsdefs *.lzo *.lzs *.lol + @rm -vf tex/*.aux + @rm -vf chapters/*.aux cleanall: clean @rm -vf $(PDF) -- cgit v1.2.1 From c194faf2bab13f0c9c813d6fa726618fe86af25e Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Tue, 21 Sep 2021 21:05:00 +0200 Subject: Add project plan and thesis to workflow --- doc/thesis/Makefile | 1 - 1 file changed, 1 deletion(-) (limited to 'doc/thesis/Makefile') diff --git a/doc/thesis/Makefile b/doc/thesis/Makefile index 66e0388..84d4a45 100644 --- a/doc/thesis/Makefile +++ b/doc/thesis/Makefile @@ -29,7 +29,6 @@ all: $(PDF) $(TEX) $(TEXARGS) $< # TODO: makeindex and stuff $(TEX) $(TEXARGS) $< - $(TEX) $(TEXARGS) $< .PHONY: clean cleanall clean: -- cgit v1.2.1