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 # vim:ft=make
-include config.mk -include config.mk
.PHONY: all clean dist-clean .PHONY: all clean dist-clean chapters chapters-clean
### Variables ### Variables
MAIN_SRC ?= main.tex MAIN_SRC ?= main.tex
TEXENGINE ?= latexmk --pdf TEXENGINE ?= latexmk --pdf
CHAPTERS_DIR = ./chapters
MAIN_TARGET = $(patsubst %.tex,%.pdf,$(MAIN_SRC)) 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 ### Targets
all: $(MAIN_TARGET) all: $(MAIN_TARGET)
dist: all clean dist: all clean
$(MAIN_TARGET): $(MAIN_SRC) chapters: $(CHAPTER_TARGET)
$(TEXENGINE) $^ 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 dist-clean: clean
@rm -vf *.pdf *.eps *.dvi *.ps @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} \begin{document}
\chapter{Airshowers} \chapter{Airshowers}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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