From c67594437ec06b7061ceae36ba4803e0b5cb52b1 Mon Sep 17 00:00:00 2001
From: Jan Wille <jan.wille@stud.hs-hannover.de>
Date: Sun, 18 Oct 2020 17:27:18 +0200
Subject: [PATCH] =?UTF-8?q?config=20f=C3=BCr=20pgfplots=20und=20ctikz?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/HsH-report.cls |  1 +
 src/config.tex     | 31 +++++++++++++++++++++++++++++--
 test.tex           |  2 +-
 3 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/src/HsH-report.cls b/src/HsH-report.cls
index a6bc30c..1d1b8ae 100644
--- a/src/HsH-report.cls
+++ b/src/HsH-report.cls
@@ -56,6 +56,7 @@
 \PassOptionsToPackage{babel, german=quotes}{csquotes}
 \PassOptionsToPackage{headsepline}{scrlayer-scrpage}
 \PassOptionsToPackage{free-standing-units}{siunitx}
+\PassOptionsToPackage{european,EFvoltages,straightvoltages}{circuitikz}
 
 %used packages:
 \RequirePackage{inputenc} % inputencoding, utf8 recomendet
diff --git a/src/config.tex b/src/config.tex
index 4370bcb..9842380 100644
--- a/src/config.tex
+++ b/src/config.tex
@@ -1,4 +1,4 @@
-\renewcommand\abstractname{Abstract} %Abstract
+\renewcaptionname{ngerman}{\abstractname}{Abstract} %Abstract
 \@ifpackageloaded{biblatex}{
 	\ExecuteBibliographyOptions{
 		sorting=nyt,
@@ -32,7 +32,7 @@
 		escapeinside={(*@}{@*)},
 	}
 }{}%
-\@ifpackageloaded{listings}{
+\@ifpackageloaded{circuitikz}{
 	\ctikzset{
 		font=\footnotesize,
 		resistors/scale=0.7,
@@ -41,3 +41,30 @@
 		bipole annotation style/.style={font=\tiny ,inner sep=1pt},
 	}
 }{}%
+\@ifpackageloaded{pgfplots}{
+	\usepackage{pgfplotstable}
+	\usepgfplotslibrary{fillbetween} % mark areas under or between graphs
+	\pgfplotsset{
+		compat=1.16,
+		/pgf/number format/use comma,
+		/pgf/number format/read comma as period,
+		every tick label/.append style={font=\tiny},
+		every axis legend/.append style={font=\footnotesize},
+		MyPlots/.style = {		% Style für alle Plots
+			width=.6\textwidth,
+			grid=major,												% Gitter für haupt Ticks
+			grid style={dashed,gray!50},							% Hinergrund Gitter
+			legend pos=outer north east,							% Positon der Legende
+			FM1/.style = {blue, thick, mark=x, mark size=1.5,samples=100},  	% Format 1
+			FM2/.style = {orange, thick, mark=*, mark size=1,samples=100}, 		% Format 2
+			FM3/.style = {green, thick, mark=square*, mark size=1,samples=100}, % Format 3
+			FM4/.style = {red, thick, mark=diamond*, mark size=1,samples=100}, 	% Format 4
+			FM5/.style = {pink, thick, mark=triangel*, mark size=1,samples=100},% Format 5
+			errBars/.style = {error bars/.cd, y dir=both, y explicit, % ermöglich Fehlerbalken
+							error mark options={mark size=1pt,rotate=90}},
+		}
+	}
+	\pgfplotstableset{
+		col sep=semicolon, % global seperator for csv files
+	}
+}{}%
diff --git a/test.tex b/test.tex
index 0f70cca..4448655 100644
--- a/test.tex
+++ b/test.tex
@@ -1,4 +1,4 @@
-\documentclass[11pt,a4paper,twoside,f1]{HsH-report}
+\documentclass[11pt,a4paper,twoside,f1,ngerman]{HsH-report}
 
 \usepackage{color}
 \usepackage{lipsum}
-- 
GitLab