Skip to content
Snippets Groups Projects
Commit 21145af6 authored by Jan Wille's avatar Jan Wille
Browse files

final touches

parent 75eb33fb
No related branches found
No related tags found
1 merge request!7Example
No preview for this file type
......@@ -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
\noindent\begin{minipage}{\textwidth} % prevent automatic pagebreaks
\listoffigures
\listoftables
\end{minipage}
\end{document}
......@@ -85,6 +85,7 @@
\RequirePackage{hyperref}
\RequirePackage{bookmark}
\RequirePackage{csquotes}
\RequirePackage{soul}
% config for header and footer
\pagestyle{scrheadings}
......
\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,
......
......@@ -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}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment