\documentclass[a4paper,10pt,twoside]{report}
\usepackage[latin1]{inputenc} % europaeische Sonderzeichen
\usepackage[T1]{fontenc} % Trennung bei Sonderzeichen
\usepackage[ngerman]{babel} % nationale Textbausteine
\usepackage{supertabular} % mehrseitige Tabellen
\usepackage{calc} % infix-Notation
\usepackage[dvips]{graphicx} % Grafik
\usepackage{ifthen} % Fallunterscheidungen
\usepackage{wrapfig} % seitlich angebrachte Grafiken und Tabellen
\usepackage{pifont} % Zugriff auf Zeichensatz Symbol, Dingbats
\usepackage{makeidx} % Indexerstellung
\usepackage{afterpage}
% \usepackage{multicol}
\usepackage{fancyhdr} % beliebig einstellbare Kopf- und Fusszeilen
\pagestyle{fancy}

\newcommand{\acronym}[1]{\textsc{\lowercase{#1}}}
\newcommand{\br}{\mbox{}\newline}
\newcommand{\textbig}[1]{{\Large #1}}
\newcommand{\textsmall}[1]{{\scriptsize #1}}
\newcommand{\subscript}[1]{\raisebox{-0.5ex}{\textsmall{#1}}}
\newcommand{\superscript}[1]{\raisebox{0.5ex}{\textsmall{#1}}}
\newcommand{\textQuote}[1]{,,#1``}
\newcommand{\HRule}{%
    \par\noindent\parbox{\linewidth}{\rule{\linewidth}{0.75pt}}%
    \hfill}
\newcommand{\textsuppressed}[1]{\ignorespaces}
\newcommand{\rowSpanningCell}[2]{\parbox[t]{\linewidth}{#2}}
\newcommand{\PreserveBackslash}[1]{%
    \let\tmp=\\#1\let\\=\tmp}
\newcommand{\tdAlignLeft}[1]{\PreserveBackslash{\raggedright \hspace{0pt}#1}}
\newcommand{\tdAlignRight}[1]{\PreserveBackslash{\raggedleft \hspace{0pt}#1}}
\newcommand{\hyperlink}[2]{#2 (S.~\pageref{#1})}
\newcommand{\hypertarget}[2]{\label{#1}#2}
\newcommand{\htmlimg}[2][here]{%
  \ifthenelse{\equal{#1}{left}}{%
    \begin{wrapfigure}{l}{0pt}\includegraphics{#2}\end{wrapfigure}}{%
      \ifthenelse{\equal{#1}{right}}{%
        \begin{wrapfigure}{r}{0pt}\includegraphics{#2}\end{wrapfigure}}{
          {\includegraphics{#2}}}}}

\newlength{\htmlIMGlineHeightLimit}
\setlength{\htmlIMGlineHeightLimit}{\baselineskip*2}

\newcommand{\htmlIMG}[4][here]{%
  % #1 = optional: here - l - r - htbp
  % #2 = src
  % #3 = width
  % #4 = height
  \htmlIMGnormal[#1]{#2}{#3}{#4}
}
% \renewcommand{\htmlIMG}[4][here]{%
%   \ifthenelse{\equal {#2} %
%     {deutsch/images/Images/Grafik_zentral/Warndreieck3.eps}}{%
%     \par\ignorespaces\htmlIMGfitLineHeight{#2}{30pt}\nopagebreak%
%     }{%
%     \ifthenelse{\equal {#2} %
%     {deutsch/images/Unterkapitel/pfeil.eps}%
%     }{%
%     {\Pisymbol{psy}{174}}% Pfeil nach rechts, Zeichensatz Symbol
%     }{%
%     \htmlIMGnormal[#1]{#2}{#3}{#4}%
%     }}
% }
\newcommand{\htmlIMGnormal}[4][here]{%
  % #1 = optional: here - l - r - htbp
  % #2 = src
  % #3 = width
  % #4 = height
  \ifthenelse{\equal {#1} {here}}{%
    \htmlIMGfitSize{#2}{#3}{#4}}{%
    \ifthenelse{\equal {#1} {l} \or \equal {#1} {r}}{%
      \htmlIMGfloat{#2}{#1}{#3}{#4}}{}}}
\newcommand{\htmlIMGfitLineHeight}[2]{%
  \raisebox{-\lineskip}{%
    \ifthenelse{\lengthtest \baselineskip < #2}{%
      \includegraphics[height=\baselineskip]{#1}}{%
      \includegraphics[height=#2]{#1}}}}
\newcommand{\htmlIMGfitLineWidth}[2]{
  \par\noindent\parbox[c][\height+\baselineskip]{\linewidth}{
    \begin{center}
      \ifthenelse{\lengthtest \linewidth < #2}{
        \includegraphics[width=\linewidth]{#1}}{
        \includegraphics[width=#2]{#1}}
    \end{center}}}
\newcommand{\htmlIMGfitSize}[3]{
  \ifthenelse{
    \lengthtest #2 < \htmlIMGlineHeightLimit
    \and
    \lengthtest #3 < \htmlIMGlineHeightLimit}{%
    \htmlIMGfitLineHeight{#1}{#3}}{
    \htmlIMGfitLineWidth{#1}{#2}}}
\newcommand{\htmlIMGfloat}[4]{
  \begin{wrapfigure}{#2}{#3}
    \includegraphics[width=#3, height=#4]{#1}
  \end{wrapfigure}}

%% Grotesk
% \renewcommand{\familydefault}{phv} % Helvetica
% \renewcommand{\familydefault}{pag} % Avantgarde
%% Serifen
% \renewcommand{\familydefault}{ptm} % Times
% \renewcommand{\familydefault}{ppl} % Palatino
% \renewcommand{\familydefault}{pnc} % New Century Schoolbook
% \renewcommand{\familydefault}{pbk} % Bookman-Light
% \renewcommand{\ttdefault}{pcr}     % Courier

% \setlength\parindent{0pt}
% \setlength\parskip{6pt}
% \setlength\lineskip{2pt}

% \renewcommand{\arraystretch}{1.5}     

%% intern fuer Tabellen:

\newlength\autowidth

\newcommand{\nonbreakingrows}[1]{%
  \multicolumn{\cols}{@{} l @{}}{%
    \begin{tabular}{\coldef}
      #1
    \end{tabular}}\\}

\newenvironment{fittabular}[4][0]{%
% Argument 1 = optional: kleinste Spaltenbreite (noch nicht entwickelt)
% Argument 2 = Spaltenzahl, $struct(cols)
% Argument 3 = Zahl der Spaltenabstaende (Spaltenzahl*2 oder Spaltenzahl*2-2), $struct(colSepsNumber)
% Argument 4 = Spaltendefinition, z. B. {|p{0.5\autowidth}|p{0.5\autowidth}}
  \setlength\autowidth{\linewidth}
  \addtolength\autowidth{-#3\tabcolsep}
  \global\edef\cols{#2}
  \edef\colseps{#3}
  \global\edef\coldef{\string#4}
  \medskip
  \begin{supertabular}{\coldef}}{
  \end{supertabular}
  \par\medskip
  }
    
\makeatletter
\renewcommand{\chapter}{\@startsection{chapter}{1}%
  {0mm}{\baselineskip}{\baselineskip}%
  {\noindent\normalfont\normalsize\textbf}}
\renewcommand{\section}{\@startsection{section}{2}%
  {0mm}{\baselineskip}{\baselineskip}%
  {\noindent\normalfont\normalsize\textbf}}
\renewcommand{\subsection}{\@startsection{subsection}{3}{0mm}%
  {\baselineskip}{\baselineskip}%
  {\noindent\normalfont\normalsize\textbf}}
\renewcommand{\subsubsection}{\@startsection{subsubsection}{4}{0mm}%
  {\baselineskip}{\baselineskip}%
  {\noindent\normalfont\normalsize\textbf}}
\renewcommand{\paragraph}{\@startsection{paragraph}{5}{0mm}%
  {\baselineskip}{\baselineskip}%
  {\noindent\normalfont\normalsize\textbf}}
\renewcommand{\subparagraph}{\@startsection{subparagraph}{6}{0mm}%
  {\baselineskip}{\baselineskip}%
  {\noindent\normalfont\normalsize\textbf}}
\makeatother
