Initial commit
This commit is contained in:
commit
1b85697938
8
.drone.yml
Normal file
8
.drone.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
kind: pipeline
|
||||
name: default
|
||||
type: exec
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
commands:
|
||||
- nix-build
|
16
.gitignore
vendored
Normal file
16
.gitignore
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
*.aux
|
||||
*.bbl
|
||||
*.bcf
|
||||
*.blg
|
||||
*.fdb_latexmk
|
||||
*.fls
|
||||
*.log
|
||||
*.out
|
||||
*.pdf
|
||||
*.run.xml
|
||||
*.synctex.gz
|
||||
*.toc
|
||||
*.xdv
|
||||
|
||||
/result
|
||||
/textidote.html
|
17
Makefile
Normal file
17
Makefile
Normal file
|
@ -0,0 +1,17 @@
|
|||
seminararbeit.pdf: seminararbeit.tex bibliography.bib
|
||||
latexmk -xelatex seminararbeit.tex
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f \
|
||||
*.aux \
|
||||
*.bbl \
|
||||
*.blg \
|
||||
*.fdb_latexmk \
|
||||
*.fls \
|
||||
*.log \
|
||||
*.out \
|
||||
*.pdf \
|
||||
*.synctex.gz \
|
||||
*.toc \
|
||||
*.xdv
|
7
bibliography.bib
Normal file
7
bibliography.bib
Normal file
|
@ -0,0 +1,7 @@
|
|||
@book{latexcompanion,
|
||||
author = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
|
||||
title = "The \LaTeX\ Companion",
|
||||
year = "1993",
|
||||
publisher = "Addison-Wesley",
|
||||
address = "Reading, Massachusetts"
|
||||
}
|
28
default.nix
Normal file
28
default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
let
|
||||
texlive = pkgs.texlive.combine {
|
||||
inherit (pkgs.texlive) scheme-medium
|
||||
biber
|
||||
biblatex
|
||||
biblatex-iso690
|
||||
csquotes
|
||||
datetime2
|
||||
datetime2-german
|
||||
lipsum;
|
||||
};
|
||||
in
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "seminararbeit.pdf";
|
||||
|
||||
nativeBuildInputs = [
|
||||
texlive
|
||||
];
|
||||
|
||||
src = pkgs.nix-gitignore.gitignoreSource [] ./.;
|
||||
|
||||
# We only build a PDF
|
||||
dontFixup = true;
|
||||
|
||||
installPhase = "cp $name $out";
|
||||
}
|
71
seminararbeit.tex
Normal file
71
seminararbeit.tex
Normal file
|
@ -0,0 +1,71 @@
|
|||
%! TEX program = xelatex
|
||||
\documentclass{scrreprt}
|
||||
|
||||
\KOMAoptions{
|
||||
%twocolumn=on,
|
||||
%DIV=24,
|
||||
parskip=half,
|
||||
twoside=on,
|
||||
}
|
||||
|
||||
% hyphenation
|
||||
\usepackage[ngerman]{babel}
|
||||
|
||||
% hyperlinks and pdf toc
|
||||
\usepackage[unicode, hidelinks]{hyperref}
|
||||
\usepackage{bookmark}
|
||||
|
||||
% cretion of nice dates from numbers
|
||||
\usepackage[useregional]{datetime2}
|
||||
|
||||
% dummy text
|
||||
\usepackage{lipsum}
|
||||
|
||||
% roman font for title
|
||||
\addtokomafont{disposition}{\rmfamily}
|
||||
|
||||
% heading
|
||||
\usepackage[automark, headsepline]{scrlayer-scrpage}
|
||||
\pagestyle{scrheadings}
|
||||
|
||||
% bibliography
|
||||
\usepackage{csquotes}
|
||||
\usepackage[
|
||||
style=iso-authoryear,
|
||||
]{biblatex}
|
||||
\addbibresource{bibliography.bib}
|
||||
|
||||
\subject{Seminararbeit}
|
||||
\title{Titel der Arbeit}
|
||||
\subtitle{Untertitel}
|
||||
\author{Simon Bruder}
|
||||
\date{\DTMdisplaydate{2021}{01}{01}{-1}}
|
||||
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
% pre
|
||||
\pagenumbering{Roman}
|
||||
\phantomsection{}
|
||||
\addcontentsline{toc}{chapter}{Inhaltsverzeichnis}
|
||||
\tableofcontents{}
|
||||
|
||||
% main
|
||||
\clearpage{}
|
||||
\pagenumbering{arabic}
|
||||
|
||||
\chapter{Einleitung}
|
||||
|
||||
\section{lol}
|
||||
\lipsum
|
||||
|
||||
\section{foo}
|
||||
\lipsum\cite{latexcompanion}
|
||||
|
||||
% bibliography
|
||||
\clearpage
|
||||
\phantomsection
|
||||
\addcontentsline{toc}{chapter}{Literatur}
|
||||
\printbibliography
|
||||
|
||||
\end{document}
|
Reference in a new issue