% Teckids e.V. - Allgemeine Vorlage
%-
% Copyright © 2013, 2015, 2018
%	Dominik George <dominik.george@teckids.org>
% Copyright © 2014, 2015, 2017, 2018, 2019
%	Thorsten “mirabilos” Glaser <thorsten.glaser@teckids.org>
% Copyright © 2015, 2016
%	Thorsten Glaser <t.glaser@tarent.de>
% Copyright © 2015
%	Niklas Bildhauer <niklas.bildhauer@teckids.org>
%
% Provided that these terms and disclaimer and all copyright notices
% are retained or reproduced in an accompanying document, permission
% is granted to deal in this work without restriction, including un‐
% limited rights to use, publicly perform, distribute, sell, modify,
% merge, give away, or sublicence.
%
% This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
% the utmost extent permitted by applicable law, neither express nor
% implied; without malicious intent or gross negligence. In no event
% may a licensor, author or contributor be held liable for indirect,
% direct, other damage, loss, or other issues arising in any way out
% of dealing in the work, even if advised of the possibility of such
% damage or existence of a defect, except proven that it results out
% of said person's immediate fault when using the work as intended.
%
% Note that this style includes teckids1zero under CC-BY-SA 3.0.

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{teckids}

\RequirePackage{wrapfig}
\RequirePackage{intcalc}

\RequirePackage[utf8]{inputenc}
\RequirePackage[british,ngerman,shorthands=off,safe=none,math=normal,main=ngerman,headfoot=ngerman,hyphenmap=other*]{babel}%
\RequirePackage{color}
\RequirePackage[T1]{fontenc}
\RequirePackage{textcomp}
\RequirePackage{graphicx}
\RequirePackage[encoding,filenameencoding=utf8]{grffile}%
\RequirePackage{aeguill}
\usepackage[table]{xcolor}
\usepackage{newunicodechar}
\RequirePackage[shortcuts]{extdash}
\RequirePackage[margin=2cm,bottom=2cm,footskip=8mm]{geometry}
\RequirePackage{framed}
\RequirePackage{hyperref}
\linespread{1.15}
\RequirePackage{pxfonts}
\renewcommand{\familydefault}{\sfdefault}
\RequirePackage{hyphenat}
\RequirePackage{teckids1zero}

\DeclareGraphicsExtensions{.pdf,.png,.jpg}

\setlength{\parskip}{0.3cm}
\setlength{\parindent}{0cm}

%% Alias für die Teckids-Logo-Grafik
\newcommand{\teckidslogo}[1][10cm]{\includegraphics[width=#1]{teckids_logo}}

%% Makro für einen Protokoll-/Berichtskopf mit Titel und Logo
\newcommand{\teckidshead}[1]{
 \begin{minipage}[c]{0.5\textwidth}\centering\Large\textbf{#1}\end{minipage}
 \hfill
 \begin{minipage}[c]{0.4\textwidth}\teckidslogo[\textwidth]\end{minipage}
}
%% Nur für Sonderfälle!
\newcommand{\teckidsheadleft}[1]{
 \begin{minipage}[c]{0.5\textwidth}\Large\textbf{#1}\end{minipage}
 \hfill
 \begin{minipage}[c]{0.4\textwidth}\teckidslogo[\textwidth]\end{minipage}
}

%% Makro für Überschrift und Grunddaten eines Protokolls
%%
%% Argumente:
%%  #1 - Titel der Sitzung
%%  #2 - Datum der Sitzung
%%  #3 - Ort der Sitzung
%%  #4 - Anzahl der anwesenden, stimmberechtigten Mitglieder
%%  #5 - Name des Sitzungsleiters
%%  #6 - Name des Protokollanten
\newcommand{\teckidsproto}[8]{
 \teckidshead{Protokoll der #1}
 \section{Ort, Datum und Beschlussfähigkeit}

 \begin{tabular}{ l | l }
  Datum & #2, Beginn #7 Uhr\\
  Ort & #3\\
  Anwesende, stimmberechtigte Mitglieder & #4\\
  Sitzungsleiter/in & #5\\
  Protokollant/in & #6
 \end{tabular}

 \renewcommand{\contentsname}{}
 \section{Tagesordnung und Inhalt des Protokolls}

 \tableofcontents

 \section{Diskussion der Tagesordnungspunkte}

 %% Kommando für Protokollende definieren
 \newcommand\teckidsprotoend{
  \section{Schluss und amtliche Bestätigung}
  \emph{Die Sitzung wurde um #8 Uhr beendet.
   Die Richtigkeit und Vollständigkeit des Protokolls wird amtlich bestätigt.}

  \vspace{1.5cm}\parbox{10cm}{
   \centering\hrule
   \strut \centering\footnotesize Ort, Datum, Unterschrift (#6)
  }
 }
}

%% Makro für Überschrift und Grunddaten eines vereinfachten Protokolls
%%
%% Argumente:
%%  #1 - Titel der Sitzung (mit Genitivartikel)
%%  #2 - Datum der Sitzung
%%  #3 - Ort der Sitzung
%%  #4 - Anzahl der anwesenden Mitglieder
%%  #5 - Name des Sitzungsleiters
%%  #6 - Name des Protokollanten
\newcommand{\teckidsprotolight}[8]{
 \teckidshead{Protokoll #1}
 \section{Ort, Datum und Anwesenheit}

 \begin{tabular}{ l | l }
  Datum & #2, Beginn #7 Uhr, Ende #8\\
  Ort & #3\\
  Anwesende Mitglieder & #4\\
  Sitzungsleiter/in & #5\\
  Protokollant/in & #6
 \end{tabular}

 \renewcommand{\contentsname}{}
 \section{Inhalt des Protokolls}

 \tableofcontents

 \section{Diskussion der Tagesordnungspunkte}


 %% Kommando für Protokollende definieren
 \newcommand\teckidsprotoend{
  \section{Schluss und amtliche Bestätigung}
  \emph{Die Sitzung wurde um #8 Uhr beendet.
   Die Richtigkeit und Vollständigkeit des Protokolls wird amtlich bestätigt.}

  \vspace{1.5cm}\parbox{10cm}{
   \centering\hrule
   \strut \centering\footnotesize Ort, Datum, Unterschrift (#6)
  }
 }
}

%% Makro für eine Abstimmung mit Ergebnis.
\newcommand{\motion}[5]{\begin{minipage}{\linewidth}
\begin{framed}
 %% Antrag
 \textbf{#1 beantragt: #2}

 %% Stimmgenaues Ergebnis
 Abstimmungsergebnis: #3 Ja-Stimmen, #4 Nein-Stimmen, #5 Enthaltungen.

 %% Variablen zur Berechnung
 \newcount\cJ
 \newcount\cN
 \newcount\cE
 \cJ=#3
 \cN=#4
 \cE=#5

 %% Abstimmungsergebnis final
 \textbf{
  \ifnum\cJ>\cN
   \color{green}{Der Antrag wurde angenommen.}
  \else
   \color{red}{Der Antrag wurde abgelehnt.}
  \fi
 }
\end{framed}
\end{minipage}}

\newcommand{\teckidstodo}[3]{
 \textbf{Aufgabe für #1, zur Erledigung bis #2}: #3
}

% Originally from https://tex.stackexchange.com/a/159701/43807
% Question by Charles Staats <https://tex.stackexchange.com/users/484>
% © 2014 Fran <https://tex.stackexchange.com/users/11604/fran>
% © 2014, 2017 mirabilos <thorsten.glaser@teckids.org>
% The part of that answer actually taken is trivial though,
% so the CC-WIKI requirements do not apply to this evolved excerpt.
% This applies to fragments of the next two paragraphs only.


\newcommand\Warning{%
 \makebox[1.4em][c]{%
 \makebox[0pt][c]{\raisebox{.1em}{\footnotesize!}}%
 \makebox[0pt][c]{\color{red}\huge$\bigtriangleup$}}}%

% Set up more Unicode characters for LaTeX

\newunicodechar{⚠}{\Warning}

\usepackage{wasysym} % TeX sucks ☺
\newunicodechar{♂}{\male}
\newunicodechar{♀}{\female}
\newunicodechar{¤}{\currency}
\newunicodechar{☎}{\phone}
\newunicodechar{☏}{\phone}% XXX
\newunicodechar{⌕}{\recorder}
\newunicodechar{☇}{\lightning}
\newunicodechar{▲}{\UParrow}
\newunicodechar{▶}{\RIGHTarrow}
\newunicodechar{▼}{\DOWNarrow}
\newunicodechar{◀}{\LEFTarrow}
\newunicodechar{⌀}{\diameter}
\newunicodechar{∢}{\varangle}
\newunicodechar{⌑}{\wasylozenge}
\newunicodechar{☩}{\kreuz}
\newunicodechar{☻}{\blacksmiley}
\newunicodechar{☺}{\smiley}
\newunicodechar{☹}{\frownie}
\newunicodechar{☀}{\sun}
\newunicodechar{☼}{\sun}
\newunicodechar{✓}{\checked}
\newunicodechar{⍾}{\bell}
\newunicodechar{¢}{\cent}
\newunicodechar{‰}{\permil}
\newunicodechar{¦}{\brokenvert}
\newunicodechar{∴}{\wasytherefore}
\newunicodechar{⋈}{\bowtie}
\newunicodechar{℧}{\agemO}
\newunicodechar{☐}{\Square}
\newunicodechar{☒}{\Xbox}
\newunicodechar{☑}{\CheckedBox}
\newunicodechar{✶}{\hexstar}
\newunicodechar{✡}{\davidsstar}
\newunicodechar{♪}{\eigthnote}
\newunicodechar{♩}{\quarternote}
\newunicodechar{♫}{\twonotes}
\newunicodechar{○}{\Circle}
\newunicodechar{●}{\CIRCLE}
\newunicodechar{◖}{\LEFTCIRCLE}
\newunicodechar{◗}{\RIGHTCIRCLE}
\newunicodechar{◐}{\LEFTcircle}
\newunicodechar{◑}{\RIGHTcircle}
\newunicodechar{↺}{\leftturn}
\newunicodechar{↻}{\rightturn}
\newunicodechar{☊}{\ascnode}
\newunicodechar{☋}{\descnode}
\newunicodechar{⚪}{\fullmoon}% XXX
\newunicodechar{⚫}{\newmoon}% XXX
\newunicodechar{☾}{\leftmoon}
\newunicodechar{☽}{\rightmoon}
\newunicodechar{☉}{\astrosun}
\newunicodechar{☿}{\mercury}
\newunicodechar{♁}{\earth}
\newunicodechar{♃}{\jupiter}
\newunicodechar{♄}{\saturn}
\newunicodechar{♅}{\uranus}
\newunicodechar{♆}{\neptune}
\newunicodechar{♇}{\pluto}
\newunicodechar{♈}{\aries}
\newunicodechar{♉}{\taurus}
\newunicodechar{♊}{\gemini}
\newunicodechar{♋}{\cancer}
\newunicodechar{♌}{\leo}
\newunicodechar{♍}{\virgo}
\newunicodechar{♎}{\libra}
\newunicodechar{♏}{\scorpio}
\newunicodechar{♐}{\sagittarius}
\newunicodechar{♑}{\capricornus}
\newunicodechar{♒}{\aquarius}
\newunicodechar{♓}{\pisces}
\newunicodechar{☌}{\conjunction}
\newunicodechar{☍}{\opposition}

\newunicodechar{‑}{-\nolinebreak\hspace{0pt}}
% em dash
\def\dash{\unskip\kern.16667em\textemdash\penalty\exhyphenpenalty\hskip.16667em\relax}
% for footnotes
\newcommand{\Hair}{\kern.16667em}

\newcommand{\ankreuzen}{Bitte zum Beispiel so → \CheckedBox\hspace{0.05cm} ← ankreuzen!}
\newcommand{\angekreuzteskaestchen}{\CheckedBox\hspace{0.1cm}}
\newcommand{\ankreuzkaestchen}{\Square\hspace{0.1cm}}

\newcommand{\keineseitenzahlenbeginn}{%
 \usepackage{lastpage}%
 \usepackage{fancyhdr}%
 \setlength{\headheight}{0pt}%
 \pagestyle{fancy}%
 \fancyhead{}%
 \fancyfoot[C]{\thepage{}/\pageref*{LastPage}}%
 \renewcommand{\headrulewidth}{0pt}%
}
\newcommand{\keineseitenzahlenende}{%
 \ifnum\thepage=1%
  \fancyfoot{}%
 \fi%
}

\newcommand{\listingsinpython}{\definecolor{listinggray}{gray}{0.9}
\definecolor{lbcolor}{rgb}{0.9,0.9,0.9}
\lstset{
	backgroundcolor=\color{lbcolor},
	tabsize=4,
	rulecolor=,
	language=python,
	basicstyle=\ttfamily,
	upquote=true,
	aboveskip={\smallskipamount},
	columns=fixed,
	showstringspaces=false,
	extendedchars=true,
	breaklines=true,
	prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
	frame=single,
	showtabs=false,
	showspaces=false,
	showstringspaces=false,
	keywordstyle=\color[rgb]{0,0,1},
	commentstyle=\color[rgb]{0.133,0.545,0.133},
	stringstyle=\color[rgb]{0.627,0.126,0.941},
	literate={0}{\0}1{0\ }{\0\ }2,
	escapeinside={〈}{〉},
}
}

\newcommand{\keinumbruch}{\par\nobreak\@afterheading}
\definecolor{teckidsorangedark}{HTML}{FF6600}%
\definecolor{teckidsorangelight}{HTML}{FF9955}%
\definecolor{teckidsbluegradientlight}{HTML}{00CBFA}%
\definecolor{teckidsbluegradientdark}{HTML}{0606FA}%
\definecolor{teckidsbluestroke}{HTML}{005EBE}%

\PackageWarning{teckids}{%
 This package is deprecated!\MessageBreak
 Please use teckids2-based classes instead.\MessageBreak
}%