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/README.md b/README.md deleted file mode 100644 index 31497bc..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# Latexvorlage - 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..e1fd96c --- /dev/null +++ b/example/example.tex @@ -0,0 +1,74 @@ +\chapter{Bilder} \label{sec:pictures} + +\section{Einzeln} + +\begin{figure}[H] + \begin{center} + \includegraphics[width=0.5\linewidth]{example} + \caption{Beispielbild 1} + \label{fig:example-1} + \end{center} +\end{figure} + +\newpage + +\section{Doppelt} + +\begin{figure}[H] + \begin{center} + \begin{subfigure}[b]{0.48\linewidth} + \includegraphics[width=\textwidth]{example} + \caption{Beispielbild 2} + \label{fig:example-2} + \end{subfigure} + \begin{subfigure}[b]{0.48\linewidth} + \includegraphics[width=\textwidth]{example} + \caption{Beispielbild 3} + \label{fig:example-3} + \end{subfigure} + \caption{Beispielbilder} + \label{fig:examples} + \end{center} +\end{figure} + +Die \refa{fig:example-2} ist super! + +Schau dir mal \refk{sec:pictures} an! + +\chapter{Bibliography} + +\cite[vgl.][]{example-book} + +\cite[][ein Bild]{example-online} + +Vielleicht reicht auch Google\wwwlink{google.de}... + +\chapter{Abkürzungen} + +\ac{html} ist super. \acf{js} wird ausgeschrieben \engl{written out}. \acs{js} wird nur abgekürzt. + +\chapter{Programmierung} + +\section{Lstlisting} + +\begin{lstlisting} [caption=Zugriff auf Klassen über eine Nachschlagetabelle, label=code:lookup-table] + const bgColor = { + blue: "bg-blue-600", + red: "bg-red-600", + green: "bg-green-600", + }; + bgColor[props.color] +\end{lstlisting} + +\section{Verbatim} + +\begin{verbatim} +$ sudo apt-get update +$ sudo apt-get install python +\end{verbatim} + +\chapter{Glossary} + +\gls{latex} + +\gls{swagger} 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..1436263 --- /dev/null +++ b/main.tex @@ -0,0 +1,203 @@ +\documentclass[ + paper=a4, + twoside=false, + parskip=half, + listof=entryprefix, + listof=totoc, + index=totoc, + bibliography=totoc, + headsepline, +]{scrbook} + +\usepackage{silence} +\WarningFilter{biblatex}{File 'ngerman-iso.lbx'} +\WarningFilter{biblatex}{'\mainlang'} +\WarningFilter{biblatex}{Bibliography string 'online' untranslated} +\WarningFilter{hyperref}{Token not allowed in a PDF string} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Fonts Fonts Fonts +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\usepackage[utf8]{inputenc} +\usepackage[ngerman]{babel} +\usepackage[T1]{fontenc} + +\usepackage{scrhack} +\usepackage{pdfpages,graphicx,subcaption,lastpage,xspace} +\graphicspath{ {./images} } +\usepackage{float,xcolor,csquotes,microtype,etoolbox} +\MakeOuterQuote{"} +\usepackage[automark,markcase=ignoreuppercase,autooneside=false]{scrlayer-scrpage} +\usepackage[official]{eurosym} +\usepackage[breaklinks,colorlinks,linkcolor=black,citecolor=black,filecolor=black,urlcolor=black]{hyperref} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Listings Paket +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\usepackage{listings,caption,pmboxdraw} +\definecolor{codebg}{rgb}{0.95,0.95,0.95} +\definecolor{lightgray}{rgb}{.9,.9,.9} +\definecolor{darkgray}{rgb}{.4,.4,.4} +\definecolor{purple}{rgb}{0.65, 0.12, 0.82} + +\lstdefinelanguage{JavaScript}{ + keywords={break, case, catch, continue, debugger, default, delete, do, else, false, finally, for, function, if, in, instanceof, new, null, return, switch, this, throw, true, try, typeof, var, void, while, with, const}, + morecomment=[l]{//}, + morecomment=[s]{/*}{*/}, + morestring=[b]', + morestring=[b]", + ndkeywords={class, export, boolean, throw, implements, import, this}, + keywordstyle=\color{blue}\bfseries, + ndkeywordstyle=\color{darkgray}\bfseries, + identifierstyle=\color{black}, + commentstyle=\color{purple}\ttfamily, + stringstyle=\color{red}\ttfamily, + sensitive=true, +} +\lstset{ + basicstyle =\ttfamily\color{black}\small, + keywordstyle =, + commentstyle =\color{teal}, + stringstyle =\itshape, + tabsize=2, + breaklines=true, + captionpos=b, + breakatwhitespace, + backgroundcolor={\color{codebg}}, + basewidth=0.5em, + numbers=left, + numberstyle=\tiny, + numbersep=-8pt, + language=JavaScript, +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Bibliography +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\usepackage[ + backend=biber, + urldate=long, + style=iso-authoryear, + useauthor=true, + mincitenames=1, + maxcitenames=3, + maxbibnames=99, +]{biblatex} +\addbibresource{./bib/online.bib} +\addbibresource{./bib/book.bib} +\DeclareNameAlias{default}{family-given/given-family} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Fussnoten +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\deffootnote{1.5em}{1em}{\makebox[1.5em][l]{\thefootnotemark}} +\addtolength{\skip\footins}{\baselineskip} +\setlength{\dimen\footins}{10\baselineskip} +\interfootnotelinepenalty=10000 % Verhindert das Fortsetzen von Fussnoten + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Commands +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\newcommand{\workDatum}{\today\xspace} +\newcommand{\workDateTime}{\today{} - \thistime\ Uhr} +\newcommand{\workFirma}{\xspace} +\newcommand{\workTitel}{} +\newcommand{\workNameStudent}{\xspace} +\newcommand{\workTyp}{\xspace} + +\newcommand{\www}[1]{\href{http://#1}{#1}} +\newcommand{\wwwhttp}[1]{\href{#1}{#1}} +\newcommand{\wwwlink}[1]{\footnote{\www{#1}}} + +\newcommand{\zB}{\mbox{z.\,B.}\xspace} +\newcommand{\ua}{\mbox{u.\,a.}\xspace} +\newcommand{\dah}{\mbox{d.\,h.}\xspace} +\newcommand{\uAe}{\mbox{u.\,a.}\xspace} + +\newcommand{\refp}[1]{Seite~\pageref{#1}\xspace} +\newcommand{\refk}[1]{Kapitel~\ref{#1}\xspace} +\newcommand{\refa}[1]{Abbildung~\ref{#1}\xspace} +\newcommand{\reft}[1]{Tabelle~\ref{#1}\xspace} +\newcommand{\reflst}[1]{Listing~\ref{#1}\xspace} + +\newcommand{\engl}[1]{(engl: \textit{#1})\xspace} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Kopf und Fusszeilen +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\usepackage{scrtime} +\pagestyle{scrheadings} +\clearpairofpagestyles +\ihead[]{\leftmark} +\ohead[]{\rightmark} +\counterwithout{footnote}{chapter} +\ifoot[\workDateTime]{\workDateTime} +\ofoot[\pagemark]{\pagemark} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Acronyms +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% https://ctan.math.washington.edu/tex-archive/macros/latex/contrib/acro/acro-manual.pdf +\usepackage{acro,supertabular,array} + +\acsetup{ + make-links=true, + list/template=supertabular, + list/heading=chapter*, + list/sort=true, + list/display=used, + list/name=Abkürzungsverzeichnis, +} + +\DeclareAcronym{html}{short=HTML,long=HyperText Markup Language} +\DeclareAcronym{js}{short=JS,long=JavaScript} + +\usepackage{todonotes} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Glossar +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\usepackage[nonumberlist,toc]{glossaries} +\usepackage{glossary-super} +\setglossarystyle{super} +\makenoidxglossaries +\renewcommand*{\glstextformat}{\textbf} +\renewcommand*{\glsnamefont}{\textbf} +\setlength{\glsdescwidth}{0.8\linewidth} + +\newglossaryentry{latex} +{ + name=Latex, + description={Is a markup language specially suited + for scientific documents} +} +\newglossaryentry{swagger} +{ + name=Swagger, + description={Is a suite of tools for API developers from SmartBear Software and a former specification upon which the OpenAPI Specification is based} +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Dokument +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{document} + + \include{titlepage/titlepage} + \include{vorspiel/vorspiel} + + \tableofcontents + \newpage + \listoffigures + \renewcommand\lstlistingname{Codefragment} + \renewcommand\lstlistlistingname{Codeverzeichnis} + \lstlistoflistings + \printacronyms[heading=addchap] + \printnoidxglossary + + \include{example/example} + + \printbibheading[title=Literaturverzeichnis] + \printbibliography[type=book,heading=subbibliography,title=Buch-Quellen] + \printbibliography[type=online,heading=subbibliography,title=Online-Quellen] + +\end{document} \ No newline at end of file diff --git a/titlepage/titlepage.tex b/titlepage/titlepage.tex new file mode 100644 index 0000000..a703186 --- /dev/null +++ b/titlepage/titlepage.tex @@ -0,0 +1,33 @@ +\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 + \vlinespace{5}\\ + \workTyp\\ + \begin{Large} + \textbf{Titel}\\ + \textbf{und mehr}\\ + \end{Large} + \vlinespace{4} + im Studiengang\\ + \\ + am \workDatum\\ + \vlinespace{4} + vorgelegt von\\ + \begin{Large} + \textbf{\workNameStudent}\\ + \end{Large} + \vlinespace{1} + Matrikelnummer: <12345> + \vfill + \raggedright{} + \HRule{13pt}{1pt} \\ + \titleemph{Erstprüfer:} Prof. \\ + \titleemph{Zweitprüfer:} Prof. +\end{titlepage} \ No newline at end of file diff --git a/vorspiel/vorspiel.tex b/vorspiel/vorspiel.tex new file mode 100644 index 0000000..8d99bff --- /dev/null +++ b/vorspiel/vorspiel.tex @@ -0,0 +1,10 @@ +\chapter*{Eidesstattliche Erklärung} + +Hiermit versichere ich, die vorliegende Arbeit selbstständig und unter ausschließlicher Verwendung der angegebenen Literatur und Hilfsmittel erstellt zu haben. + +Die Arbeit wurde bisher in gleicher oder Ähnlicher Form keiner anderen Prüfungsbehörde vorgelegt und auch nicht veröffentlicht. + +\begin{tabbing} + Esslingen, den \workDatum ~~ \= \rule{5cm}{0.3mm}\\ + \> Unterschrift +\end{tabbing}