blob: 1f84af50f56110b867b70584277d86682cf3e388 (
plain)
1
|
\ProvidesPackage{docstyle}
\RequirePackage[a4paper,left=3cm,right=3cm,top=2cm,bottom=3.5cm]{geometry}
\RequirePackage[english]{babel}
\RequirePackage[dvips]{graphicx}
\RequirePackage{longtable}
\setlength{\parskip}{0.5\baselineskip}
\linespread{1.2}
\pagestyle{headings}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}{}}
\def\sectionbib#1#2{
\long\def\@tempa##1##{
\long\def\@tempa####1\endthebibliography{}\def\@tempc{##1}\@tempa}%
\expandafter\@tempa\thebibliography{}{}\endthebibliography
\def\@tempa{\chapter*}\ifx\@tempa\@tempc\else \begingroup\toks@{#1}%
\cb@warning {The sectionbib option changes \string"\expandafter
\strip@prefix\meaning\@tempc\string" to \string"\the\toks@\string"
in \string\thebibliography }\endgroup\fi
\let\cb@thebibliography\thebibliography
\def\thebibliography{\let\@currentlabel\@empty
\ifx\the@ipfilectr\@empty \else
\expandafter\expandafter\expandafter\cb@sectionbib\fi
\cb@thebibliography}
\expandafter\def\expandafter\cb@sectionbib\@tempc##1{#1{References}
\ifx\@currentlabel\@empty \begingroup \c@secnumdepth-\tw@
\addcontentsline{toc}{#2}{References}
\csname#2mark\endcsname{References}\endgroup\fi}}
\sectionbib{\section}{section}
\newcommand{\logo}{The TOTAL COVER Insurance Company Case Study}
% The following 5 lines were added to change the chapter headings
%\usepackage{fncychap}
%\ChNameVar{\huge\sc}
%\ChNumVar{\huge\sc}
%\ChTitleVar{\huge\sc}
%\renewcommand{\DOCH}{\CNV\thechapter . ~}
% end set chapter headings
% The following lines were added to add a document header to each page
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{} % clear all fields
\fancyhead[LE,RO]{\bfseries The TOTAL COVER Case Study}
\fancyhead[RE,LO]{\bfseries ARCHITECTURAL DESIGN DOCUMENT}
\fancyfoot[LE,RO]{\uppercase{\thepage}}
\fancyfoot[RE,LO]{\leftmark}
\fancyfoot[CO,CE]{}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\addtolength{\headheight}{\baselineskip}
\fancypagestyle{plain}{
\fancyhead{} % clear all fields
\fancyhead[LE,RO]{\bfseries The TOTAL COVER Case Study}
\fancyhead[RE,LO]{\bfseries ARCHITECTURAL DESIGN DOCUMENT}
\fancyfoot[LE,RO]{\uppercase{\thepage}}
\fancyfoot[RE,LO]{\leftmark}
\fancyfoot[CO,CE]{}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\addtolength{\headheight}{\baselineskip}
}
%\pagestyle{fancy}
%\fancyhf{}
%\fancyhead[]{\rightmark}
%\fancyhead[L,R]{}
%\fancyhead[C]{The TOTAL COVER Case Study - \title ~- \thepage}
%
%\fancypagestyle{plain}{
% \fancyhf{}
% \fancyhead[C]{The TOTAL COVER Case Study - \title ~- \thepage}
%}
\renewcommand{\headrulewidth}{0pt}
% end set document header
|