thesis: makefile and subfiles update

This commit is contained in:
Eric Teunis de Boone 2022-08-24 17:24:49 +02:00
parent faf07ef6fd
commit 660aa56a17
10 changed files with 93 additions and 19 deletions

View File

@ -1,21 +1,35 @@
# vim:ft=make
-include config.mk
.PHONY: all clean dist-clean
.PHONY: all clean dist-clean chapters chapters-clean
### Variables
MAIN_SRC ?= main.tex
TEXENGINE ?= latexmk --pdf
CHAPTERS_DIR = ./chapters
MAIN_TARGET = $(patsubst %.tex,%.pdf,$(MAIN_SRC))
CHAPTER_SRC = $(wildcard $(CHAPTERS_DIR)/*.tex)
CHAPTER_TARGET = $(patsubst %.tex,%.pdf,$(CHAPTER_SRC))
CHAPTER_TARGET_NAMES = $(notdir $(CHAPTER_TARGET))
### Targets
all: $(MAIN_TARGET)
dist: all clean
$(MAIN_TARGET): $(MAIN_SRC)
$(TEXENGINE) $^
chapters: $(CHAPTER_TARGET)
make -C "chapters" all
chapters-clean:
make -C "chapters" clean
$(CHAPTER_TARGET) $(CHAPTER_TARGET_NAMES) : %.pdf:
#$(TEXENGINE) -cd $^
make -C "chapters" $(patsubst $(CHAPTERS_DIR),,$@)
$(MAIN_TARGET): $(MAIN_SRC) $(CHAPTER_SRC)
$(TEXENGINE) $<
dist-clean: clean
@rm -vf *.pdf *.eps *.dvi *.ps

View File

@ -0,0 +1,20 @@
# vim:ft=make
.PHONY: all clean dist-clean
TEXENGINE ?= latexmk --pdf
SOURCES = $(wildcard *.tex)
OBJECTS = $(patsubst %.tex,%.pdf,$(SOURCES))
all: $(OBJECTS)
dist: all clean
$(OBJECTS): %.pdf: %.tex
$(TEXENGINE) $^
dist-clean: clean
@rm -vf *.pdf *.eps *.dvi *.ps
clean:
@rm -vf *.dat *.log *.out *.aux *.nav *.snm *.toc *.vrb *~ *.fls *.fdb_latexmk *-blx.bib *.bbl *.blg *.run.xml

View File

@ -1,4 +1,10 @@
\documentclass[../main.tex]{subfiles}
\documentclass[../thesis.tex]{subfiles}
\graphicspath{
{.}
{../../figures/}
{../../../figures/}
}
\begin{document}
\chapter{Airshowers}

View File

@ -1,4 +1,5 @@
\documentclass[../main.tex]{subfiles}
\documentclass[../thesis.tex]{subfiles}
\graphicspath{{.}{../../../figures/}}
\begin{document}
\chapter{Disciplining by Beacon}

View File

@ -1,4 +1,10 @@
\documentclass[../main.tex]{subfiles}
\documentclass[../thesis.tex]{subfiles}
\graphicspath{
{.}
{../../figures/}
{../../../figures/}
}
\begin{document}
\chapter{Conclusion}

View File

@ -1,4 +1,10 @@
\documentclass[../main.tex]{subfiles}
\documentclass[../thesis.tex]{subfiles}
\graphicspath{
{.}
{../../figures/}
{../../../figures/}
}
\begin{document}
\chapter{GRAND characterisation}

View File

@ -1,4 +1,10 @@
\documentclass[../main.tex]{subfiles}
\documentclass[../thesis.tex]{subfiles}
\graphicspath{
{.}
{../../figures/}
{../../../figures/}
}
\begin{document}
\chapter{Introduction}

View File

@ -1,4 +1,10 @@
\documentclass[../main.tex]{subfiles}
\documentclass[../thesis.tex]{subfiles}
\graphicspath{
{.}
{../../figures/}
{../../../figures/}
}
\begin{document}
\chapter{Timing Mechanisms}

View File

@ -1,4 +1,10 @@
\documentclass[../main.tex]{subfiles}
\documentclass[../thesis.tex]{subfiles}
\graphicspath{
{.}
{../../figures/}
{../../../figures/}
}
% Thesis titling
\def\thesistitle{Enhancing Timing Accuracy \\[0.3cm] in Air Shower Radio Detectors}

View File

@ -16,8 +16,12 @@
% Graphics
\usepackage{xcolor}
\usepackage{graphicx}
\graphicspath{{.}{../../figures/}}
\usepackage{epstopdf}
\graphicspath{
{.}
{../../figures/}
{../../../figures/}
}
\usepackage{caption}
\usepackage{subcaption}
@ -65,19 +69,18 @@
% Math
\newcommand{\dif}[1]{\mathop{}\!\mathrm{d} #1}
\newcommand{\pdif}[1]{\mathop{}\!\mathrm{\partial} #1}
\newcommand{\dbyd}[2]{\ensuremath{\mathrm{d}{#1}/\mathrm{d}{#2}}\xspace}
\newcommand{\dbyd}[2]{\ensuremath{\mathrm{d}{#1}/\mathrm{d}{#2}}}
% Units
\newcommand{\eV}{\text{e\kern-0.15exV}\xspace}
\newcommand{\MeV}{\text{M\eV}\xspace}
\newcommand{\GeV}{\text{G\eV}\xspace}
\newcommand{\TeV}{\text{T\kern-0.1ex\eV}\xspace}
\newcommand{\eV}{\text{e\kern-0.15exV}}
\newcommand{\MeV}{\text{M\eV}}
\newcommand{\GeV}{\text{G\eV}}
\newcommand{\TeV}{\text{T\kern-0.1ex\eV}}
\newcommand{\ns}{\text{ns}\xspace}
\newcommand{\MHz}{\text{MHz}\xspace}
\newcommand{\ns}{\text{ns}}
\newcommand{\MHz}{\text{MHz}}
%%%%%%%%%%%%%%%%%%% Start Document %%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%