Add custom title page

This commit is contained in:
Thomas Dehaeze 2021-05-19 19:21:46 +02:00
parent 4dd255a90e
commit 96194b8a30
4 changed files with 121 additions and 38 deletions

View File

@ -1,5 +1,7 @@
#+TITLE: PhD Thesis #+TITLE: PhD Thesis
:DRAWER: :DRAWER:
#+SUBTITLE: My subtitle
#+LANGUAGE: en #+LANGUAGE: en
#+EMAIL: dehaeze.thomas@gmail.com #+EMAIL: dehaeze.thomas@gmail.com
#+AUTHOR: Dehaeze Thomas #+AUTHOR: Dehaeze Thomas
@ -10,6 +12,11 @@
#+LATEX_CLASS: scrreprt #+LATEX_CLASS: scrreprt
#+LATEX_CLASS_OPTIONS: [a4paper, twoside, 11pt, onecolumn, bibliography=totoc, openright] #+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" #+BIND: org-latex-bib-compiler "biber"
#+LATEX_HEADER: \input{config.tex} #+LATEX_HEADER: \input{config.tex}
@ -29,19 +36,24 @@
("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}")
)) ))
(defun delete-org-comments (backend) ;; Remove all org comments in the output LaTeX file
(loop for comment in (reverse (org-element-map (org-element-parse-buffer) (defun delete-org-comments (backend)
'comment 'identity)) (loop for comment in (reverse (org-element-map (org-element-parse-buffer)
do 'comment 'identity))
(setf (buffer-substring (org-element-property :begin comment) do
(org-element-property :end comment)) (setf (buffer-substring (org-element-property :begin comment)
""))) (org-element-property :end comment))
"")))
;; add to export hook ;; Add to export hook
(add-hook 'org-export-before-processing-hook 'delete-org-comments) (add-hook 'org-export-before-processing-hook 'delete-org-comments)
(setq org-latex-packages-alist nil) ;; Use no package by default
(setq org-latex-default-packages-alist nil) (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 #+END_SRC
* Glossary and Acronyms - Tables :ignore: * Glossary and Acronyms - Tables :ignore:
@ -60,7 +72,41 @@
| nass | NASS | Nano Active Stabilization System | | nass | NASS | Nano Active Stabilization System |
| lti | LTI | Linear Time Invariant | | 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
** Test ** Test
- acronyms ac:mimo, ac:siso, and again ac:mimo - acronyms ac:mimo, ac:siso, and again ac:mimo

Binary file not shown.

View File

@ -1,4 +1,4 @@
% Created 2021-05-19 mer. 19:03 % Created 2021-05-19 mer. 19:21
% Intended LaTeX compiler: pdflatex % Intended LaTeX compiler: pdflatex
\documentclass[a4paper, twoside, 11pt, onecolumn, bibliography=totoc, openright]{scrreprt} \documentclass[a4paper, twoside, 11pt, onecolumn, bibliography=totoc, openright]{scrreprt}
@ -13,6 +13,7 @@
\author{Dehaeze Thomas} \author{Dehaeze Thomas}
\date{2021-05-19} \date{2021-05-19}
\title{PhD Thesis} \title{PhD Thesis}
\subtitle{My subtitle}
\hypersetup{ \hypersetup{
pdfauthor={Dehaeze Thomas}, pdfauthor={Dehaeze Thomas},
pdftitle={PhD Thesis}, pdftitle={PhD Thesis},
@ -22,14 +23,42 @@
pdflang={English}} pdflang={English}}
\begin{document} \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} \chapter{Test}
\label{sec:org602fc31} \label{sec:orgb0179e0}
\section{Test} \section{Test}
\label{sec:orgd35e72e} \label{sec:orgf015fe9}
\begin{itemize} \begin{itemize}
\item acronyms \gls{mimo}, \gls{siso}, and again \gls{mimo} \item acronyms \gls{mimo}, \gls{siso}, and again \gls{mimo}
\item glossary terms \gls{ka}, \gls{phi}. \item glossary terms \gls{ka}, \gls{phi}.
@ -37,22 +66,26 @@
\end{itemize} \end{itemize}
\section{blabla} \section{blabla}
\label{sec:org129c06d} \label{sec:org4462f41}
\subsection{sdlfk} \begin{enumerate}
\label{sec:org2e5c262} \item sdlfk
\label{sec:orgf9a136f}
\subsection{sldkjf asdf} \item sldkjf asdf
\label{sec:org7d13a1b} \label{sec:org2a91bfd}
\subsubsection{lksdfjasd} \begin{enumerate}
\label{sec:orgb2b4c9c} \item lksdfjasd
\subsubsection{lksdfjasd} \label{sec:org3333491}
\label{sec:org9d3084d} \item lksdfjasd
\subsubsection{lksdfjasd} \label{sec:org7f482e6}
\label{sec:orgf226c03} \item lksdfjasd
\label{sec:org71575d5}
\end{enumerate}
\end{enumerate}
\section{blabla} \section{blabla}
\label{sec:orgb398faf} \label{sec:orgf06bbc2}
\chapter{Test} \chapter{Test}
\label{sec:org5dc49e4} \label{sec:orgb301b29}
\printbibliography \printbibliography

View File

@ -58,6 +58,12 @@ Do not modify itemize/enumerate environments by default
\usepackage{multirow} \usepackage{multirow}
#+end_src #+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 * Units
#+begin_src latex #+begin_src latex
\usepackage[binary-units=true]{siunitx} \usepackage[binary-units=true]{siunitx}
@ -222,6 +228,12 @@ Also reduce the font-size
\renewcommand*{\bibfont}{\footnotesize} \renewcommand*{\bibfont}{\footnotesize}
#+end_src #+end_src
* Table of Contents
#+begin_src latex
\usepackage{minitoc}
\usepackage[nottoc]{tocbibind}
#+end_src
* Fonts * Fonts
https://tug.org/FontCatalogue/quattrocento/ 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} \setparsizes{0em}{0.1\baselineskip plus .1\baselineskip}{1em plus 1fil}
#+end_src #+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 * Possible Equation improvements
Make the equation numbers follow the chapter, not the whole thesis. Make the equation numbers follow the chapter, not the whole thesis.