# -*- mode: snippet -*-
# name: Article
# group: Article Templates
# key: ?article
# --
#+TITLE: ${1:Title}
#+SUBTITLE: ${2:Subtitle}
#+DATE: ${3:13. April 2022}
#+AUTHOR: ${4:Daniel Weschke}
#+EMAIL: ${5:daniel.weschke@gmail.com}
#+KEYWORDS:
#+DESCRIPTION:
#+LANGUAGE:
#+OPTIONS: draft:t

* BOP                                                                :ignore:
#+LATEX: \pagenumbering{roman}\setcounter{page}{1}\thispagestyle{empty}

* Coverpage                                                          :ignore:
# Some beginning notes.

* Abstract                                                           :ignore:
:PROPERTIES:
:VISIBILITY: folded
:END:
#+LATEX: \clearpage\thispagestyle{empty}
# uses keyword document_type
#+BEGIN_abstract
*{{{author}}}*

*{{{title-name}}}*\\\\
{{{title}}}

*{{{keyword-name}}}*\\\\
{{{keyword(keywords)}}}

*{{{description-name}}}*\\\\
{{{keyword(description)}}}
#+END_abstract

* TOC and other lists                                                :ignore:
:PROPERTIES:
:VISIBILITY: folded
:CLEARPAGE: t
:END:
# Table of Contents
#+LATEX: \clearpage\pdfbookmark[1]{\contentsname}{toc}
#+TOC: headlines
#+LATEX: \thispagestyle{plain}

# List of Figures  (# `#+TOC: figures' is not working)
#+LATEX: \listoffigures
#+LATEX: \thispagestyle{plain}

# List of Tables
#+TOC: tables
#+LATEX: \thispagestyle{plain}

# List of Listings
#+TOC: listings
#+LATEX: \thispagestyle{plain}

* Glossary, Acronym and List of Symbols                              :ignore:
#+name: glossary
| label | name  | description                                         | unit   |
|-------+-------+-----------------------------------------------------+--------|
| tree  | Tree  | A woody plant                                       |        |
| shrub | Shrub | A woody bush                                        |        |
| api-g | API   | An Application Programming Interface (API) is a ... |        |
| w     | \\(w\\) | Width                                               | mm     |
| A     | \\(A\\) | Area                                                | mm^{2} |
| L     | \\(L\\) | Length                                              | mm     |
| f     | \\(f\\) | Eigen frequency                                     | Hz     |

#+name: acronyms
| label | abbreviation | full form                         |
|-------+--------------+-----------------------------------|
| mimo  |              | multiple-input multiple output    |
| qos   | QoS          | quality-of-service                |
| bb    | BB           | branch and bound                  |
| api   | API          | Application Programming Interface |

#+LATEX: \printglossary\thispagestyle{plain}
#+LATEX: \printglossary[type=\acronymtype,title=Abkürzungsverzeichnis]\thispagestyle{plain}
#+LATEX: \printglossary[type=symbols,style=mysymbols,title=Symbolverzeichnis]\thispagestyle{plain}
#+LATEX: \glsaddallunused

* EOP                                                                :ignore:
#+LATEX: \newpage\pagenumbering{arabic}\setcounter{page}{1}

* 1st Header
$0

* References                                                         :ignore:
# #+LATEX_HEADER_EXTRA: \addbibresource{references.bib}
[[printbibliography:]]

* Appendix
:PROPERTIES:
:UNNUMBERED: t
:APPENDIX: t
:END:
# ! UNNUMBERED: t !
# ! APPENDIX: t !

** 1st appendix
:PROPERTIES:
:UNNUMBERED: nil
:END:
# ! UNNUMBERED: nil !

* Index                                                              :ignore:
[[printindex:]]
