thesis: Fix notebook include headers

This commit is contained in:
jaseg 2020-04-02 15:38:08 +02:00
parent e104e5d2dc
commit 9168801dad
3 changed files with 14 additions and 6 deletions

View file

@ -11,6 +11,7 @@ MAKEFLAGS += --no-builtin-rules
all: safety_reset.pdf
safety_reset.pdf: resources/grid_freq_estimation.pdf
safety_reset.pdf: resources/gps_clock_jitter_analysis.pdf
%.pdf: %.tex %.bib
pdflatex -shell-escape $<

View file

@ -9,5 +9,5 @@
((*- endblock header -*))
((* block maketitle *))((* endblock maketitle *))
((* block maketitle *))\vspace*{3cm}((* endblock maketitle *))

View file

@ -60,6 +60,15 @@
\usepackage{fancyhdr}
\fancyhf{}
\fancyfoot[C]{\thepage}
\newcommand{\includenotebook}[2]{
\fancyhead[C]{Included Jupyter notebook: #1}
\includepdf[pages=1,
pagecommand={\thispagestyle{fancy}\section{#1}\label{#2_notebook}}
]{resources/#2.pdf}
\includepdf[pages=2-,
pagecommand={\thispagestyle{fancy}}
]{resources/#2.pdf}
}
\begin{document}
@ -995,7 +1004,7 @@ interface and its good tolerance of system resets due to unexpected power loss.
Captured raw waveform data is processed in the Jupyter Lab environment\cite{kluyver01} and grid frequency estimates are
extracted as described in sec. \ref{frequency_estimation} using the \textcite{gasior01} technique. Appendix
\ref{grid_freq_est_notebook} contains the Jupyter notebook we used for frequency measurement.
\ref{grid_freq_estimation_notebook} contains the Jupyter notebook we used for frequency measurement.
% FIXME comparison against reference measurements?
@ -1096,10 +1105,8 @@ correctly configure than it is to simply use separate hardware and secure the in
\chapter{Transcripts of Jupyter notebooks used in this thesis}
\section{Grid frequency estimation}
\label{grid_freq_est_notebook}
\fancyhead[C]{Included Jupyter notebook: Grid frequency estimation}
\includepdf[pages=-, pagecommand=\thispagestyle{fancy}]{resources/grid_freq_estimation.pdf}
\includenotebook{Grid frequency estimation}{grid_freq_estimation}
\includenotebook{Frequency sensor clock stability analysis}{gps_clock_jitter_analysis}
\chapter{Demonstrator schematics and code}