Last active
February 25, 2016 13:22
-
-
Save jgreitemann/02297ca5fc6332114313 to your computer and use it in GitHub Desktop.
LaTeX Templates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.tex.backup | |
*.aux | |
*.log | |
*.toc | |
*.fls | |
*.fdb_latexmk | |
*.bbl | |
*.blg | |
*.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[a4paper,10pt]{scrartcl} | |
\usepackage{mystyle} | |
\title{Title} | |
\author{Jonas F. Greitemann} | |
\date{\today} | |
\begin{document} | |
\maketitle | |
\tableofcontents | |
%\include{tex/Introduction} | |
%\bibliographystyle{plain} | |
%\bibliography{References} | |
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[a4paper,10pt]{scrbook} | |
\usepackage{mystyle} | |
\title{Title} | |
\author{Jonas F. Greitemann} | |
\date{\today} | |
\begin{document} | |
\maketitle | |
\tableofcontents | |
%\include{tex/Introduction} | |
%\bibliographystyle{plain} | |
%\bibliography{References} | |
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@default_files = ('*.tex'); | |
$pdf_mode = 1; | |
$postscript_mode = $dvi_mode = 0; | |
$pdflatex = "xelatex %O %S"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\ProvidesPackage{mystyle} | |
% Page Setup | |
\usepackage{geometry} | |
\geometry{a4paper,textwidth=420pt,top=80pt,bottom=100pt} | |
% Math | |
\usepackage{amsmath} | |
\usepackage{amsfonts} | |
\usepackage{amssymb} | |
\usepackage{mathtools} | |
\usepackage{braket} | |
\usepackage{array} | |
\usepackage{dsfont} | |
% Font support | |
\usepackage[libertine]{newtxmath} | |
\usepackage[no-math]{fontspec} | |
\usepackage{xltxtra} | |
% Figures | |
\usepackage{booktabs} | |
\usepackage{wrapfig} | |
\usepackage{subcaption} | |
\usepackage{placeins} | |
% Misc. | |
\usepackage{paralist} | |
\usepackage{color} | |
\usepackage{listings} | |
\usepackage{hyperref} | |
\usepackage{multirow} | |
% Color definitions | |
\definecolor{codegreen}{rgb}{0,0.6,0} | |
\definecolor{codegray}{rgb}{0.5,0.5,0.5} | |
\definecolor{codepurple}{rgb}{0.58,0,0.82} | |
\definecolor{backcolour}{rgb}{0.95,0.95,0.92} | |
% Code listings setup | |
\lstdefinestyle{Code}{ | |
backgroundcolor=\color{backcolour}, | |
commentstyle=\color{codegreen}, | |
keywordstyle=\color{magenta}, | |
numberstyle=\tiny\color{codegray}, | |
stringstyle=\color{codepurple}, | |
basicstyle=\ttfamily\footnotesize, | |
breakatwhitespace=false, | |
breaklines=true, | |
captionpos=b, | |
keepspaces=true, | |
numbers=left, | |
numbersep=5pt, | |
showspaces=false, | |
showstringspaces=false, | |
showtabs=false, | |
tabsize=2 | |
} | |
% Font selection | |
\setmainfont[Mapping=tex-text]{Linux Libertine O} | |
\setsansfont[Mapping=tex-text]{Linux Biolinum O} | |
\setmonofont[Mapping=tex-text]{Source Code Pro} | |
% Custom math definitions | |
\renewcommand\Re{\operatorname{Re}} % real part | |
\renewcommand\Im{\operatorname{Im}} % imaginary part | |
\newcommand{\1}{\mathds{1}} % identity matrix | |
\newcommand{\artanh}{\operatorname{artanh}} % artanh | |
\newcommand{\arcoth}{\operatorname{arcoth}} % arcoth | |
\newcommand{\dl}{\partial} | |
\renewcommand{\d}{\mathrm{d}} | |
\renewcommand{\i}{\mathrm{i}} | |
\newcommand{\td}[2]{\frac{\d #1}{\d #2}} | |
\newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}} | |
\renewcommand{\div}{\operatorname{div}} | |
\newcommand{\rot}{\operatorname{rot}} | |
\newcommand{\grad}{\operatorname{grad}} | |
\newcommand{\mean}[1]{\left\langle #1\right\rangle} | |
\newcommand{\dublon}{\uparrow\downarrow} | |
\DeclareMathOperator*\Tr{Tr} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment