\usepackage[utf8]{inputenc}
%\usepackage[english]{babel}
\usepackage[T1]{fontenc}
%\usepackage[a4paper, includeheadfoot, margin=2.81cm, bottom=1cm]{geometry}                % See geometry.pdf to learn the layout options. There are lots.
%\geometry{a4paper}                   % ... or a4paper or a5paper or ...
%\geometry{landscape}                % Activate for for rotated page geometry
%\geometry{
%  includeheadfoot,
%  margin=2.81cm,
%  bottom=1cm,
%}
%\setlength{\marginparwidth}{2cm}
%\reversemarginpar

%\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent
%\usepackage[novbox]{pdfsync}
%\usepackage{eucal}
%\usepackage[mathscr]{euscript}
\usepackage{mathrsfs}
\usepackage{mathtools}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{epsfig}
\usepackage{colortbl}
\usepackage[all]{xy}
%\usepackage{listings}
\usepackage{fancyvrb}
%\usepackage{rotating}
\usepackage{graphicx}
%\usepackage[font=small,labelfont=bf]{caption}
%\usepackage{psfrag}
\usepackage[dvipsnames]{xcolor}
\usepackage{accents} %% \undertilde
%\usepackage{enumitem} %% is incompatible with amsbook
%\usepackage{enumerate}
\usepackage{blkarray, bigstrut}
\usepackage{xparse}
\usepackage{subcaption}
\renewcommand\theenumi{\alph{enumi}}
\renewcommand{\labelenumi}{(\theenumi)}

\usepackage{wrapfig}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,matrix,backgrounds,positioning,plotmarks,calc,patterns,
decorations.shapes,
decorations.fractals,
decorations.markings,
decorations.pathreplacing,
decorations.pathmorphing,
decorations.text
}
\usepackage[colorinlistoftodos,shadow]{todonotes}
\usepackage{bm}
\usepackage{multirow}
\usepackage{mdwlist}
%\usepackage{mathabx}
\usepackage{stmaryrd}
\usepackage{mathdots} %for iddots

% \usepackage{empheq}
\usepackage[toc,page]{appendix}
\usepackage{float}
%\usepackage{greekctr} % greek number, leads to "Token not allowed" in PDF bookmarks
%\usepackage{ulem}

\usepackage{bigfoot}
%\bibliographystyle{myalpha}
%\usepackage[backend=biber,style=alphabetic, giveninits=true, 
%doi=false,isbn=false,url=false, maxbibnames=8, maxalphanames=3]{biblatex}
%\includebibliography{matroid.bib}

%\usepackage[sort&compress,capitalise]{cleveref}

%\crefname{exmp}{Example}{Examples}

\usepackage[linesnumbered,commentsnumbered,ruled,vlined]{algorithm2e}
\newcommand\mycommfont[1]{\footnotesize\ttfamily\textcolor{blue}{#1}}
\SetCommentSty{mycommfont}

%\input amathmoe.sty
%\input amathmo.sty

\newtheoremstyle{mytheoremstyle} % name
    {5pt}                    % Space above
    {5pt}                    % Space below
    {\itshape}                   % Body font
    {\parindent}                           % Indent amount (empty = no indent, \parindent = para indent)
    {\bf}                   % Theorem head font
    {.}                          % Punctuation after theorem head
    {.5em}                       % Space after thm head: " " = normal interword space; \newline = linebreak
    {}  % Theorem head spec (can be left empty, meaning ‘normal’)

\theoremstyle{plain}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{axiom}[theorem]{Axiom}
\newtheorem{conj}[theorem]{Conjecture}
\newtheorem{lemm}[theorem]{Lemma}
\newtheorem{prop}[theorem]{Proposition}
\newtheorem{coro}[theorem]{Corollary}
\newtheorem{prob}[theorem]{Problem}

\newtheoremstyle{mytdefintionstyle} % name
    {5pt}                    % Space above
    {5pt}                    % Space below
    {\rm}                   % Body font
    {\parindent}                           % Indent amount
    {\bf}                   % Theorem head font
    {.}                          % Punctuation after theorem head
    {.5em}                       % Space after theorem head
    {}  % Theorem head spec (can be left empty, meaning ‘normal’)


\theoremstyle{definition}
\newtheorem{defn}[theorem]{Definition}
\newtheorem{exmp}[theorem]{Example}
\newtheorem{algo}[theorem]{Algorithm}
\newtheorem{rmrk}[theorem]{Remark}
\newtheorem*{conv}{Convention}

\newtheoremstyle{exmp_contd}
    {5pt}                    % Space above
    {5pt}                    % Space below
    {\rm}                   % Body font
    {\parindent}                           % Indent amount
    {\bf}                   % Theorem head font
    {.}                          % Punctuation after theorem head
    {.5em}                       % Space after theorem head
    {\thmname{#1}\ \thmnumber{ #2}\thmnote{#3}\ (continued)}  % Theorem head spec (can be left empty, meaning ‘normal’)
\theoremstyle{exmp_contd}
\newtheorem*{exmp_contd}{Example}

%\makeindex

\input{pre.tex}

%\definecolor{darkgreen}{rgb}{0.008,0.417,0.067}
\definecolor{darkgreen}{rgb}{0.008,0.617,0.067}
\definecolor{brown}{rgb}{0.6,0.4,0.2}

% Einige Huepfskripte; zum kurzzeitigen Verlassen der Matrix
% setzt Text relativ zur position #2=x, #3=y
\newcommand{\jumpxy}[3]{\save[]+<#2, #3>*{#1} \restore}
%#2 = rel. Richtung
\newcommand{\jumpdir}[2]{\save[]+#2*{#1} \restore}
%z.B. ist \jumpdir{TEXT}{/:a(35) +1cm/} moeglich usw....

\newif\ifjournalversion
\newcommand{\journal}[2]{\ifjournalversion #1\else #2\fi}
