Add custom title page

This commit is contained in:
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
: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