Skip to content

Commit

Permalink
Initial import.
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxu committed Mar 1, 2017
0 parents commit 1b0049f
Show file tree
Hide file tree
Showing 27 changed files with 1,024 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# LaTeX stuff
build/
*.aux
*.log

# Emacs junk
auto/
ltxpng/

# Python stuff
*.py[cod]

# Temps
*.*~
*.bak
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
TEXFLAGS = -bibtex -pdf -interaction=nonstopmode -use-make
BUILD_DIR = build

.PHONY: all clean $(BUILD_DIR)/thesis.pdf

all: $(BUILD_DIR)/thesis.pdf

$(BUILD_DIR)/thesis.pdf: thesis.tex $(BUILD_DIR)
latexmk $(TEXFLAGS) -jobname=$(@:.pdf=) -f $<

$(BUILD_DIR):
mkdir -p $(BUILD_DIR)

clean:
latexmk $(TEXFLAGS) -jobname=$(BUILD_DIR)/ -C thesis.tex
13 changes: 13 additions & 0 deletions bibliography.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@article{Maxwell1865,
doi = {10.1098/rstl.1865.0008},
url = {https://doi.org/10.1098%2Frstl.1865.0008},
year = 1865,
month = {jan},
publisher = {The Royal Society},
volume = {155},
number = {0},
pages = {459--512},
author = {J. C. Maxwell},
title = {A Dynamical Theory of the Electromagnetic Field},
journal = {Philosophical Transactions of the Royal Society of London}
}
Binary file added chapters/a-chapter/figure.pdf
Binary file not shown.
89 changes: 89 additions & 0 deletions chapters/a-chapter/figure.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions chapters/a-chapter/main.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
\chapter{A Chapter}
\label{ch:a-chapter}

\dictum[James C. Maxwell]{%
The true logic of this world is in the calculus of probabilities. }%
\vskip 1em

\Citet{Maxwell1865} derived some very useful equations for electromagnetic
fields:
\begin{align}
\nabla \cdot \vec{D} = \rho \\
\nabla \cdot \vec{B} = 0 \\
\nabla \times \vec{E} = -\frac{\partial \vec{B}}{\partial t} \\
\nabla \times \vec{H} = \vec{j} + \frac{\partial \vec{D}}{\partial t}
\end{align}

The energy--momentum relation, \cref{eq:energy-momentum}, is one of \emph{my}
important results:
\begin{align}
E^2 = m^2 c^4 + (p c)^2 \label{eq:energy-momentum}
\end{align}

Write units like this: \u{5}{\micro\meter}.

\begin{figure}
\caption{A lovely face.}
\label{fig:some-figure}
\includegraphics{\dir/figure.pdf}
\end{figure}
4 changes: 4 additions & 0 deletions chapters/appendix/main.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
\chapter{Appendix}
\label{ch:appendix}

Here be dragons.
8 changes: 8 additions & 0 deletions chapters/conclusion_outlook/main.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
\chapter{Summary}
\label{ch:summary}

\dictum[Vincent van Gogh]{%
I dream my painting and I paint my dream. }
\vskip 1em

Summary here.
13 changes: 13 additions & 0 deletions chapters/introduction/main.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
\chapter{Introduction}
\label{ch:introduction}

\dictum[Immanuel Kant]{%
Sapere aude! Habe Mut, dich deines eigenen Verstandes zu bedienen! }%
\vskip 1em

\begin{otherlanguage}{ngerman}
Die ältesten Bestimmungen der wahren Grösse der Moleküle hat die kinetische
Theorie der Gase ermöglicht, während die an Flüssigkeiten beobachteten
physikalischen Phänomene bis jetzt zur Bestimmung der Molekülgrössen nicht
gedient haben. \dots
\end{otherlanguage}
34 changes: 34 additions & 0 deletions frontbackmatter/abstract.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
%*******************************************************
% Abstract
%*******************************************************
%\renewcommand{\abstractname}{Abstract}
\pdfbookmark[1]{Abstract}{Abstract}
\begingroup
\let\clearpage\relax
\let\cleardoublepage\relax
\let\cleardoublepage\relax

\chapter*{Abstract}

English abstract here.

\endgroup

\cleardoublepage%

\begingroup
\let\clearpage\relax
\let\cleardoublepage\relax
\let\cleardoublepage\relax

\begin{otherlanguage}{ngerman}
\pdfbookmark[1]{Zusammenfassung}{Zusammenfassung}
\chapter*{Zusammenfassung}

Deutsche Zusammenfassung hier.

\end{otherlanguage}

\endgroup

\vfill
24 changes: 24 additions & 0 deletions frontbackmatter/acknowledgments.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
%*******************************************************
% Acknowledgments
%*******************************************************
\pdfbookmark[1]{Acknowledgements}{acknowledgements}

\bigskip

\begingroup
\let\clearpage\relax
\let\cleardoublepage\relax
\let\cleardoublepage\relax
\chapter*{Acknowledgements}

\def\thanks#1{%
\begingroup
\leftskip1em
\noindent #1
\par
\endgroup
}

