diff --git a/phd-thesis.org b/phd-thesis.org index 7c92d4e..ec54c6b 100644 --- a/phd-thesis.org +++ b/phd-thesis.org @@ -1,5 +1,7 @@ #+TITLE: PhD Thesis :DRAWER: +#+SUBTITLE: My subtitle + #+LANGUAGE: en #+EMAIL: dehaeze.thomas@gmail.com #+AUTHOR: Dehaeze Thomas @@ -10,6 +12,11 @@ #+LATEX_CLASS: scrreprt #+LATEX_CLASS_OPTIONS: [a4paper, twoside, 11pt, onecolumn, bibliography=totoc, openright] +#+OPTIONS: num:t toc:nil ':t *:t -:t ::t <:nil author:t date:t tags:nil todo:nil |:t H:2 title:nil + +#+SELECT_TAGS: export +#+EXCLUDE_TAGS: noexport + #+BIND: org-latex-bib-compiler "biber" #+LATEX_HEADER: \input{config.tex} @@ -29,19 +36,24 @@ ("\\paragraph{%s}" . "\\paragraph*{%s}") )) - (defun delete-org-comments (backend) - (loop for comment in (reverse (org-element-map (org-element-parse-buffer) - 'comment 'identity)) - do - (setf (buffer-substring (org-element-property :begin comment) - (org-element-property :end comment)) - ""))) +;; Remove all org comments in the output LaTeX file +(defun delete-org-comments (backend) + (loop for comment in (reverse (org-element-map (org-element-parse-buffer) + 'comment 'identity)) + do + (setf (buffer-substring (org-element-property :begin comment) + (org-element-property :end comment)) + ""))) - ;; add to export hook - (add-hook 'org-export-before-processing-hook 'delete-org-comments) +;; Add to export hook +(add-hook 'org-export-before-processing-hook 'delete-org-comments) - (setq org-latex-packages-alist nil) - (setq org-latex-default-packages-alist nil) +;; Use no package by default +(setq org-latex-packages-alist nil) +(setq org-latex-default-packages-alist nil) + +(setq org-latex-subtitle-separate t) +(setq org-latex-subtitle-format "\\subtitle{%s}") #+END_SRC * Glossary and Acronyms - Tables :ignore: @@ -60,7 +72,41 @@ | nass | NASS | Nano Active Stabilization System | | lti | LTI | Linear Time Invariant | -* TODO Title Page :noexport: +* Title Page :ignore: + +#+begin_export latex + +\begin{titlepage} + \vspace*{5cm} + \makeatletter + \begin{center} + \begin{Huge} + \@title + \end{Huge}\\[0.1cm] + % + \begin{Large} + \@subtitle + \end{Large}\\ + % + \emph{by}\\ + \@author + % + \vfill + A document submitted in partial fulfillment + of the requirements for the degree of\\ + \emph{Technical Report}\\ + at\\ + \textsc{Miskatonic University} + \end{center} + \makeatother +\end{titlepage} + +\newpage +\null +\thispagestyle{empty} +\newpage +#+end_export + * Test ** Test - acronyms ac:mimo, ac:siso, and again ac:mimo diff --git a/phd-thesis.pdf b/phd-thesis.pdf index 90b3708..223cbbd 100644 Binary files a/phd-thesis.pdf and b/phd-thesis.pdf differ diff --git a/phd-thesis.tex b/phd-thesis.tex index 675fef4..3b7efb5 100644 --- a/phd-thesis.tex +++ b/phd-thesis.tex @@ -1,4 +1,4 @@ -% Created 2021-05-19 mer. 19:03 +% Created 2021-05-19 mer. 19:21 % Intended LaTeX compiler: pdflatex \documentclass[a4paper, twoside, 11pt, onecolumn, bibliography=totoc, openright]{scrreprt} @@ -13,6 +13,7 @@ \author{Dehaeze Thomas} \date{2021-05-19} \title{PhD Thesis} +\subtitle{My subtitle} \hypersetup{ pdfauthor={Dehaeze Thomas}, pdftitle={PhD Thesis}, @@ -22,14 +23,42 @@ pdflang={English}} \begin{document} -\maketitle -\tableofcontents +\begin{titlepage} + \vspace*{5cm} + \makeatletter + \begin{center} + \begin{Huge} + \@title + \end{Huge}\\[0.1cm] + % + \begin{Large} + \@subtitle + \end{Large}\\ + % + \emph{by}\\ + \@author + % + \vfill + A document submitted in partial fulfillment + of the requirements for the degree of\\ + \emph{Technical Report}\\ + at\\ + \textsc{Miskatonic University} + \end{center} + \makeatother +\end{titlepage} + +\newpage +\null +\thispagestyle{empty} +\newpage + \chapter{Test} -\label{sec:org602fc31} +\label{sec:orgb0179e0} \section{Test} -\label{sec:orgd35e72e} +\label{sec:orgf015fe9} \begin{itemize} \item acronyms \gls{mimo}, \gls{siso}, and again \gls{mimo} \item glossary terms \gls{ka}, \gls{phi}. @@ -37,22 +66,26 @@ \end{itemize} \section{blabla} -\label{sec:org129c06d} -\subsection{sdlfk} -\label{sec:org2e5c262} +\label{sec:org4462f41} +\begin{enumerate} +\item sdlfk +\label{sec:orgf9a136f} -\subsection{sldkjf asdf} -\label{sec:org7d13a1b} -\subsubsection{lksdfjasd} -\label{sec:orgb2b4c9c} -\subsubsection{lksdfjasd} -\label{sec:org9d3084d} -\subsubsection{lksdfjasd} -\label{sec:orgf226c03} +\item sldkjf asdf +\label{sec:org2a91bfd} +\begin{enumerate} +\item lksdfjasd +\label{sec:org3333491} +\item lksdfjasd +\label{sec:org7f482e6} +\item lksdfjasd +\label{sec:org71575d5} +\end{enumerate} +\end{enumerate} \section{blabla} -\label{sec:orgb398faf} +\label{sec:orgf06bbc2} \chapter{Test} -\label{sec:org5dc49e4} +\label{sec:orgb301b29} \printbibliography diff --git a/setup.org b/setup.org index f44ae28..ef3b4e8 100644 --- a/setup.org +++ b/setup.org @@ -58,6 +58,12 @@ Do not modify itemize/enumerate environments by default \usepackage{multirow} #+end_src +I reduce the size of tables so that longer tables can still fit into an A4 (reduce font and make sans serif). +#+begin_src latex +\usepackage{floatrow} +\floatsetup[table]{font={footnotesize,sf},capposition=top} +#+end_src + * Units #+begin_src latex \usepackage[binary-units=true]{siunitx} @@ -222,6 +228,12 @@ Also reduce the font-size \renewcommand*{\bibfont}{\footnotesize} #+end_src +* Table of Contents +#+begin_src latex +\usepackage{minitoc} +\usepackage[nottoc]{tocbibind} +#+end_src + * Fonts https://tug.org/FontCatalogue/quattrocento/ @@ -290,14 +302,6 @@ Fine tuning of spacing between paragraphs. See [[https://tex.stackexchange.com/q \setparsizes{0em}{0.1\baselineskip plus .1\baselineskip}{1em plus 1fil} #+end_src -* Table improvements - -I reduce the size of tables so that longer tables can still fit into an A4 (reduce font and make sans serif). -#+begin_src latex -\usepackage{floatrow} -\floatsetup[table]{font={footnotesize,sf},capposition=top} -#+end_src - * Possible Equation improvements Make the equation numbers follow the chapter, not the whole thesis.