diff --git a/crc/README.md b/crc/README.md new file mode 100644 index 0000000000000000000000000000000000000000..901c0ba214d4860e4aa7b1032f3bd7af84fe9614 --- /dev/null +++ b/crc/README.md @@ -0,0 +1,4 @@ +# Circuit-diagramms folder + +This folder is for circuit diagramms. +The `circuitkz` pakage is recomendet for creating these. diff --git a/crc/exampleCircuit.tex b/crc/exampleCircuit.tex new file mode 100644 index 0000000000000000000000000000000000000000..bdff1605d0487c37aee31a208d565096b7bda939 --- /dev/null +++ b/crc/exampleCircuit.tex @@ -0,0 +1,15 @@ +\documentclass[11pt,ngerman]{HsH-standalone} + +\usepackage{siunitx} % kennt SI einheiten +\usepackage{amsmath} % schöne Formeln +\usepackage{circuitikz} % zeichnen von Schaltplänen + +\begin{document} %----------------------Inhalt---------------------------------------------------% +\begin{circuitikz} \draw + (0,0) to[V, v<=$U_q$, i=2] ++(0,2) + -- ++(2,0) + to[R, v^=$U_R$] ++(0,-2) + -- (0,0) + ; +\end{circuitikz} +\end{document} diff --git a/csv/bsp.csv b/csv/bsp.csv new file mode 100644 index 0000000000000000000000000000000000000000..a6a28d55b1aabbd5c4a16f55e6581c3eb68f15b1 --- /dev/null +++ b/csv/bsp.csv @@ -0,0 +1,6 @@ +A;B;C;D +1;0;3,1;0,2 +2;0;7,2;0,5 +3;0;8,3;0,3 +4;0;2,4;0,1 +5;0;4,5;0,2 diff --git a/img/lorem-ipsum.jpg b/img/lorem-ipsum.jpg new file mode 100644 index 0000000000000000000000000000000000000000..04a14b8c7a35b4550a3fb737ca8eb9175ede8496 Binary files /dev/null and b/img/lorem-ipsum.jpg differ diff --git a/plt/examplePlot.tex b/plt/examplePlot.tex new file mode 100644 index 0000000000000000000000000000000000000000..5629a7661c7fc3855f3873a69adffa23a1ec63ae --- /dev/null +++ b/plt/examplePlot.tex @@ -0,0 +1,32 @@ +\documentclass[11pt,ngerman]{HsH-standalone} + +%__________Formeln und Mathe________________ +\usepackage{siunitx} % kennt SI einheiten +\usepackage{amsmath} % schöne Formeln + +%__________Daten Import_____________________ +\usepackage{pgfplots,pgfplotstable} % plots und bilder, enthält tikz und graphix + +\begin{document} %----------------------Inhalt---------------------------------------------------% + +\begin{tikzpicture} + \begin{axis}[MyPlots] + \addplot[FM1,domain=-1:1]{x^2}; + \end{axis} +\end{tikzpicture} + +\begin{tikzpicture} +\pgfplotstableread{../csv/bsp.csv}\data + \begin{axis}[MyPlots, + xlabel=X Achse, ylabel=$\percent$, + ] + \addplot[FM1,errBars] table [x=A,y=C,y error=D] {\data}; + \addlegendentry{Messdaten} + \addplot[FM2,smooth] table [x=A,y=C] {\data}; + \addlegendentry{theroretische Werte} + \addplot[FM4] table [x=A,y={create col/linear regression={y=C}}] {\data}; + \addlegendentry{lineariesiert zu: $y=\num\pgfplotstableregressiona*x+\num\pgfplotstableregressionb$} + \end{axis} +\end{tikzpicture} + +\end{document} diff --git a/project.pdf b/project.pdf new file mode 100644 index 0000000000000000000000000000000000000000..81c648dfe93ebc8a9ccd935c24cb4a0a32751d31 Binary files /dev/null and b/project.pdf differ diff --git a/src/HsH-standalone.cls b/src/HsH-standalone.cls new file mode 100644 index 0000000000000000000000000000000000000000..c18f927009b5eb8ad1b5a50051353c2c3b1227ca --- /dev/null +++ b/src/HsH-standalone.cls @@ -0,0 +1,92 @@ +\typeout{Adapted from KOMA script for use in Hochschule Hannover <2020-08-21> Jan Wille} +\NeedsTeXFormat{LaTeX2e} + +\newcommand{\myClassName}{HsH-standalone} +\ProvidesClass{\myClassName}[2020/09/21 HsH Report based on KOMA] +\LoadClass[multi=tikzpicture,multi=circuitikz]{standalone} + +\newcommand{\HsHlogoPath}{HSH-Logo.pdf} +\newcommand{\HsHlogoPage}{1} +\newcommand{\includeHsHlogohere}{\includegraphics[width=5cm,page=\HsHlogoPage]{\HsHlogoPath}} +\providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} % Makro für Betragsstriche + + +\newif\if@german% +\DeclareOption{german}{% + \PassOptionsToPackage{ngerman}{babel} + \@germantrue +} +\DeclareOption{ngerman}{% + \PassOptionsToPackage{\CurrentOption}{babel} + \@germantrue +} +\DeclareOption{english}{% + \PassOptionsToPackage{\CurrentOption}{babel} +} +\DeclareOption{f1}{% + \renewcommand{\HsHlogoPage}{2} +} +\DeclareOption{f2}{% + \renewcommand{\HsHlogoPage}{3} +} +\DeclareOption{f3}{% + \renewcommand{\HsHlogoPage}{4} +} +\DeclareOption{f4}{% + \renewcommand{\HsHlogoPage}{5} +} +\DeclareOption{f5}{% + \renewcommand{\HsHlogoPage}{6} +} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{standalone}} +\ProcessOptions\relax + +\newcommand*{\@titlehead}{}% +\newcommand{\titlehead}[1]{\gdef\@titlehead{#1}}% +\newcommand*{\@subject}{}% +\newcommand*{\subject}[1]{\gdef\@subject{#1}}% +\newcommand*{\@subtitle}{}% +\newcommand*{\subtitle}[1]{\gdef\@subtitle{#1}}% +\newcommand*{\@publishers}{}% +\newcommand{\publishers}[1]{\gdef\@publishers{#1}}% +\InputIfFileExists{personal.tex}{ + \ClassInfo{\myClassName}{personal.tex was found. Using it...} +}{ + \ClassInfo{\myClassName}{no personal.tex! Configre the titlepage yourselfe} +} + +% enforced options for packages +\PassOptionsToPackage{utf8}{inputenc} +\PassOptionsToPackage{T1}{fontenc} +\PassOptionsToPackage{babel, german=quotes}{csquotes} +\PassOptionsToPackage{free-standing-units}{siunitx} +\PassOptionsToPackage{european,EFvoltages,straightvoltages}{circuitikz} + +%used packages: +\RequirePackage{inputenc} % inputencoding, utf8 recomendet +\RequirePackage{fontenc} % outputencoding, T1 recomendet +\RequirePackage{lmodern} % font +\RequirePackage{graphicx} % required for importing images +\RequirePackage{babel} % required for german names +\if@german\RequirePackage{ziffer}\fi % german dezimal numbers + +% typesetting indexes upright or standart +\def\subinrm#1{\sb{\textnormal{#1}}} +{\catcode`\_=13 \global\let_=\subinrm} +\mathcode`_="8000 +\newcommand\upsubscripts{\catcode`\_=12 } % the toggle for upright subscripts +\newcommand\normalsubscripts{\catcode`\_=8 } % the toggle for italic subscripts +\upsubscripts % setting upright as default + +% keep compatible +\providecommand{\renewcaptionname}[3]{} + +\AtBeginDocument { + \makeatletter + \InputIfFileExists{config.tex}{ + \ClassInfo{\myClassName}{config.tex was found. Using it...} + }{ + \ClassInfo{\myClassName}{no config.tex!! I hope you configered it yourself.} + } + \makeatother +} diff --git a/svg/README.md b/svg/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c2f6bb463cc10f1a98a38b88c2f44add0016862a --- /dev/null +++ b/svg/README.md @@ -0,0 +1,3 @@ +# SVG-images folder + +using Inkscape you can create pretty much every image you need and export it for use inside a Latex document \ No newline at end of file diff --git a/svg/exampleSVG.svg b/svg/exampleSVG.svg new file mode 100644 index 0000000000000000000000000000000000000000..c9220145dbeaadda2264a3c0336fe83979e51e6e --- /dev/null +++ b/svg/exampleSVG.svg @@ -0,0 +1,122 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + sodipodi:docname="exampleSVG.svg" + inkscape:version="1.0 (4035a4fb49, 2020-05-01)" + id="svg8" + version="1.1" + viewBox="0 0 24.368297 12.207536" + height="12.207536mm" + width="24.368298mm"> + <defs + id="defs2" /> + <sodipodi:namedview + inkscape:document-rotation="0" + inkscape:object-nodes="true" + inkscape:snap-midpoints="false" + inkscape:snap-smooth-nodes="true" + inkscape:snap-intersection-paths="true" + inkscape:object-paths="true" + inkscape:window-maximized="1" + inkscape:window-y="-8" + inkscape:window-x="1912" + inkscape:window-height="1017" + inkscape:window-width="1920" + showgrid="false" + inkscape:current-layer="layer2" + inkscape:document-units="mm" + inkscape:cy="-49.651496" + inkscape:cx="307.94677" + inkscape:zoom="1.4142136" + inkscape:pageshadow="2" + inkscape:pageopacity="0.0" + borderopacity="1.0" + bordercolor="#666666" + pagecolor="#ffffff" + id="base" /> + <metadata + id="metadata5"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + style="display:inline" + transform="translate(113.63294,-60.18729)" + id="layer1" + inkscape:groupmode="layer" + inkscape:label="Ebene 1" /> + <g + transform="translate(-6.3142424,-29.850761)" + inkscape:label="Objekt 2" + id="layer2" + inkscape:groupmode="layer"> + <path + inkscape:connector-curvature="0" + id="path825" + d="M 18.123958,36.987063 V 37.8082 38.628824 L 19.546094,37.8082 Z m -8.465633,0.68833 v 0.265617 h 8.4646 v -0.265617 z" + style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#ff0000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" /> + <path + inkscape:connector-curvature="0" + style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#0000ff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" + d="m 16.512805,32.882051 0.410569,0.711125 0.410311,0.710681 0.821294,-1.421749 z m -6.987289,4.828927 0.132809,0.230032 7.330559,-4.2323 -0.132809,-0.230032 z" + id="path834" /> + <path + sodipodi:nodetypes="ccccccccccc" + id="path836" + d="m 26.544685,34.280017 -0.212525,0.793157 -0.212394,0.792661 1.586071,-0.424585 z m -8.355326,-1.526192 -0.03438,0.128283 -0.03438,0.128284 8.176176,2.1908 0.06875,-0.256568 z" + style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#005500;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" + inkscape:connector-curvature="0" /> + <text + id="text840" + y="32.97942" + x="21.067448" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:3.175px;line-height:1.25;font-family:Arial;-inkscape-font-specification:'Arial Bold';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583" + xml:space="preserve"><tspan + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial;stroke-width:0.264583" + y="32.97942" + x="21.067448" + id="tspan838" + sodipodi:role="line">$Z_1$</tspan></text> + <text + xml:space="preserve" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:3.175px;line-height:1.25;font-family:Arial;-inkscape-font-specification:'Arial Bold';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583" + x="13.295312" + y="40.984444" + id="text844"><tspan + sodipodi:role="line" + id="tspan842" + x="13.295312" + y="40.984444" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial;stroke-width:0.264583">$Z_{1.1}$</tspan></text> + <text + id="text848" + y="34.599991" + x="13.730747" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:3.175px;line-height:1.25;font-family:Arial;-inkscape-font-specification:'Arial Bold';text-align:end;letter-spacing:0px;word-spacing:0px;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583" + xml:space="preserve"><tspan + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial;text-align:end;text-anchor:end;stroke-width:0.264583" + y="34.599991" + x="13.730747" + id="tspan846" + sodipodi:role="line">$Z_{1.2}$</tspan></text> + </g> + <g + transform="translate(-11.131775,-31.878105)" + style="display:inline" + inkscape:label="Objekt" + id="layer3" + inkscape:groupmode="layer" /> +</svg>