%%!TEX root=MathIng.tex
%\documentclass[12pt,a4paper,parskip=full,chapterprefix=false]{scrbook}
\documentclass[12pt,parskip=half, DIV=calc, BCOR=10mm, x11names,a4paper,parskip=full,chapterprefix=false]{scrbook}
%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\usepackage{amsmath,amssymb,amsthm}
%\usepackage[footnotesize,sl,SL,hang,tight]{subfigure}
%\usepackage{longtable}
%\usepackage[font={small,sl},hang,labelfont=bf]{caption}
%\usepackage{booktabs}
%
%\ifpdfoutput{%
%    \usepackage[pdftex]{graphicx}
%    \usepackage[]{pdfpages}
%}{%
%    \usepackage{graphicx}
%}
%\usepackage{rotating}
%
%\usepackage{scrlayer-scrpage}
%\KOMAoptions{headinclude}
%
%% **** Defining chapter style start ****
%
%\usepackage[T1]{fontenc}
%\usepackage{xcolor}
%\usepackage{charter}
%
%\definecolor{mybluei}{RGB}{28,138,207}
%\definecolor{myblueii}{RGB}{131,197,231}
%
%\addtokomafont{disposition}{\usefont{T1}{qhv}{b}{n}\selectfont\color{myblueii}}
%
%\addtokomafont{chapter}{\fontsize{30pt}{30pt}\selectfont}
%\newkomafont{chapternumber}{\fontsize{50}{120}\selectfont\color{white}}
%\newkomafont{chaptername}{\itshape\rmfamily\small\color{white}}
%
%\addtokomafont{section}{\fontsize{14pt}{14pt}\selectfont}
%\newkomafont{sectionnumber}{\fontsize{18pt}{18pt}\selectfont\rmfamily\color{white}}
%
%\addtokomafont{subsection}{\fontsize{12pt}{12pt}\selectfont}
%\newkomafont{subsectionnumber}{\fontsize{16pt}{16pt}\selectfont\rmfamily\color{white}}
%
%\renewcommand\chapterformat{%
%  \raisebox{-6pt}{\colorbox{mybluei}{%
%    \parbox[b][60pt]{45pt}{\centering%
%      {\usekomafont{chaptername}{\chapapp}}%
%      \vfill{\usekomafont{chapternumber}{\thechapter\autodot}}%
%      \vspace{6pt}%
%}}}\enskip}
%
%\renewcommand\sectionformat{%
%  \setlength\fboxsep{5pt}%
%  \raisebox{-4pt}{\colorbox{mybluei}{%
%    \enskip\usekomafont{sectionnumber}{\thesection\autodot}\enskip}%
%  \quad%
%}}
%
%\renewcommand\subsectionformat{%
%  \setlength\fboxsep{5pt}%
%  \raisebox{-4pt}{\colorbox{mybluei}{%
%    \enskip\usekomafont{subsectionnumber}{\thesubsection\autodot}\enskip}%
%  \quad%
%}}
%
%\makeatletter
%\renewcommand\sectionlinesformat[4]{%
%  \makebox[0pt][l]{\rule[-5pt]{\textwidth}{1pt}}%
%  \@hangfrom{#3}{#4}%
%}
%\makeatother

\RedeclareSectionCommand[
  beforeskip=-1sp
]{chapter}

\makeatletter
\renewcommand\chapterlinesformat[3]{%
  \ifstr{#1}{chapter}
    {%
      \parbox[b][\ht\strutbox]{\textwidth}{%
        \parbox[b]{\dimexpr\textwidth-3em\relax}{\raggedright#3}%
        \makebox[3em][r]{%
          \hfill
          #2%
        }%
      }%
    }{\@hangfrom{#2}{#3}}% <- original definition for other levels
}
\makeatother
\renewcommand\chapterformat{%
  \textcolor{cobalt}{\rule[-5pt]{2pt}{5cm}}%
  \quad
  {\fontsize{60}{60}\selectfont\textcolor{cobalt}{\thechapter}}%
}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\input{Definitionen.tex}

\title{Angewandte Mathematik für Ingenieure - Ein Lehr- und Übungsbuch ab dem ersten Semester}
\author{Dietmar Haase}
\date{}


\begin{document}
%{\fontfamily{qag}\selectfont
%\cpcfamily
\maketitle




%\thispagestyle{empty}

\part{Band I - Mengen}

%\thispagestyle{empty}



\chapter*{Vorwort}

\input{I_Vorwort.tex}

\tableofcontents
	
\chapter{Grundzüge der Mengenlehre}
\input{I_1.tex}

\chapter{Mathematische Beweismethoden}
\input{I_2.tex}


\chapter{Gleichungen und Ungleichungen}
\input{I_3.tex}

\chapter{Komplexe Zahlen}\label{Chap4}

\input{I_4.tex}

\chapter{Abbildungen}
\input{I_5.tex}

\chapter{Anhang}
\input{I_Anhang.tex}

\chapter{Lösungen der Übungsaufgaben}
\input{I_Loesungen.tex}



%\part{Band II - Funktionen}
%
%\chapter{Folgen}
%\input{II_1.tex}
%
%\input{Anmerkungen.tex}


\end{document}
