diff --git a/project.pdf b/project.pdf index 81c648dfe93ebc8a9ccd935c24cb4a0a32751d31..1d44b6564843dbb502e4893e35e126a0c449f82b 100644 Binary files a/project.pdf and b/project.pdf differ diff --git a/project.tex b/project.tex index 8581e17abf4aa2152335eced0cce6a5584927b90..88f510f9ff6be1a28b8eb94aa529969bcdee5f43 100644 --- a/project.tex +++ b/project.tex @@ -7,9 +7,12 @@ \usepackage{color} % for coloring stuff \usepackage{siunitx} % units +\usepackage{listings} +\usepackage{csvsimple} \usepackage{biblatex} % bibiography \addbibresource{src/localBibliography.bib} + \usepackage{lipsum} % dummy text \begin{document} @@ -34,32 +37,25 @@ some information\cite{laboranleitung:physik}\\ german number: $3,5$ english number: $3.5$\\ \begin{figure} - \centering \includegraphics[width=.6\textwidth]{img/lorem-ipsum.jpg} - \caption{test} + \caption{just a random image} \end{figure} \begin{figure} - \centering \includegraphics[width=0.6\textwidth, page=2]{plt/build/examplePlot.pdf} - \caption{a nice plot} - \end{figure} - - \begin{figure} - \centering - \includegraphics{crc/build/exampleCircuit.pdf} - \caption{a circuit diagramm} + \caption[centering]{a nice plot} \end{figure} \begin{figure} - \centering \graphicspath{{svg/build/}} % double curly brackets needet for unknown reason - \input{svg/build/exampleSVG.pdf_tex} - \caption{made via inkscape} + \subfigure[a circuit diagramm]{\includegraphics{crc/build/exampleCircuit.pdf}} + \hspace{2cm} + \subfigure[made via Inkscape]{\input{svg/build/exampleSVG.pdf_tex}} + \caption{using two figures} \end{figure} -\chapter{Using formulas} - \label{chap: theorie} +\section{Using formulas} + \label{sec: formula} a numberd formula: \begin{equation} \label{eq: einhalb} % always lable your stuff @@ -72,15 +68,57 @@ \Leftrightarrow 0 &= x^2-x+3 \\ \end{split} \end{equation} - and jow could you align formulas? + and how could you align formulas? \begin{align} x_1 &= 6 &&|\;\mbox{mit } x \in \mathbb{N} \\ x_2 &= 33+\abs{\frac{1}{4}} &&|\;x_1+3 \\ - &= 33,25 &&\mbox{| warum alles numerieren?} \notag \\ + &= 33,25 &&\mbox{| don't number everything} \notag \\ x_3 &= 10^{22} \end{align} +\section{formating code} + \label{sec: code} + use the listings package: + % how to skip fist tab?? + \begin{lstlisting}[language=c] + #include <stdlib.h> + #include <sdtio.h> + + int main(void) { + printf("Hello World"); + return 0; + } + \end{lstlisting} + % or input from external file: + %\lstinputlisting[language=c]{main.c} + +\section{CSV files} + \label{sec: messwerte} + import a csv as table:\\ + \csvautotabular{csv/bsp.csv}\\ + or do it manualy to get more controll: + \begin{table} + \caption{a nice list of numbers} + \begin{tabular}{c|c} + first row & second row \\\hline\hline + \csvreader[ + late after line=\\\hline, + late after last line=\\\hline + ]{csv/bsp.csv}{}{number: $\csvcoli\,\metre$ & is not \csvcoliii} + \end{tabular} + \end{table} + +\chapter{attachment} +% manually include a PDF as not numbered section +\textbf{\Large{Messprotokoll oder so}} % just so it'S not empty +\phantomsection % Anker für den Hyperlink +\addcontentsline{toc}{section}{Messprotokoll} % add to table of content +\chaptermark{Messprotokoll} % change headmark +%\includepdf[pages=-,pagecommand={},width=\paperwidth]{temp.pdf} % comment in to include pdf \printbibliography -\listoffigures +\noindent\begin{minipage}{\textwidth} % prevent automatic pagebreaks + \listoffigures + \listoftables +\end{minipage} \end{document} diff --git a/src/HsH-report.cls b/src/HsH-report.cls index c16d1ec3aa0df9368f6e9d30862b80826a520d41..6d63eb28a926f6d69acc564d824bedc7f3fd2887 100644 --- a/src/HsH-report.cls +++ b/src/HsH-report.cls @@ -85,6 +85,7 @@ \RequirePackage{hyperref} \RequirePackage{bookmark} \RequirePackage{csquotes} +\RequirePackage{soul} % config for header and footer \pagestyle{scrheadings} diff --git a/src/config.tex b/src/config.tex index 76508112bd5b7042c4cb39fd1bba335677d259c6..d90f94c9edfa8427acbf28031efc158b58f2a298 100644 --- a/src/config.tex +++ b/src/config.tex @@ -1,4 +1,10 @@ \renewcommand{\abstractname}{Abstract} %Abstract + +\ifx\KOMAScriptVersion\undefined\else % check if KOMA is used + \g@addto@macro\@floatboxreset\centering % center all floats + \setcapwidth[c]{0.8\textwidth} % center all captions + %\setcapwidth[c]{0.8\textwidth} % leftalign all captions +\fi \@ifpackageloaded{biblatex}{ \ExecuteBibliographyOptions{ bibwarn=true, @@ -29,10 +35,14 @@ stringstyle=\color{blue}, showstringspaces=false, basicstyle=\footnotesize, + tabsize=4, literate={Ö}{{\"O}}1{Ä}{{\"A}}1{Ü}{{\"U}}1{ß}{{\ss}}1{ü}{{\"u}}1{ä}{{\"a}}1{ö}{{\"o}}1, escapeinside={(*@}{@*)}, } }{}% +\@ifpackageloaded{csvsimple}{ + \csvstyle{every csv}{separator=semicolon} +}{}% \@ifpackageloaded{circuitikz}{ \ctikzset{ font=\footnotesize, diff --git a/src/personal.tex b/src/personal.tex index b2caf145da5459bc6b9fe172d1e3f86541cdde91..196aa7cf888c0623637d78afb36164e0cfe3d6f8 100644 --- a/src/personal.tex +++ b/src/personal.tex @@ -2,9 +2,8 @@ Max Mustermann, Mira Musterfrau } -\titlehead{Fachbereich} -\subject{Grund der Arbeit} -\title{Mustertitel} -\subtitle{Untertitle} -\date{\today\\Zweite Abgabe: 123} -\publishers{HERAUSGEBER} +\titlehead{titlehead} +\subject{Subject} +\title{Title} +\subtitle{Subtitle} +\date{\st{01.10.2020}\\\today}