%%myWEPSheaders.tex

\makeatletter
\def\today{%
  \two@digits{\the\day}-%
  \ifcase\month\or%
  Jan\or Feb\or Mar\or Apr\or May\or Jun\or%
  JUL\or Aug\or Sep\or Oct\or Nov\or Dec\fi-%
  \number\year%
}
\makeatother

\usepackage{fancyhdr}
\usepackage{extramarks}
\pagestyle{fancy}
  \fancyhf{}
    \renewcommand{\headrulewidth}{0pt} % Reducing space taken by a header?
	\renewcommand{\sectionmark}[1]{\markright{#1}} %% Prints only section title in header/footer

\makeatletter
 \if@twoside% %% Determine if twosided printing is specified
	
	\fancyhead[LO,RE]{\textbf{WEPS}}
	\fancyhead[CO,CE]{\textbf{\nouppercase{\leftmark}}}
	\fancyhead[RO,LE]{\textbf{\thepage}}
	
	\fancyfoot[LO,RE]{\textbf{User Guide}}
	\fancyfoot[CO,CE]{\textbf{\nouppercase{\firstrightmark}}}
	\fancyfoot[RO,LE]{\textbf{Printed: \today}}
    \renewcommand{\headrulewidth}{0pt} % Reducing space taken by a header?

	 %% Redefine plain page style header/footer so first chapter page
	 %% matches other headers/footers, etc.
	\fancypagestyle{plain}{
		\fancyhead[LO,RE]{\textbf{WEPS}}
		\fancyhead[CO,CE]{\textbf{\nouppercase{\leftmark}}}
		\fancyhead[RO,LE]{\textbf{\thepage}}
		
		\fancyfoot[LO,RE]{\textbf{User Guide}}
		\fancyfoot[CO,CE]{\textbf{\nouppercase{\firstrightmark}}}
		\fancyfoot[RO,LE]{\textbf{Printed: \today}}
    	\renewcommand{\headrulewidth}{0pt} % Reducing space taken by a header?
	}
	
 \else% %% Single sided printing specified
		%% Normally set the same as "Odd" headers/footers above

	\fancyhead[L]{\textbf{WEPS}}
	\fancyhead[C]{\textbf{\nouppercase{\leftmark}}}
	\fancyhead[R]{\textbf{\thepage}}
	
	\fancyfoot[L]{\textbf{User Guide}}
	\fancyfoot[C]{\textbf{\nouppercase{\firstrightmark}}}
	\fancyfoot[R]{\textbf{Printed: \today}}
    \renewcommand{\headrulewidth}{0pt} % Reducing space taken by a header?

	 %% Redefine plain page style header/footer so first chapter page
	 %% matches other headers/footers, etc.
	\fancypagestyle{plain}{
		\fancyhead[L]{\textbf{WEPS}}
		\fancyhead[C]{\textbf{\nouppercase{\leftmark}}}
		\fancyhead[R]{\textbf{\thepage}}

		\fancyfoot[L]{\textbf{User Guide}}
		\fancyfoot[C]{\textbf{\nouppercase{\firstrightmark}}}
		\fancyfoot[R]{\textbf{Printed: \today}}
	    \renewcommand{\headrulewidth}{0pt} % Reducing space taken by a header?
	}
 \fi%
\makeatother

%% Not sure why it wants to be in the "begin{document}" section when "twoside" is set
%\makeatletter
% \if@twoside% % Determine if twosided printing is specified
%	\fancyhead[LE,RO]{WEPS}
%	\fancyhead[CE,CO]{\bfseries\leftmark}
%	\fancyhead[RE,LO]{\thepage}\
%	\fancyfoot[LE,RO]{WEPS User Guide}
%	\fancyfoot[CE,CO]{\bfseries\rightmark}
%	\fancyfoot[RE,LO]{Printed \today}
%	\fancypagestyle{plain}{ % Redefine plain page style footer so first chapter page matches other footers
%		\fancyhf{}
%		\fancyhead[LE,RO]{WEPS}
%		\fancyhead[CE,CO]{\bfseries\leftmark}
%		\fancyhead[RE,LO]{\thepage}\
%%%		\fancyfoot[LE,RO]{WEPS User Guide}
%		\fancyfoot[LE,RO]{\FooterBLtxt}			%% Default bottom left footer text
%		\fancyfoot[CE,CO]{\bfseries\rightmark}
%		\fancyfoot[RE,LO]{Printed \today}
%	}
% \else% % Single sided printing specified
%	\lhead{WEPS}
%	\chead{\bfseries\leftmark}
%	\rhead{\thepage}
%%%	\lfoot{WEPS User Guide}
%	\lfoot{\FooterBLtxt}
%	\cfoot{\bfseries\rightmark}
%	\rfoot{Printed \today}
%	\fancypagestyle{plain}{ % Redefine plain page style footer so first chapter page matches other footers
%		\fancyhf{}
%		\lhead{WEPS}
%		\chead{\bfseries\leftmark}
%		\rhead{\thepage}
%%%		\lfoot{WEPS User Guide}
%		\lfoot{\FooterBLtxt}
%		\cfoot{}
%		\rfoot{Printed \today}
%	}
%\fi%
%\makeatother