From 9e55e6de29c39223c10a1d0cd3f53d4bddb4a17f Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Sun, 16 Jul 2023 19:59:23 +0200 Subject: [PATCH] Reorganise the repo to allow extracting the hardcover page --- en/Makefile | 8 ++- en/chap01.tex | 2 +- en/hardcover.tex | 27 ++++++++++ en/header.tex | 106 ++++++++++++++++++++++++++++++++++++ en/thesis.tex | 138 +---------------------------------------------- en/title.tex | 38 +------------ 6 files changed, 142 insertions(+), 177 deletions(-) create mode 100644 en/hardcover.tex create mode 100644 en/header.tex diff --git a/en/Makefile b/en/Makefile index 6c89d78..680448a 100644 --- a/en/Makefile +++ b/en/Makefile @@ -1,6 +1,6 @@ export TEXINPUTS=../tex//: -all: always_build thesis.pdf abstract.pdf verapdf_report.xml +all: always_build thesis.pdf abstract.pdf verapdf_report.xml hardcover.pdf # LaTeX must be run multiple times to get references right thesis.pdf: thesis.tex $(wildcard *.tex) bibliography.bib thesis.xmpdata @@ -14,9 +14,13 @@ abstract.pdf: abstract.tex abstract.xmpdata always_build touch always_build pdflatex $< +hardcover.pdf: hardcover.tex abstract.xmpdata always_build + touch always_build + pdflatex $< + verapdf_report.xml: thesis.pdf abstract.pdf verapdf_profile_UK7987v1c8.xml always_build touch always_build - verapdf --profile verapdf_profile_UK7987v1c8.xml thesis.pdf abstract.pdf > $@ + verapdf --profile verapdf_profile_UK7987v1c8.xml thesis.pdf abstract.pdf > $@ || true ./verapdf_summary.py clean: diff --git a/en/chap01.tex b/en/chap01.tex index dd7bb9e..a80f047 100644 --- a/en/chap01.tex +++ b/en/chap01.tex @@ -80,7 +80,7 @@ Also, we find the interface of Topolograph impractical to use in Firefox 116.0b2 \X{table} -\subsection{Goals of Birdvisu} +\section{Goals of Birdvisu} \begin{itemize} \item\X{TODO} diff --git a/en/hardcover.tex b/en/hardcover.tex new file mode 100644 index 0000000..3b77b09 --- /dev/null +++ b/en/hardcover.tex @@ -0,0 +1,27 @@ +\input{header} +\begin{document} + +\pagestyle{empty} +\hypersetup{pageanchor=false} +\begin{center} + +\large +Charles University + +\medskip + +Faculty of Mathematics and Physics + +\vfill + +{\huge\bf BACHELOR THESIS} + +\vfill + +\hbox to \hsize{\YearSubmitted\hfil \ThesisAuthor} + +\end{center} + +\newpage\openright + +\end{document} diff --git a/en/header.tex b/en/header.tex new file mode 100644 index 0000000..8c99345 --- /dev/null +++ b/en/header.tex @@ -0,0 +1,106 @@ +\documentclass[12pt,a4paper]{report} +\setlength\textwidth{145mm} +\setlength\textheight{247mm} +\setlength\oddsidemargin{15mm} +\setlength\evensidemargin{15mm} +\setlength\topmargin{0mm} +\setlength\headsep{0mm} +\setlength\headheight{0mm} +% \openright makes the following text appear on a right-hand page +\let\openright=\clearpage + +%% Settings for two-sided (duplex) printing +% \documentclass[12pt,a4paper,twoside,openright]{report} +% \setlength\textwidth{145mm} +% \setlength\textheight{247mm} +% \setlength\oddsidemargin{14.2mm} +% \setlength\evensidemargin{0mm} +% \setlength\topmargin{0mm} +% \setlength\headsep{0mm} +% \setlength\headheight{0mm} +% \let\openright=\cleardoublepage + +%% Generate PDF/A-2u +\usepackage[a-2u]{pdfx} + +%% Character encoding: usually latin2, cp1250 or utf8: +\usepackage[utf8]{inputenc} + +%% Prefer Latin Modern fonts +\usepackage{lmodern} + +%% Further useful packages (included in most LaTeX distributions) +\usepackage{amsmath} % extensions for typesetting of math +\usepackage{amsfonts} % math fonts +\usepackage{amsthm} % theorems, definitions, etc. +\usepackage{bbding} % various symbols (squares, asterisks, scissors, ...) +\usepackage{bm} % boldface symbols (\bm) +\usepackage{graphicx} % embedding of pictures +\usepackage{fancyvrb} % improved verbatim environment +\usepackage{natbib} % citation style AUTHOR (YEAR), or AUTHOR [NUMBER] +\usepackage[nottoc]{tocbibind} % makes sure that bibliography and the lists + % of figures/tables are included in the table + % of contents +\usepackage{dcolumn} % improved alignment of table columns +\usepackage{booktabs} % improved horizontal lines in tables +\usepackage{paralist} % improved enumerate and itemize +\usepackage{xcolor} % typesetting in color +\usepackage{csquotes} +\usepackage{subcaption} + +\def\X#1{\textcolor{red}{[#1]}} +\def\XXX#1{\par\smallskip\noindent \textcolor{red}{[#1]}} + +%%% Basic information on the thesis + +% Thesis title in English (exactly as in the formal assignment) +\def\ThesisTitle{Visualizing OSPF topology} + +% Author of the thesis +\def\ThesisAuthor{Pavel Turinský} + +% Year when the thesis is submitted +\def\YearSubmitted{2023} + +% Name of the department or institute, where the work was officially assigned +% (according to the Organizational Structure of MFF UK in English, +% or a full name of a department outside MFF) +\def\Department{Department of Applied Mathematics} + +% Is it a department (katedra), or an institute (ústav)? +\def\DeptType{Department} + +% Thesis supervisor: name, surname and titles +\def\Supervisor{Mgr. Martin Mareš, Ph.D.} + +% Supervisor's department (again according to Organizational structure of MFF) +\def\SupervisorsDepartment{Department of Applied Mathematics} + +% Study programme and specialization +\def\StudyProgramme{Computer Science} +\def\StudyBranch{General Computer Science} + +% An optional dedication: you can thank whomever you wish (your supervisor, +% consultant, a person who lent the software, etc.) +\def\Dedication{% +Dedication. +} + +% Abstract (recommended length around 80-200 words; this is not a copy of your thesis assignment!) +\def\Abstract{% +Abstract. \X{Recommended length around 80--200 words. This is not a~copy of your thesis assignment!} +} + +% 3 to 5 keywords (recommended), each enclosed in curly braces +\def\Keywords{% +{key} {words} \X{usually 3 to~5 key words or phrases} +} + +%% The hyperref package for clickable links in PDF and also for storing +%% metadata to PDF (including the table of contents). +%% Most settings are pre-set by the pdfx package. +\hypersetup{unicode} +\hypersetup{breaklinks=true} + +% Definitions of macros (see description inside) +\input{macros} diff --git a/en/thesis.tex b/en/thesis.tex index 83cf9b3..4ea2319 100644 --- a/en/thesis.tex +++ b/en/thesis.tex @@ -1,119 +1,4 @@ -%%% The main file. It contains definitions of basic parameters and includes all other parts. - -%% Settings for single-side (simplex) printing -% Margins: left 40mm, right 25mm, top and bottom 25mm -% (but beware, LaTeX adds 1in implicitly) -\documentclass[12pt,a4paper]{report} -\setlength\textwidth{145mm} -\setlength\textheight{247mm} -\setlength\oddsidemargin{15mm} -\setlength\evensidemargin{15mm} -\setlength\topmargin{0mm} -\setlength\headsep{0mm} -\setlength\headheight{0mm} -% \openright makes the following text appear on a right-hand page -\let\openright=\clearpage - -%% Settings for two-sided (duplex) printing -% \documentclass[12pt,a4paper,twoside,openright]{report} -% \setlength\textwidth{145mm} -% \setlength\textheight{247mm} -% \setlength\oddsidemargin{14.2mm} -% \setlength\evensidemargin{0mm} -% \setlength\topmargin{0mm} -% \setlength\headsep{0mm} -% \setlength\headheight{0mm} -% \let\openright=\cleardoublepage - -%% Generate PDF/A-2u -\usepackage[a-2u]{pdfx} - -%% Character encoding: usually latin2, cp1250 or utf8: -\usepackage[utf8]{inputenc} - -%% Prefer Latin Modern fonts -\usepackage{lmodern} - -%% Further useful packages (included in most LaTeX distributions) -\usepackage{amsmath} % extensions for typesetting of math -\usepackage{amsfonts} % math fonts -\usepackage{amsthm} % theorems, definitions, etc. -\usepackage{bbding} % various symbols (squares, asterisks, scissors, ...) -\usepackage{bm} % boldface symbols (\bm) -\usepackage{graphicx} % embedding of pictures -\usepackage{fancyvrb} % improved verbatim environment -\usepackage{natbib} % citation style AUTHOR (YEAR), or AUTHOR [NUMBER] -\usepackage[nottoc]{tocbibind} % makes sure that bibliography and the lists - % of figures/tables are included in the table - % of contents -\usepackage{dcolumn} % improved alignment of table columns -\usepackage{booktabs} % improved horizontal lines in tables -\usepackage{paralist} % improved enumerate and itemize -\usepackage{xcolor} % typesetting in color -\usepackage{csquotes} -\usepackage{subcaption} - -%% SPECIMEN -% Parts marked as SPECIMEN are used for building the example PDF. -% When the official template is generated by ./mkdist, all such parts -% are deleted, as well as all calls of \X and \XXX macros. -\def\X#1{\textcolor{red}{[#1]}} -\def\XXX#1{\par\smallskip\noindent \textcolor{red}{[#1]}} -%% NEMICEPS - -%%% Basic information on the thesis - -% Thesis title in English (exactly as in the formal assignment) -\def\ThesisTitle{Visualizing OSPF topology} - -% Author of the thesis -\def\ThesisAuthor{Pavel Turinský} - -% Year when the thesis is submitted -\def\YearSubmitted{2023} - -% Name of the department or institute, where the work was officially assigned -% (according to the Organizational Structure of MFF UK in English, -% or a full name of a department outside MFF) -\def\Department{Department of Applied Mathematics} - -% Is it a department (katedra), or an institute (ústav)? -\def\DeptType{Department} - -% Thesis supervisor: name, surname and titles -\def\Supervisor{Mgr. Martin Mareš, Ph.D.} - -% Supervisor's department (again according to Organizational structure of MFF) -\def\SupervisorsDepartment{Department of Applied Mathematics} - -% Study programme and specialization -\def\StudyProgramme{Computer Science} -\def\StudyBranch{General Computer Science} - -% An optional dedication: you can thank whomever you wish (your supervisor, -% consultant, a person who lent the software, etc.) -\def\Dedication{% -Dedication. -} - -% Abstract (recommended length around 80-200 words; this is not a copy of your thesis assignment!) -\def\Abstract{% -Abstract. \X{Recommended length around 80--200 words. This is not a~copy of your thesis assignment!} -} - -% 3 to 5 keywords (recommended), each enclosed in curly braces -\def\Keywords{% -{key} {words} \X{usually 3 to~5 key words or phrases} -} - -%% The hyperref package for clickable links in PDF and also for storing -%% metadata to PDF (including the table of contents). -%% Most settings are pre-set by the pdfx package. -\hypersetup{unicode} -\hypersetup{breaklinks=true} - -% Definitions of macros (see description inside) -\include{macros} +\input{header} % Title page and various mandatory informational pages \begin{document} @@ -135,31 +20,10 @@ Abstract. \X{Recommended length around 80--200 words. This is not a~copy of your \include{glossary} -%% %%% Figures used in the thesis (consider if this is needed) -%% \listoffigures -%% -%% %%% Tables used in the thesis (consider if this is needed) -%% %%% In mathematical theses, it could be better to move the list of tables to the beginning of the thesis. -%% \listoftables -%% \XXX{In mathematical theses, it could be better to move the list of tables to the beginning of the thesis.} - -%%% Abbreviations used in the thesis, if any, including their explanation -%%% In mathematical theses, it could be better to move the list of abbreviations to the beginning of the thesis. \chapwithtoc{List of Abbreviations} \XXX{In mathematical theses, it could be better to move the list of abbreviations to the beginning of the thesis.} \XXX{TODO} -%%% Attachments to the bachelor thesis, if any. Each attachment must be -%%% referred to at least once from the text of the thesis. Attachments -%%% are numbered. -%%% -%%% The printed version should preferably contain attachments, which can be -%%% read (additional tables and charts, supplementary text, examples of -%%% program output, etc.). The electronic version is more suited for attachments -%%% which will likely be used in an electronic form rather than read (program -%%% source code, data files, interactive charts, etc.). Electronic attachments -%%% should be uploaded to SIS and optionally also included in the thesis on a~CD/DVD. -%%% Allowed file formats are specified in provision of the rector no. 72/2017. \appendix \chapter{Attachments} \XXX{Attachments to the bachelor thesis, if any. Each attachment must be referred to at least once from the text of the thesis. Attachments are numbered.} diff --git a/en/title.tex b/en/title.tex index ee57745..b935fb5 100644 --- a/en/title.tex +++ b/en/title.tex @@ -1,34 +1,4 @@ -%%% Title page of the thesis and other mandatory pages - -%%% SPECIMEN -%%% Inscriptions at the opening page of the hard cover - -\pagestyle{empty} -\hypersetup{pageanchor=false} -\XXX{Opening page of the hard cover. Not a part of the electronic version.} -\begin{center} - -\large -Charles University - -\medskip - -Faculty of Mathematics and Physics - -\vfill - -{\huge\bf BACHELOR THESIS} - -\vfill - -\hbox to \hsize{\YearSubmitted\hfil \ThesisAuthor} - -\end{center} - -\newpage\openright - -%%% NEMICEPS - +\openright %? %%% Title page of the thesis \pagestyle{empty} @@ -67,19 +37,13 @@ Study branch:&\StudyBranch \cr \vfill -% Zde doplňte rok Prague \YearSubmitted \end{center} \newpage -%%% NOPHD -%%% Here should be a bound sheet included -- a signed copy of the "bachelor -%%% thesis assignment". This assignment is NOT a part of the electronic -%%% version of the thesis. DO NOT SCAN. \XXX{Bound into the introductory part must be the form with signed approval of the thesis topic (a photocopy suffices). This is not a~part of the electronic version of the thesis, do not scan!} -%%% PHDNO %%% A page with a solemn declaration to the bachelor thesis