% Use helvetica font instead of times roman
\RequirePackage{helvet}
\RequirePackage{tocloft}
\providecommand{\rmdefault}{phv}
\providecommand{\bfdefault}{bc}
\usepackage[T1]{fontenc}

% Setup fancy headings
\RequirePackage{fancyhdr}
\newcommand{\clearemptydoublepage}{%
  \newpage{\pagestyle{empty}\cleardoublepage}%
}
% Used by @image
% (only if inline is specified)
\newlength{\analzInlineHeightChar}
\settoheight{\analzInlineHeightChar}{H}
\renewenvironment{analzInlineImage}{%
\settoheight{\analzInlineHeightChar}{H}
}{%
}

% Headers & footers
\pagestyle{fancyplain}
\renewcommand{\footrulewidth}{0.4pt}
%
\fancypagestyle{fancyplain}{
\fancyhf{}
\fancyhead[LE, RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
\fancyfoot[LO, RE]{\bfseries\scriptsize Generated by analyze @VERSION@ }
}
%
\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[LO, RE]{\bfseries\scriptsize Generated by analyze @VERSION@ }
\renewcommand{\headrulewidth}{0pt}}
%
\pagestyle{fancyplain}
\renewcommand{\chaptermark}[1]{%
  \markboth{#1}{}%
}
\renewcommand{\sectionmark}[1]{%
  \markright{\thesection\ #1}%
}
%
\usepackage{regexpatch}
\xpatchcmd{\part}{plain}{empty}{}{}

