Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LaTeX Template HsH
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Wille
LaTeX Template HsH
Commits
21145af6
Commit
21145af6
authored
4 years ago
by
Jan Wille
Browse files
Options
Downloads
Patches
Plain Diff
final touches
parent
75eb33fb
No related branches found
No related tags found
1 merge request
!7
Example
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
project.pdf
+0
-0
0 additions, 0 deletions
project.pdf
project.tex
+56
-18
56 additions, 18 deletions
project.tex
src/HsH-report.cls
+1
-0
1 addition, 0 deletions
src/HsH-report.cls
src/config.tex
+10
-0
10 additions, 0 deletions
src/config.tex
src/personal.tex
+5
-6
5 additions, 6 deletions
src/personal.tex
with
72 additions
and
24 deletions
project.pdf
+
0
−
0
View file @
21145af6
No preview for this file type
This diff is collapsed.
Click to expand it.
project.tex
+
56
−
18
View file @
21145af6
...
...
@@ -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
j
ow could you align formulas?
and
h
ow 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
numer
ieren?
}
\notag
\\
&
= 33,25
&&
\mbox
{
|
don't
num
b
er
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}
This diff is collapsed.
Click to expand it.
src/HsH-report.cls
+
1
−
0
View file @
21145af6
...
...
@@ -85,6 +85,7 @@
\RequirePackage
{
hyperref
}
\RequirePackage
{
bookmark
}
\RequirePackage
{
csquotes
}
\RequirePackage
{
soul
}
% config for header and footer
\pagestyle
{
scrheadings
}
...
...
This diff is collapsed.
Click to expand it.
src/config.tex
+
10
−
0
View file @
21145af6
\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
,
...
...
This diff is collapsed.
Click to expand it.
src/personal.tex
+
5
−
6
View file @
21145af6
...
...
@@ -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
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment