Import thesis template

This commit is contained in:
2024-04-12 18:46:56 +02:00
parent ea9e6dc1ed
commit 37ddaa2e0c
24 changed files with 2307 additions and 0 deletions

37
Makefile Normal file
View File

@@ -0,0 +1,37 @@
.PHONY: all viewpdf pdf clean
TARGET = main
SOURCE_FILES = $(TARGET).tex $(wildcard */*.tex)
BIB_FILES = $(wildcard biblio/*.bib)
FIGURES = $(wildcard */figures/*)
COMPILE_ALL = ""
# Set the pdf reader according to the operating system
OS = $(shell uname)
ifeq ($(OS), Darwin)
PDF_READER = open
endif
ifeq ($(OS), Linux)
PDF_READER = evince
endif
all: pdf
full: COMPILE_ALL=True
full: all
viewpdf: pdf
$(PDF_READER) $(TARGET).pdf &
pdf: $(TARGET).pdf
$(TARGET).pdf: $(SOURCE_FILES) $(BIB_FILES) $(FIGURES) these-dbl.cls
COMPILE_ALL=$(COMPILE_ALL) pdflatex -interaction=nonstopmode -jobname=$(TARGET) $(SOURCE_FILES)
biber $(TARGET)
COMPILE_ALL=$(COMPILE_ALL) pdflatex -interaction=nonstopmode -jobname=$(TARGET) $(SOURCE_FILES) # For biber
clean:
rm -f $(TARGET).{ps,pdf,bcf,run.xml}
for suffix in dvi aux bbl blg toc ind out brf ilg idx synctex.gz log; do \
find . -type d -name ".git" -prune -o -type f -name "*.$${suffix}" -print -exec rm {} \; ; \
done