commit 623454a2c4e2679093b67c16375d99dc1a02f715 Author: Florian Hoss Date: Tue Mar 15 13:04:28 2022 +0100 import diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2d9dadd --- /dev/null +++ b/.gitignore @@ -0,0 +1,374 @@ +# ---> Windows +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# ---> Linux +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + +# ---> macOS +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# ---> TeX +## Core latex/pdflatex auxiliary files: +*.aux +*.lof +*.log +*.lot +*.fls +*.out +*.toc +*.fmt +*.fot +*.cb +*.cb2 +.*.lb + +## Intermediate documents: +*.dvi +*.xdv +*-converted-to.* +# these rules might exclude image files for figures etc. +# *.ps +# *.eps +# *.pdf + +## Generated if empty string is given at "Please type another file name for output:" +.pdf + +## Bibliography auxiliary files (bibtex/biblatex/biber): +*.bbl +*.bcf +*.blg +*-blx.aux +*-blx.bib +*.run.xml + +## Build tool auxiliary files: +*.fdb_latexmk +*.synctex +*.synctex(busy) +*.synctex.gz +*.synctex.gz(busy) +*.pdfsync + +## Build tool directories for auxiliary files +# latexrun +latex.out/ + +## Auxiliary and intermediate files from other packages: +# algorithms +*.alg +*.loa + +# achemso +acs-*.bib + +# amsthm +*.thm + +# beamer +*.nav +*.pre +*.snm +*.vrb + +# changes +*.soc + +# comment +*.cut + +# cprotect +*.cpt + +# elsarticle (documentclass of Elsevier journals) +*.spl + +# endnotes +*.ent + +# fixme +*.lox + +# feynmf/feynmp +*.mf +*.mp +*.t[1-9] +*.t[1-9][0-9] +*.tfm + +#(r)(e)ledmac/(r)(e)ledpar +*.end +*.?end +*.[1-9] +*.[1-9][0-9] +*.[1-9][0-9][0-9] +*.[1-9]R +*.[1-9][0-9]R +*.[1-9][0-9][0-9]R +*.eledsec[1-9] +*.eledsec[1-9]R +*.eledsec[1-9][0-9] +*.eledsec[1-9][0-9]R +*.eledsec[1-9][0-9][0-9] +*.eledsec[1-9][0-9][0-9]R + +# glossaries +*.acn +*.acr +*.glg +*.glo +*.gls +*.glsdefs +*.lzo +*.lzs +*.slg +*.slo +*.sls + +# uncomment this for glossaries-extra (will ignore makeindex's style files!) +# *.ist + +# gnuplot +*.gnuplot +*.table + +# gnuplottex +*-gnuplottex-* + +# gregoriotex +*.gaux +*.glog +*.gtex + +# htlatex +*.4ct +*.4tc +*.idv +*.lg +*.trc +*.xref + +# hyperref +*.brf + +# knitr +*-concordance.tex +# TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files +# *.tikz +*-tikzDictionary + +# listings +*.lol + +# luatexja-ruby +*.ltjruby + +# makeidx +*.idx +*.ilg +*.ind + +# minitoc +*.maf +*.mlf +*.mlt +*.mtc[0-9]* +*.slf[0-9]* +*.slt[0-9]* +*.stc[0-9]* + +# minted +_minted* +*.pyg + +# morewrites +*.mw + +# newpax +*.newpax + +# nomencl +*.nlg +*.nlo +*.nls + +# pax +*.pax + +# pdfpcnotes +*.pdfpc + +# sagetex +*.sagetex.sage +*.sagetex.py +*.sagetex.scmd + +# scrwfile +*.wrt + +# svg +svg-inkscape/ + +# sympy +*.sout +*.sympy +sympy-plots-for-*.tex/ + +# pdfcomment +*.upa +*.upb + +# pythontex +*.pytxcode +pythontex-files-*/ + +# tcolorbox +*.listing + +# thmtools +*.loe + +# TikZ & PGF +*.dpth +*.md5 +*.auxlock + +# titletoc +*.ptc + +# todonotes +*.tdo + +# vhistory +*.hst +*.ver + +# easy-todo +*.lod + +# xcolor +*.xcp + +# xmpincl +*.xmpi + +# xindy +*.xdy + +# xypic precompiled matrices and outlines +*.xyc +*.xyd + +# endfloat +*.ttt +*.fff + +# Latexian +TSWLatexianTemp* + +## Editors: +# WinEdt +*.bak +*.sav + +# Texpad +.texpadtmp + +# LyX +*.lyx~ + +# Kile +*.backup + +# gummi +.*.swp + +# KBibTeX +*~[0-9]* + +# TeXnicCenter +*.tps + +# auto folder when using emacs and auctex +./auto/* +*.el + +# expex forward references with \gathertags +*-tags.tex + +# standalone packages +*.sta + +# Makeindex log files +*.lpz + +# xwatermark package +*.xwm + +# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib +# option is specified. Footnotes are the stored in a file with suffix Notes.bib. +# Uncomment the next line to have this generated file ignored. +#*Notes.bib + +main.pdf diff --git a/bib/book.bib b/bib/book.bib new file mode 100644 index 0000000..c9cf6ac --- /dev/null +++ b/bib/book.bib @@ -0,0 +1,9 @@ +@book{example-book, + title = {{Example Book}}, + author = {Lastname, Surname}, + isbn = {123456789}, + address = {Germany}, + publisher = {Goverment}, + year = {2019}, + edition = {Second} +} \ No newline at end of file diff --git a/bib/online.bib b/bib/online.bib new file mode 100644 index 0000000..9a29c5f --- /dev/null +++ b/bib/online.bib @@ -0,0 +1,7 @@ +@online{example-online, + author = {{Polar Bear}}, + title = {about animal}, + urldate = {2021-08-30}, + year = {2021}, + url = {https://www.aspentravel.co.uk/tour/circumnavigating-svalbard-in-the-realm-of-the-polar-bear-99355/} +} \ No newline at end of file diff --git a/example/example.tex b/example/example.tex new file mode 100644 index 0000000..0ccb2d0 --- /dev/null +++ b/example/example.tex @@ -0,0 +1,32 @@ +\section{Example} + +\begin{figure}[H] + \begin{center} + \includegraphics[width=0.8\textwidth]{example} + \caption{Example Image} + \label{fig:example} + \end{center} +\end{figure} + +\cite[vgl. dazu][]{example-book} + +\cite[vgl. dazu][]{example-online} + +\newpage + +\begin{lstlisting}[language=Bash] +#!/bin/bash + +echo "Hello World" +\end{lstlisting} + +\begin{lstlisting}[language=Python] +# same in python + +print("Hello World") +\end{lstlisting} + +\begin{verbatim} +$ sudo apt-get update +$ sudo apt-get install python +\end{verbatim} diff --git a/images/example.jpg b/images/example.jpg new file mode 100644 index 0000000..5f4a27c Binary files /dev/null and b/images/example.jpg differ diff --git a/main.tex b/main.tex new file mode 100644 index 0000000..a6fe322 --- /dev/null +++ b/main.tex @@ -0,0 +1,117 @@ +\documentclass[ + a4paper, + oneside, + parskip=half, + listof=entryprefix, + listof=totoc, + index=totoc, + bibliography=totoc +]{scrartcl} + +\usepackage{silence} +\WarningFilter{biblatex}{File 'ngerman-iso.lbx'} +\WarningFilter{biblatex}{'\mainlang'} + +\usepackage[utf8]{inputenc} +\usepackage[ngerman]{babel} +\usepackage[T1]{fontenc} + +\usepackage{pdfpages,graphicx,subcaption,lastpage} +\graphicspath{ {./images} } + +\usepackage{geometry} +\geometry{a4paper, top=2.5cm, left=2.5cm, right=2.5cm, bottom=2.5cm} +\usepackage{float,listings,xcolor,csquotes,microtype,scrlayer-scrpage,etoolbox} +\usepackage[official]{eurosym} + +\definecolor{codegreen}{rgb}{0,0.6,0} +\definecolor{codegray}{rgb}{0.5,0.5,0.5} +\definecolor{codepurple}{rgb}{0.58,0,0.82} +\definecolor{backcolour}{rgb}{0.95,0.95,0.92} +\definecolor{weborange}{rgb}{1,0.65,0} + +\lstdefinestyle{mystyle}{ + backgroundcolor=\color{backcolour}, + commentstyle=\color{codegreen}, + keywordstyle=\color{magenta}, + numberstyle=\tiny\color{codegray}, + stringstyle=\color{codepurple}, + emph={int,char,double,float,unsigned,void,bool}, + emphstyle={\color{weborange}}, + basicstyle=\ttfamily\footnotesize, + breakatwhitespace=false, + breaklines=true, + captionpos=b, + keepspaces=true, + numbers=left, + numbersep=5pt, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=2, + firstnumber=1, +} +\lstset{style=mystyle} + +\setuptoc{toc}{totoc} + +\usepackage[ + backend=biber, + urldate=long, + style=iso-authoryear, + natbib=true, + useauthor=true, + mincitenames=1, + maxcitenames=3 +]{biblatex} +\addbibresource{bib/online.bib} +\addbibresource{bib/book.bib} + +\DefineBibliographyStrings{ngerman}{ + andothers = {{et\,al\adddot}}, + online = {{online}}, + urlseen = {{Zugriff am:}}, + urlfrom = {{Verfügbar unter:}}, +} + +\DeclareNameAlias{default}{family-given/given-family} + +\renewcommand*{\finalnamedelim}{\addspace{}und\space} +\AtEveryCite{ + \renewcommand*{\multinamedelim}{,\space} + \renewcommand*{\nameyeardelim}{\space} +} + +\AtBeginBibliography{ + \renewcommand*{\multinamedelim}{,\space} +} +\AfterTOCHead[lof]{\appto\autodot{:}} + +\definecolor{must-have-brown}{RGB}{51, 22, 18} +\definecolor{should-have-red}{RGB}{229, 24, 31} +\definecolor{could-have-orange}{RGB}{246, 121, 28} +\definecolor{wont-have-blue}{RGB}{32, 169, 215} +\newcommand{\morequirement}[1]{\paragraph{#1}\hfill\textbf{\textcolor{must-have-brown}{must-have}} (\ref{must-haves})\\} +\newcommand{\srequirement}[1]{\paragraph{#1}\hfill\textbf{\textcolor{should-have-red}{should-have}} (\ref{should-haves})\\} +\newcommand{\corequirement}[1]{\paragraph{#1}\hfill\textbf{\textcolor{could-have-orange}{could-have}} (\ref{could-haves})\\} +\newcommand{\wrequirement}[1]{\paragraph{#1}\hfill\textbf{\textcolor{wont-have-blue}{won't-have}} (\ref{wont-haves})\\} + +\ihead{Praxissemester WS21/22} +\chead{} +\ohead{Florian Hoss} +\ofoot{Seite~\thepage{}/\pageref{LastPage}} +\cfoot{} +\title{Praxissemester} +\usepackage[breaklinks,colorlinks,linkcolor=black,citecolor=black,filecolor=black,urlcolor=black]{hyperref} + +\begin{document} + + \include{titlepage/titlepage} + \tableofcontents + \newpage + \listoffigures + \include{example/example} + + \printbibliography[title=Literaturverzeichnis] + +\end{document} \ No newline at end of file diff --git a/titlepage/titlepage.tex b/titlepage/titlepage.tex new file mode 100644 index 0000000..7914b74 --- /dev/null +++ b/titlepage/titlepage.tex @@ -0,0 +1,28 @@ +\newcommand{\HRule}[2]{\noindent\rule[#1]{\linewidth}{#2}} +\newcommand{\vlinespace}[1]{\vspace*{#1\baselineskip}} +\newcommand{\titleemph}[1]{\textbf{#1}} +\begin{titlepage} + \sffamily + \includegraphics[width=5cm]{example} + \hfill + \includegraphics[width=5cm]{example} + \HRule{13pt}{1pt} + \centering + \Large + \vlinespace{5}\\ + Something for\\ + \huge + \textbf{Someone}\\ + \Large + \vlinespace{3} + Lala und Lullu\\ + writing in \LaTeX\\ + \vlinespace{6} + \huge + \textbf{Surname Lastname}\\ + \Large + \vfill + \raggedright{} + \HRule{13pt}{1pt} \\ + \titleemph{Something else:} Oh yeah +\end{titlepage} \ No newline at end of file