~busykoala/latex_article

ref: 65babdb0c5b6380dd32c2268fc7e48b6b9a0c675 latex_article/main.tex -rw-r--r-- 2.3 KiB
65babdb0 — Matthias Osswald Add titlepage and abstract. 1 year, 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
\documentclass[titlepage]{article}

  % language setup
  \usepackage[utf8]{inputenc}
  \usepackage[ngerman]{babel}
  % use fancyhdr to style the header and footer
  \usepackage[a4paper, total={5.5in, 8in}]{geometry}
  \usepackage{fancyhdr}
  \pagestyle{fancy}
  \usepackage{datetime}
  % make it easy to add figures and tables
  \usepackage{graphicx}
  \usepackage{tabularx}
  \usepackage{float}
  % setup the appendix
  \usepackage[toc,page]{appendix}
  % setup the bibliography
  \usepackage[hidelinks]{hyperref}
  \usepackage[style=ieee,backend=biber]{biblatex}
  \addbibresource{bib/literature.bib}
  % setup the glossaries
  \usepackage[acronym]{glossaries}
  \makeglossaries
  % allow an emergency stretch of 1em to avoid oversize errors
  \emergencystretch=1em
  % removing the [noframe] will show a frame for each box
  \usepackage[noframe]{showframe}

  \newdateformat{monthdayyeardate}{
    \THEDAY. \monthname[\THEMONTH] \THEYEAR}

  % setup fancy header
  \pagestyle{fancy}
  \fancyhf{}
  \rhead{Top right text}
  \lhead{Top left text}
  \rfoot{Page \thepage}
  \lfoot{\monthdayyeardate\today}

  \begin{document}

  \title{Example Document}
  \author{Matthias Osswald}
  \maketitle

  \begin{abstract}
    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
    eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam.
  \end{abstract}

  \tableofcontents

  \section{First Section}

  Example Quotation \cite{aharonov2008quantum} \\
  Example Acronym \acrshort{ITSCM} \\
  Example Glossary \Gls{microservice} \\

  \begin{figure}[H]
    \centering
    \includegraphics[scale=.5]{figures/example_figure.png} \\
    \caption{Example Figure}\label{fig:example_figure}
  \end{figure}

  \begin{table}[htbp]
    \centering
    \begin{tabularx}{\textwidth}{| p{1cm} | X | p{6cm} |}
      \hline
        1 & Lorem
          & Ipsum \\ \hline
        2 & Dolorum
          & Est \\ \hline
    \end{tabularx}
    \caption{Example Table}\label{tbl:example_table}
  \end{table}

  \printbibliography

  \input{glossary/glossary.tex}
  \printglossary

  \input{glossary/acronym.tex}
  \printglossary[type=\acronymtype]

  \listoffigures
  \listoftables

  \begin{appendices}
    \section{I'm an Appendix}
    Lorem ipsum dolor est.
  \end{appendices}

  \end{document}