diff options
author | Marvin Borner | 2020-06-28 17:19:25 +0200 |
---|---|---|
committer | Marvin Borner | 2020-06-28 17:19:25 +0200 |
commit | a738067f158938d9db8ef4e9be71804a2a6ef7c2 (patch) | |
tree | c5036519f5b09d0bf4ea9beaa7084700326307d0 /.boilerplates | |
parent | 7a13e3d67691eb47e95361b61e7ac6a0598e04ff (diff) |
Way better latex template
Diffstat (limited to '.boilerplates')
-rw-r--r-- | .boilerplates/tex/.gitignore | 5 | ||||
-rw-r--r-- | .boilerplates/tex/bib/main.bib | 5 | ||||
-rw-r--r-- | .boilerplates/tex/main.tex | 51 | ||||
-rwxr-xr-x | .boilerplates/tex/run | 7 | ||||
-rw-r--r-- | .boilerplates/txt/tex.tex | 23 |
5 files changed, 68 insertions, 23 deletions
diff --git a/.boilerplates/tex/.gitignore b/.boilerplates/tex/.gitignore new file mode 100644 index 0000000..f01a3df --- /dev/null +++ b/.boilerplates/tex/.gitignore @@ -0,0 +1,5 @@ +*.log +*.bbl +*.blg + +build/ diff --git a/.boilerplates/tex/bib/main.bib b/.boilerplates/tex/bib/main.bib new file mode 100644 index 0000000..e7b117b --- /dev/null +++ b/.boilerplates/tex/bib/main.bib @@ -0,0 +1,5 @@ +@book{beispiel, + author = {Borner, Marvin}, + year = {2020}, + title = {Dies ist ein Beispiel}, +} diff --git a/.boilerplates/tex/main.tex b/.boilerplates/tex/main.tex new file mode 100644 index 0000000..485184b --- /dev/null +++ b/.boilerplates/tex/main.tex @@ -0,0 +1,51 @@ +\documentclass[a4paper]{article} + +% Packages +\usepackage[a4paper, inner=2.5cm, outer=2.5cm, top=2.5cm, bottom=2cm, bindingoffset=0cm]{geometry} +\usepackage{amsmath,amsthm,amssymb,amsfonts} +\usepackage{graphicx} +\usepackage[colorlinks=true, allcolors=blue]{hyperref} +\usepackage{fontspec,xunicode,xltxtra} +\usepackage{biblatex} + +% GERMAN +%\usepackage[ngerman=ngerman-x-latest]{hyphsubst} +%\usepackage[ngerman]{babel} + +% ENGLISH +\usepackage[USenglish]{babel} +\usepackage{hyphsubst} + +% Figures +\graphicspath{{figures/}} + +% Citations +\addbibresource{bib/main.bib} + +\begin{document} + +\title{Awesome paper} +\author{Marvin Borner} +\date{\today} + +\maketitle + +%\tableofcontents + +\begin{abstract} + Writing a professional paper in latex can be hard and exhausting. It takes a long time to compile but it's just the best option if you need a flawless vectorized font with a specific instruction set. +\end{abstract} + +\section{Introduction} +Welcome back! + +\begin{equation} + \label{simple_equation} + \alpha = \sqrt{\beta} +\end{equation} + +%\includegraphics[width=0.5\textwidth]{test} + +%\printbibliography[heading=bibintoc] + +\end{document} diff --git a/.boilerplates/tex/run b/.boilerplates/tex/run new file mode 100755 index 0000000..e2a969a --- /dev/null +++ b/.boilerplates/tex/run @@ -0,0 +1,7 @@ +#!/usr/bin/env sh + +mkdir -p build/ && + xelatex --output-directory=build/ main && + biber --input-directory=build/ main && + xelatex --output-directory=build/ main && + zathura build/main.pdf diff --git a/.boilerplates/txt/tex.tex b/.boilerplates/txt/tex.tex deleted file mode 100644 index 9588fa4..0000000 --- a/.boilerplates/txt/tex.tex +++ /dev/null @@ -1,23 +0,0 @@ -\documentclass{article} -\usepackage{graphicx} - -\begin{document} - -\title{Awesome paper} -\author{Marvin Borner} - -\maketitle - -\begin{abstract} -Writing a professional paper in latex can be hard and exhausting. It takes a long time to compile but it's just the best option if you need a flawless vectorized font with a specific instruction set. -\end{abstract} - -\section{Introduction} -Welcome back! - -\begin{equation} - \label{simple_equation} - \alpha = \sqrt{\beta} -\end{equation} - -\end{document} |