From 9168801dad97805c4ff12816e847d102b0a9d5e0 Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 2 Apr 2020 15:38:08 +0200 Subject: thesis: Fix notebook include headers --- ma/Makefile | 1 + ma/resources/nbexport.tplx | 2 +- ma/safety_reset.tex | 17 ++++++++++++----- 3 files changed, 14 insertions(+), 6 deletions(-) (limited to 'ma') diff --git a/ma/Makefile b/ma/Makefile index c3d61b7..99bf808 100644 --- a/ma/Makefile +++ b/ma/Makefile @@ -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 $< diff --git a/ma/resources/nbexport.tplx b/ma/resources/nbexport.tplx index 6346c67..a279827 100644 --- a/ma/resources/nbexport.tplx +++ b/ma/resources/nbexport.tplx @@ -9,5 +9,5 @@ ((*- endblock header -*)) -((* block maketitle *))((* endblock maketitle *)) +((* block maketitle *))\vspace*{3cm}((* endblock maketitle *)) diff --git a/ma/safety_reset.tex b/ma/safety_reset.tex index 868c6e3..485d131 100644 --- a/ma/safety_reset.tex +++ b/ma/safety_reset.tex @@ -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} -- cgit