#+TITLE: PhD Thesis :DRAWER: #+SUBTITLE: My subtitle #+LANGUAGE: en #+EMAIL: dehaeze.thomas@gmail.com #+AUTHOR: Dehaeze Thomas #+STARTUP: overview #+DATE: {{{time(%Y-%m-%d)}}} #+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} #+LATEX_HEADER_EXTRA: \input{config_extra.tex} :END: * Build :noexport: #+NAME: startblock #+BEGIN_SRC emacs-lisp :results none (add-to-list 'org-latex-classes '("scrreprt" "\\documentclass{scrreprt}" ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") )) ;; 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) ;; 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: #+name: glossary | label | name | description | |-------+-------------------+-----------------------| | ka | \ensuremath{k_a} | Actuator Stiffness in | | phi | \ensuremath{\phi} | A woody bush | #+name: acronyms | Key | Short | Long | |------+-------+----------------------------------| | mimo | MIMO | Multiple-Inputs Multiple-Outputs | | siso | SISO | Single-Input Single-Output | | nass | NASS | Nano Active Stabilization System | | lti | LTI | Linear Time Invariant | * 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 - glossary terms gls:ka, gls:phi. - Bibliography citations: cite:dehaeze21_activ_dampin_rotat_platf_using,dehaeze18_sampl_stabil_for_tomog_exper ** blabla *** sdlfk *** sldkjf asdf **** lksdfjasd **** lksdfjasd **** lksdfjasd ** blabla * Test * Bibliography :ignore: #+latex: \printbibliography * Glossary :ignore: #+latex: \printglossary[type=\acronymtype] #+latex: \printglossary