Add glossary and accronyms
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user