Skip to content

Instantly share code, notes, and snippets.

@nemesit
Created December 17, 2014 17:35
Show Gist options
  • Save nemesit/c95b6398683488b8a55a to your computer and use it in GitHub Desktop.
Save nemesit/c95b6398683488b8a55a to your computer and use it in GitHub Desktop.
%!TEX TS-program = lualatex
%!TEX TS-options = --shell-escape
\documentclass{scrreprt}
\usepackage[autostyle]{csquotes}
\usepackage[urw-garamond]{mathdesign}
%\usepackage[euler-digits,euler-hat-accent]{eulervm} % math TODO: not working load before fontspec
\usepackage[no-math]{fontspec}
\usepackage{mathrsfs,amsmath}
\usepackage{mathtools} % AMSMath Erweiterung und Bugfixes
% includes \mathclap, \substack
% \sum_{\mathclap{\substack{...}}}
% use \; after sum for nice space
\usepackage{cancel}
\renewcommand\CancelColor{\color{red}}
\usepackage{siunitx} % Unit typesetting
% $\SI{3.44e-4}{m}$ instead of
% $3.44\times 10^{-4}\,\mathrm{m}$
\setmainfont[Ligatures=TeX]{Garamond Premier Pro}
\usepackage{luacode,luatexbase}
\usepackage[
backend=biber,
style=authoryear-icomp,
sortlocale=de_DE,
natbib=true,
url=false,
style=numeric-comp,
doi=true,
eprint=false
]{biblatex}
\addbibresource{biblatex-examples.bib}
\usepackage{lastpage}
\usepackage[automark,headsepline,footsepline]{scrlayer-scrpage}
\automark{section}
\usepackage{fixltx2e}
\usepackage{pgffor} % for loops n stuff
\newcommand\myrepeat[1]{%
\luaexec{
t = {}
s = [[\luaescapestring{#1}]]
for k, x in string.gmatch(s, "Hello") do
t[k]=x
end
}}
\clearpairofpagestyles
\cfoot[\pagemark]{\pagemark}
\lehead{\headmark}
\rohead{\headmark}
\pagestyle{scrheadings}
\usepackage[]{hyperref}
\hypersetup{
colorlinks=true,
}
\setmonofont[Scale=0.8]{Menlo}
\newcommand*\idiff{\mathrm{d}}
\newcommand*\diff{\mathop{}\!\mathrm{d}}
\newcommand*\Diff[1]{\mathop{}\!\mathrm{d^#1}}
\usepackage[all]{xy}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{verbatim}
\usetikzlibrary{calc}
\begin{document}
Hello
\fraac
\frr
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment