diff --git a/config.tex b/config.tex index ee91947..054e342 100644 --- a/config.tex +++ b/config.tex @@ -1,18 +1,18 @@ -\usepackage[ % use biblatex for bibliography - backend=biber, % use biber backend (bibtex replacement) or bibtex - style=ieee, % bib style - natbib=true, % allow natbib commands - hyperref=true, % activate hyperref support - backref=true, % activate backrefs - isbn=false, % don't show isbn tags - url=false, % don't show url tags - doi=false, % don't show doi tags - urldate=long, % display type for dates - maxnames=3, % - minnames=1, % - maxbibnames=5, % - minbibnames=3, % - maxcitenames=2, % - mincitenames=1 % -]{biblatex} +% Units +\usepackage{siunitx} +% Tables +\usepackage{booktabs} % Also used for glossaries + +% Glossary and Acronyms +\usepackage[ % + acronym, % Separate acronyms and glossary + toc, % appear in ToC + automake, % auto-use the makeglossaries command (requires shell-escape) + nonumberlist, % don't back reference pages + nogroupskip, % don't group by letter + nopostdot % don't add a dot at the end of each element +]{glossaries} +\usepackage[stylemods=longextra]{glossaries-extra} +\setabbreviationstyle[acronym]{long-short} +\setglossarystyle{long-name-desc} diff --git a/config_extra.tex b/config_extra.tex new file mode 100644 index 0000000..4f5d061 --- /dev/null +++ b/config_extra.tex @@ -0,0 +1,21 @@ +% Bibliography +\usepackage[ % use biblatex for bibliography + backend=biber, % use biber backend (bibtex replacement) or bibtex + style=ieee, % bib style + hyperref=true, % activate hyperref support + backref=true, % activate backrefs + isbn=false, % don't show isbn tags + url=false, % don't show url tags + doi=false, % don't show doi tags + urldate=long, % display type for dates + maxnames=3, % + minnames=1, % + maxbibnames=5, % + minbibnames=3, % + maxcitenames=2, % + mincitenames=1 % +]{biblatex} +\addbibresource{ref.bib} + +% Glossary +\makeglossaries{} diff --git a/phd-thesis.org b/phd-thesis.org index ee430d4..589dd26 100644 --- a/phd-thesis.org +++ b/phd-thesis.org @@ -8,22 +8,67 @@ #+DATE: {{{time(%Y-%m-%d)}}} #+LATEX_CLASS: scrreprt +#+LATEX_CLASS_OPTIONS: [a4paper, DIV=14, onecolumn, bibliography=totoc, twoside, openright] + +#+BIND: org-latex-bib-compiler "biber" #+LATEX_HEADER: \input{config.tex} - -#+LATEX_HEADER: \addbibresource{ref.bib} +#+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}" - ("\\section{%s}" . "\\section*{%s}") - ("\\subsection{%s}" . "\\subsection*{%s}") - ("\\subsubsection{%s}" . "\\subsubsection*{%s}") - ("\\paragraph{%s}" . "\\paragraph*{%s}") - ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) - ) +(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}") + )) + + (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) + + (setq org-latex-packages-alist nil) + (setq org-latex-default-packages-alist nil) #+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 | + +* 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 + +* Bibliography :ignore: +#+latex: \printbibliography + +* Glossary :ignore: +#+latex: \printglossary[type=\acronymtype] +#+latex: \printglossary diff --git a/phd-thesis.pdf b/phd-thesis.pdf index bb31ec3..8cffcc0 100644 Binary files a/phd-thesis.pdf and b/phd-thesis.pdf differ diff --git a/phd-thesis.tex b/phd-thesis.tex index c9aa3af..0851561 100644 --- a/phd-thesis.tex +++ b/phd-thesis.tex @@ -1,37 +1,36 @@ -% Created 2019-10-08 mar. 16:02 +% Created 2021-05-19 mer. 17:31 % Intended LaTeX compiler: pdflatex -\documentclass{scrreprt} -\usepackage[utf8]{inputenc} -\usepackage[T1]{fontenc} -\usepackage{graphicx} -\usepackage{grffile} -\usepackage{longtable} -\usepackage{wrapfig} -\usepackage{rotating} -\usepackage[normalem]{ulem} -\usepackage{amsmath} -\usepackage{textcomp} -\usepackage{amssymb} -\usepackage{capt-of} -\usepackage{hyperref} -\usepackage[most]{tcolorbox} -\usepackage{siunitx} +\documentclass[a4paper, DIV=14, onecolumn, bibliography=totoc, twoside, openright]{scrreprt} + \input{config.tex} -\addbibresource{ref.bib} +\newglossaryentry{ka}{name=\ensuremath{k_a},description={{Actuator Stiffness in}}} +\newglossaryentry{phi}{name=\ensuremath{\phi},description={{A woody bush}}} +\newacronym{mimo}{MIMO}{Multiple-Inputs Multiple-Outputs} +\newacronym{siso}{SISO}{Single-Input Single-Output} +\newacronym{nass}{NASS}{Nano Active Stabilization System} +\newacronym{lti}{LTI}{Linear Time Invariant} +\input{config_extra.tex} \author{Dehaeze Thomas} -\date{2019-10-08} +\date{2021-05-19} \title{PhD Thesis} -\hypersetup{ - pdfauthor={Dehaeze Thomas}, - pdftitle={PhD Thesis}, - pdfkeywords={}, - pdfsubject={}, - pdfcreator={Emacs 26.3 (Org mode 9.2.6)}, - pdflang={English}} \begin{document} \maketitle \tableofcontents -\end{document} \ No newline at end of file +\chapter{Test} +\label{sec:org7e1d1fa} +\section{Test} +\label{sec:org71711f0} +\begin{itemize} +\item acronyms \gls{mimo}, \gls{siso}, and again \gls{mimo} +\item glossary terms \gls{ka}, \gls{phi}. +\item Bibliography citations: \cite{dehaeze21_activ_dampin_rotat_platf_using,dehaeze18_sampl_stabil_for_tomog_exper} +\end{itemize} + +\printbibliography + +\printglossary[type=\acronymtype] +\printglossary +\end{document} diff --git a/ref.bib b/ref.bib index e69de29..4a129ce 100644 --- a/ref.bib +++ b/ref.bib @@ -0,0 +1,28 @@ +@article{dehaeze21_activ_dampin_rotat_platf_using, + author = {Thomas Dehaeze and Christophe Collette}, + title = {Active Damping of Rotating Platforms Using Integral Force Feedback}, + journal = {Engineering Research Express}, + year = {2021}, + doi = {10.1088/2631-8695/abe803}, + url = {https://doi.org/10.1088/2631-8695/abe803}, + month = {Feb}, +} + +@inproceedings{dehaeze18_sampl_stabil_for_tomog_exper, + author = {Thomas Dehaeze and M. Magnin Mattenet and Christophe Collette}, + title = {Sample Stabilization For Tomography Experiments In Presence Of Large Plant Uncertainty}, + booktitle = {MEDSI'18}, + year = {2018}, + number = {10}, + pages = {153--157}, + doi = {10.18429/JACoW-MEDSI2018-WEOAMA02}, + url = {https://doi.org/10.18429/JACoW-MEDSI2018-WEOAMA02}, + address = {Geneva, Switzerland}, + isbn = {978-3-95450-207-3}, + keywords = {nass}, + language = {english}, + month = {Dec}, + publisher = {JACoW Publishing}, + series = {Mechanical Engineering Design of Synchrotron Radiation Equipment and Instrumentation}, + venue = {Paris, France}, +}