I would like to thank \dots

\endgroup
15 changes: 15 additions & 0 deletions frontbackmatter/bibliography.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
%********************************************************************
% Bibliography
%*******************************************************
% work-around to have small caps also here in the headline
\manualmark%
\markboth{\spacedlowsmallcaps{\bibname}}{\spacedlowsmallcaps{\bibname}} % work-around to have small caps also
%\phantomsection
\refstepcounter{dummy}
\addtocontents{toc}{\protect\vspace{\beforebibskip}} % to have the bib a bit from the rest in the toc
\addcontentsline{toc}{chapter}{\tocEntry{\bibname}}
\label{app:bibliography}
{%
\emergencystretch=1em%
\printbibliography%
}
86 changes: 86 additions & 0 deletions frontbackmatter/contents.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
%*******************************************************
% Table of Contents
%*******************************************************
%\phantomsection
\refstepcounter{dummy}
\pdfbookmark[1]{\contentsname}{tableofcontents}
\setcounter{tocdepth}{2} % <-- 2 includes up to subsections in the ToC
\setcounter{secnumdepth}{3} % <-- 3 numbers up to subsubsections
\manualmark%
\markboth{\spacedlowsmallcaps{\contentsname}}{\spacedlowsmallcaps{\contentsname}}
\tableofcontents
\automark[section]{chapter}
\renewcommand{\chaptermark}[1]{\markboth{\spacedlowsmallcaps{#1}}{\spacedlowsmallcaps{#1}}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\enspace\spacedlowsmallcaps{#1}}}
%*******************************************************
% List of Figures and of the Tables
%*******************************************************
\clearpage

\begingroup
\let\clearpage\relax
\let\cleardoublepage\relax
\let\cleardoublepage\relax
%*******************************************************
% List of Figures
%*******************************************************
%\phantomsection
% \refstepcounter{dummy}
%\addcontentsline{toc}{chapter}{\listfigurename}
% \pdfbookmark[1]{\listfigurename}{lof}
% \listoffigures

% \vspace{8ex}

%*******************************************************
% List of Tables
%*******************************************************
%\phantomsection
% \refstepcounter{dummy}
%\addcontentsline{toc}{chapter}{\listtablename}
% \pdfbookmark[1]{\listtablename}{lot}
% \listoftables

% \vspace{8ex}
% \newpage

%*******************************************************
% List of Listings
%*******************************************************
%\phantomsection
%\refstepcounter{dummy}
%\addcontentsline{toc}{chapter}{\lstlistlistingname}
%\pdfbookmark[1]{\lstlistlistingname}{lol}
%\lstlistoflistings%

%\vspace{8ex}

% Notation
\refstepcounter{dummy}
\pdfbookmark[1]{Notation}{notation}
\markboth{\spacedlowsmallcaps{Notation}}{\spacedlowsmallcaps{Notation}}
\chapter*{Notation}

\section*{Frequently used symbols}%
\vskip -2em
\begin{tabularx}{\textwidth}{lX}
%\toprule%
%\tableheadline{Symbol} & \tableheadline{Meaning} \\
%\midrule%
$E$ & energy \\
$m$ & rest mass \\
$p$ & impulse \\
%\bottomrule
\end{tabularx}

\section*{Physical constants}
\sisetup{separate-uncertainty=false}
\vskip -2em
\begin{tabularx}{\textwidth}{lX}
$c$ & speed of light in vacuum, $c=\u{299792458}{\metre\per\second}$ \\
\end{tabularx}
\begin{flushright}
(CODATA 2014~\cite{codata})
\end{flushright}
\sisetup{separate-uncertainty=true}
\endgroup
Loading

0 comments on commit 1b0049f

Please sign in to comment.