Added SW readme and latex build files
This commit is contained in:
parent
0e93cd2d61
commit
2217f62253
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
latex/build/
|
||||||
|
latex/tmp/
|
||||||
35
latex/Makefile
Normal file
35
latex/Makefile
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
BUILDDIR = build
|
||||||
|
SRCDIR = src
|
||||||
|
RESDIR = res
|
||||||
|
TEMPDIR = tmp
|
||||||
|
|
||||||
|
CC = latexmk
|
||||||
|
CFLAGS = -pdf -shell-escape -halt-on-error
|
||||||
|
|
||||||
|
|
||||||
|
TARGETS = $(BUILDDIR)/thesis.pdf
|
||||||
|
|
||||||
|
|
||||||
|
all: precomp $(TARGETS) postcomp
|
||||||
|
|
||||||
|
precomp:
|
||||||
|
@mkdir -p $(TEMPDIR)
|
||||||
|
@cd $(TEMPDIR) && ln -s ../$(SRCDIR)/* .
|
||||||
|
@cd $(TEMPDIR) && ln -s ../$(RESDIR)/* .
|
||||||
|
|
||||||
|
postcomp:
|
||||||
|
@rm -r $(TEMPDIR)
|
||||||
|
|
||||||
|
$(BUILDDIR)/thesis.pdf: $(TEMPDIR)/thesis.tex
|
||||||
|
$(CC) $(CFLAGS) -output-directory=../$(BUILDDIR) -cd $<
|
||||||
|
|
||||||
|
f: clean all
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -r $(BUILDDIR)
|
||||||
|
|
||||||
|
show:
|
||||||
|
okular $(TARGETS) &
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: all precomp postcomp show clean f
|
||||||
26
latex/README.md
Normal file
26
latex/README.md
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# Bachelorarbeit
|
||||||
|
|
||||||
|
## Latex Quellcode
|
||||||
|
|
||||||
|
#### Kompilieren
|
||||||
|
|
||||||
|
Durch ausführen des Befehls
|
||||||
|
```bash
|
||||||
|
$ make
|
||||||
|
```
|
||||||
|
wird ein neuer `build` ordner erstellt, in welchem das kompilierte Dokument,
|
||||||
|
`thesis.pdf` zu finden ist.
|
||||||
|
|
||||||
|
Wenn der `build` ordner bereits existiert, kann
|
||||||
|
```bash
|
||||||
|
$ make f
|
||||||
|
```
|
||||||
|
genutzt werden, um eine neu-Kompilierung zu erzwingen.
|
||||||
|
|
||||||
|
#### Auto-Formatierung
|
||||||
|
|
||||||
|
Die Auto-Formatierung scheint aus Gründen manchmal noch nicht richtig zu funktionieren
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ latexindent -w -s -l -m [filename] -c build
|
||||||
|
```
|
||||||
54
latex/src/thesis.tex
Normal file
54
latex/src/thesis.tex
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
%
|
||||||
|
% Default template copied from Overleaf
|
||||||
|
%
|
||||||
|
|
||||||
|
|
||||||
|
%--------------------
|
||||||
|
% Packages
|
||||||
|
% -------------------
|
||||||
|
\documentclass[11pt,a4paper]{article}
|
||||||
|
\usepackage[utf8x]{inputenc}
|
||||||
|
\usepackage[T1]{fontenc}
|
||||||
|
%\usepackage{gentium}
|
||||||
|
\usepackage{mathptmx} % Use Times Font
|
||||||
|
|
||||||
|
|
||||||
|
\usepackage[pdftex]{graphicx} % Required for including pictures
|
||||||
|
\usepackage[swedish]{babel} % Swedish translations
|
||||||
|
\usepackage[pdftex,linkcolor=black,pdfborder={0 0 0}]{hyperref} % Format links for pdf
|
||||||
|
\usepackage{calc} % To reset the counter in the document after title page
|
||||||
|
\usepackage{enumitem} % Includes lists
|
||||||
|
|
||||||
|
\frenchspacing % No double spacing between sentences
|
||||||
|
\linespread{1.2} % Set linespace
|
||||||
|
\usepackage[a4paper, lmargin=0.1666\paperwidth, rmargin=0.1666\paperwidth, tmargin=0.1111\paperheight, bmargin=0.1111\paperheight]{geometry} %margins
|
||||||
|
%\usepackage{parskip}
|
||||||
|
|
||||||
|
\usepackage[all]{nowidow} % Tries to remove widows
|
||||||
|
\usepackage[protrusion=true,expansion=true]{microtype} % Improves typography, load after fontpackage is selected
|
||||||
|
|
||||||
|
\usepackage{lipsum} % Used for inserting dummy 'Lorem ipsum' text into the template
|
||||||
|
|
||||||
|
|
||||||
|
%-----------------------
|
||||||
|
% Set pdf information and add title, fill in the fields
|
||||||
|
%-----------------------
|
||||||
|
\hypersetup{
|
||||||
|
pdfsubject = {},
|
||||||
|
pdftitle = {},
|
||||||
|
pdfauthor = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
%-----------------------
|
||||||
|
% Begin document
|
||||||
|
%-----------------------
|
||||||
|
\begin{document} %All text i dokumentet hamnar mellan dessa taggar, allt ovanför är formatering av dokumentet
|
||||||
|
|
||||||
|
\section{Introduction}
|
||||||
|
|
||||||
|
\lipsum[1-3]
|
||||||
|
|
||||||
|
|
||||||
|
\subsection*{Subtitle}
|
||||||
|
\lipsum[4-5]
|
||||||
|
\end{document}
|
||||||
5
sw/README.md
Normal file
5
sw/README.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Bachelorarbeit
|
||||||
|
|
||||||
|
## Software
|
||||||
|
|
||||||
|
`TODO`
|
||||||
Loading…
Reference in New Issue
Block a user