Initial commit

This commit is contained in:
Simon Bruder 2020-10-03 14:56:13 +02:00
commit 1b85697938
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
8 changed files with 149 additions and 0 deletions

8
.drone.yml Normal file
View file

@ -0,0 +1,8 @@
kind: pipeline
name: default
type: exec
steps:
- name: build
commands:
- nix-build

1
.envrc Normal file
View file

@ -0,0 +1 @@
use nix

16
.gitignore vendored Normal file
View 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
View 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
View 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
View 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
View 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}

1
shell.nix Normal file
View file

@ -0,0 +1 @@
import ./default.nix