commit d045cdb784eb9ddf1797244920c0b3eb88a29351
parent d2e9c470e89f47ea6a5719019110dd751fa99a87
Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com>
Date: Thu, 15 Jun 2023 19:31:09 +0200
Add custom LaTeX templates
Diffstat:
2 files changed, 77 insertions(+), 0 deletions(-)
diff --git a/.config/doom/snippets/latex-mode/sty b/.config/doom/snippets/latex-mode/sty
@@ -0,0 +1,53 @@
+# -*- mode: snippet -*-
+# name: custom .sty file
+# key: sty
+# --
+
+% ENCODING
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+
+% STYLES
+\usepackage{fancyhdr} % Fancy headers and footers
+\usepackage{csquotes} % Advanced inline display and quotes
+\usepackage{xcolor} % Add color support
+\usepackage{siunitx} % Proper formatting of units
+\usepackage[margin=1in]{geometry} % Better margin sizes
+\usepackage[colorlinks=true,
+ linkcolor=black,
+ citecolor=blue,
+ urlcolor=blue]{hyperref} % Hyperlinks
+
+% FONTS
+\usepackage{amsfonts, amsmath, amssymb} % Math fonts
+\usepackage{lmodern} % Changes font to lmodern
+\usepackage{microtype} % Just makes everything look better
+
+% LANGUAGE
+\usepackage[english]{babel} % Language setting
+% \usepackage{tipa} % Support for IPA
+
+% FIGURES
+% \usepackage{booktabs} % Better tables
+% \usepackage{tikz} % Drawing pictures
+% \usepackage{algorithm} % Add algorithms
+% \usepackage{pgfplots} % Plot graphs
+\usepackage{graphicx} % Support for adding images
+ \graphicspath{ {./images/} }
+% \usepackage{minted} % Code highlighting
+ % \usemintedstyle{emacs}
+
+% BIBLIOGRAPHY
+\usepackage[style=authoryear-ibid,
+ backend=biber]{biblatex} % Referencing
+ \addbibresource{bibliography.bib}
+
+\setlength{\headheight}{14.5pt}
+\addtolength{\topmargin}{-2.5pt}
+
+% PAGE STYLE
+\pagestyle{fancy}
+\fancyhf{}
+\rhead{\leftmark}
+ % \lhead{\rightmark}
+\rfoot{Page \thepage}
diff --git a/.config/doom/snippets/latex-mode/titlepage b/.config/doom/snippets/latex-mode/titlepage
@@ -0,0 +1,23 @@
+# -*- mode: snippet -*-
+# name: custom titlepage
+# key: titlepage
+# --
+
+\begin{titlepage} % Suppresses displaying the page number on the title page and the subsequent page counts as page 1
+
+ \raggedleft % Right align the title page
+
+ \rule{1pt}{\textheight} % Vertical line
+ \hspace{0.05\textwidth} % Whitespace between the vertical line and title page text
+ \parbox[b]{0.75\textwidth}{ % Paragraph box for holding the title page text, adjust the width to move the title page left or right on the page
+
+ {\Huge\bfseries ${1:first-line} \\\[0.5\baselineskip] ${2:second-line}}\\\[2\baselineskip] % Title
+ {\large \textit{${3:subtitle}}}\\\[4\baselineskip] % Subtitle or further description
+ {\Large \textsc{${4:author}}} % Author name, lower case for consistent small caps
+
+ \vspace{0.5\textheight} % Whitespace between the title block and the publisher
+
+ {\noindent ${5:publisher}~~}\\\[\baselineskip] % Publisher and logo
+ }
+
+\end{titlepage}
+\ No newline at end of file