Skip to content

Commit

Permalink
Diagram template for Latex
Browse files Browse the repository at this point in the history
  • Loading branch information
Kretchen001 committed Jan 25, 2024
1 parent 2f58196 commit f27ba31
Showing 1 changed file with 51 additions and 1 deletion.
52 changes: 51 additions & 1 deletion documentation/latex/main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
\usepackage{tasks}
\usepackage[singlespacing]{setspace}
\usepackage[ngerman]{babel}
\usepackage{wrapfig}
\usepackage{pgfplots}

% Biblatex
\usepackage{csquotes}
Expand All @@ -38,7 +40,7 @@
\setcounter{biburlucpenalty}{9000}

\pagestyle{myheadings}
\setlength{\parindent}{0.8in}
% \setlength{\parindent}{0.8in}

\usepackage{float}

Expand Down Expand Up @@ -105,6 +107,45 @@
\addcontentsline{toc}{section}{Inhaltsverzeichnis}
\tableofcontents\label{Inhaltsverzeichnis}

\newpage

Lorem, ipsum dolor sit amet consectetur adipisicing elit. Molestias aut, repellat ipsum facere voluptate dicta obcaecati deserunt nobis suscipit eaque?
\begin{wrapfigure}{l}{0.5\textwidth}
\centering
\begin{tikzpicture}
\begin{axis}[
ybar,
bar width=0.5cm,
width=0.48\textwidth,
height=6cm,
ymin=0,
xlabel={$x$},
ylabel={Werte},
xtick={1,2,3,4,5},
xticklabels={1, 2, 3, 4, 5},
xtick=data,
nodes near coords,
nodes near coords style={/pgf/number format/.cd,fixed zerofill,precision=1},
nodes near coords align={vertical},
]
\addplot coordinates {(1,1) (2,34) (3,23) (4,123) (5,84)};
\addplot[smooth, red, mark=*] coordinates {
(0, {(1 + 34 + 23 + 123 + 84) / 5})
(6, {(1 + 34 + 23 + 123 + 84) / 5})
};
\end{axis}
\end{tikzpicture}
\caption{Balkendiagramm}
\end{wrapfigure}
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Molestias aut, repellat ipsum facere voluptate dicta obcaecati deserunt nobis suscipit eaque?
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Molestias aut, repellat ipsum facere voluptate dicta obcaecati deserunt nobis suscipit eaque?
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Molestias aut, repellat ipsum facere voluptate dicta obcaecati deserunt nobis suscipit eaque?
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Molestias aut, repellat ipsum facere voluptate dicta obcaecati deserunt nobis suscipit eaque?
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Molestias aut, repellat ipsum facere voluptate dicta obcaecati deserunt nobis suscipit eaque?
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Molestias aut, repellat ipsum facere voluptate dicta obcaecati deserunt nobis suscipit eaque?
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Molestias aut, repellat ipsum facere voluptate dicta obcaecati deserunt nobis suscipit eaque?
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Molestias aut, repellat ipsum facere voluptate dicta obcaecati deserunt nobis suscipit eaque?

\newpage
\input{sections/sec1.tex}

Expand All @@ -118,4 +159,13 @@
% \newpage
% \printbibliography[type=article, heading=subbibliography, title={Zeitschriften}]

\newpage
\phantomsection
\addcontentsline{toc}{section}{Abbildungen}
\listoffigures
\newpage
\phantomsection
\addcontentsline{toc}{section}{Tabellen}
\listoftables

\end{document}

0 comments on commit f27ba31

Please sign in to comment.