Merge branch 'MT2016-11-14'
[documents.git] / contracts / commonpreamble.tex
diff --git a/contracts/commonpreamble.tex b/contracts/commonpreamble.tex
new file mode 100644 (file)
index 0000000..efc1d88
--- /dev/null
@@ -0,0 +1,101 @@
+\documentclass[10pt, oneside, a4paper, onecolumn, parskip, hidelinks]{scrartcl}
+% Definition of writing area
+%\setlength{\textwidth}{18 true cm}
+%\setlength{\textheight}{25 true cm}
+%\oddsidemargin 0.5 cm
+%\evensidemargin 0.5 cm
+%\topmargin 0 cm
+\usepackage[margin=1.3cm]{geometry}
+
+%-------------------------PACKAGES-------------------------------
+
+% Load Babel language support
+\usepackage[austrian, ngerman]{babel}
+\usepackage[ref=short]{scrjura}
+\KOMAoptions{ref=nosentence}
+\setkeys{contract}{preskip=1.5\baselineskip, postskip=0\baselineskip}
+\usepackage{paralist}
+\let\itemize\compactitem
+  \let\enditemize\endcompactitem
+  \let\enumerate\compactenum
+  \let\endenumerate\endcompactenum
+  \let\description\compactdesc
+  \let\enddescription\endcompactdesc
+  \pltopsep=-3pt
+  \plpartopsep=0pt
+  \plitemsep=1pt
+  \plparsep=0pt
+  \setdefaultenum{\sffamily\bfseries a}{b}{}{}
+\usepackage[utf8]{inputenc}
+\usepackage{textcomp}
+\usepackage{amsmath}
+\usepackage{amsfonts}
+\usepackage{mathcomp}
+\usepackage{acronym}
+\usepackage{subfigure}
+% Produce important box (see section MACROS below)
+% Used commands: environment "Sbox"
+\usepackage{fancybox}
+\usepackage{xcolor}
+% Used commands: \url
+\usepackage{url}
+
+% OPTIONAL
+% Make TOC, references, citations and URLs clickable
+% Add bookmarks to a pdf document
+% Interesting options: pdfpagelabels, pdftitle={...}, pdfauthor={...}, pdfsubject={...}
+% Used commands: \phantomsection, \href
+\usepackage[plainpages=false, pdfpagelabels]{hyperref}
+\usepackage{pdfcomment}
+
+% Provide command \phantomsection in case the package hyperref is not loaded
+\providecommand*{\phantomsection}{}
+
+% My custom commands
+\newcommand{\FigureWidth}{10cm}
+
+% OPTIONAL
+% Create Index
+% Hints: - Include "makeidx" in the options list of the command \documentclass
+%        - If a word should be included in the Index, prepend it with the command \index
+%          e.g. \index{LaTeX}LaTeX
+%          The parameter of the command \index is used as the text of the Index entry
+%        - Also sections can be included in the Index (see the documentation for details)
+%\makeindex
+%\usepackage{makeidx}
+
+%-------------------------GRAPHICS-------------------------------
+
+% for PDFLaTeX
+\newif\ifpdf
+\ifx\pdfoutput\undefined
+    \pdffalse
+\else
+    \pdfoutput=1
+    \pdftrue
+\fi
+
+\ifpdf
+    \usepackage[pdftex]{graphicx}
+    \DeclareGraphicsExtensions{.png, .jpg, .pdf}
+\else
+    \usepackage{graphicx}
+    \DeclareGraphicsExtensions{.ps, .eps}
+\fi
+
+% Add graphics paths in the following way:
+% \graphicspath{{path1/}{path2/}...}
+\graphicspath{{gfx/}{gfx/ch_hints/}}
+
+%-------------------------MACROS---------------------------------
+
+% Use the important environment (important box) to emphasize important things
+\newenvironment{important}
+{\begin{Sbox}\begin{minipage}{11cm}}{\end{minipage}\end{Sbox}
+\begin{center}\shadowbox{\TheSbox}\end{center}}
+
+% Command: todo
+\newcommand{\todo}[1]
+{\marginpar{\baselineskip0ex\rule{2,5cm}{0.5pt}\\[0ex]{\textcolor{red}{\tiny\textsf{#1}}}}}
+%\newcommand{\todo}[1]{}
+