Add glossary and accronyms

This commit is contained in:
Thomas Dehaeze 2021-05-19 17:32:47 +02:00
parent adba6ed48d
commit faf652e62e
6 changed files with 148 additions and 55 deletions

View File

@ -1,18 +1,18 @@
\usepackage[ % use biblatex for bibliography % Units
backend=biber, % use biber backend (bibtex replacement) or bibtex \usepackage{siunitx}
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}
% 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}

21
config_extra.tex Normal file
View File

@ -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{}

View File

@ -8,10 +8,12 @@
#+DATE: {{{time(%Y-%m-%d)}}} #+DATE: {{{time(%Y-%m-%d)}}}
#+LATEX_CLASS: scrreprt #+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: \input{config.tex}
#+LATEX_HEADER_EXTRA: \input{config_extra.tex}
#+LATEX_HEADER: \addbibresource{ref.bib}
:END: :END:
* Build :noexport: * Build :noexport:
@ -20,10 +22,53 @@
(add-to-list 'org-latex-classes (add-to-list 'org-latex-classes
'("scrreprt" '("scrreprt"
"\\documentclass{scrreprt}" "\\documentclass{scrreprt}"
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}") ("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%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 #+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

Binary file not shown.

View File

@ -1,37 +1,36 @@
% Created 2019-10-08 mar. 16:02 % Created 2021-05-19 mer. 17:31
% Intended LaTeX compiler: pdflatex % Intended LaTeX compiler: pdflatex
\documentclass{scrreprt} \documentclass[a4paper, DIV=14, onecolumn, bibliography=totoc, twoside, openright]{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}
\input{config.tex} \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} \author{Dehaeze Thomas}
\date{2019-10-08} \date{2021-05-19}
\title{PhD Thesis} \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} \begin{document}
\maketitle \maketitle
\tableofcontents \tableofcontents
\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} \end{document}

28
ref.bib
View File

@ -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},
}