cablemod.cls 2.39 KB
\newcommand*{\CABLEMOD@classname}{cablemod}
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesClass{\CABLEMOD@classname}[2016/2/10 ESA spice cable modelling document class]

\LoadClass{report}

% Packages
\RequirePackage{times}
\RequirePackage[pdftex]{graphics,color}
\RequirePackage[pdftex,a4paper,pdfborder=000]{hyperref}
\RequirePackage{epstopdf}
\RequirePackage{titletoc}
\RequirePackage{fancyhdr}
\RequirePackage[format=hang,labelsep=quad]{caption}
\RequirePackage[comma,numbers]{natbib}
\RequirePackage{multicol}
\RequirePackage{amsmath}

% Define new commands
\newcommand{\NLRname}{Netherlands Aerospace Centre}
\newcommand{\UONname}{University of Nottingham}
% fonts
\newcommand*{\CABLEMODrmd}{\rmfamily\bfseries\upshape}
\newcommand*{\CABLEMODrmk}{\rmfamily\mdseries\upshape}
\newcommand*{\dif}{\mathrm{d}}

% Logos on coverpage
\newcommand{\LOGOS}
{\fontsize{12}{20}\selectfont
\begin{flushright}
\CABLEMODrmd\UONname\\
\CABLEMODrmd\NLRname\\
\setlength{\unitlength}{1mm}
\begin{picture}(0,0)
  \put(-50,25){\includegraphics[height=20.5mm]{UoN_logo.pdf}\ \ \ \includegraphics[height=26.5mm]{nlr-kleur.pdf}}
\end{picture}
\end{flushright}}

% Create command for titlepage
\renewcommand*{\maketitle}{%
\begin{titlepage}
\LOGOS
	\centering
\vspace{3cm}
{\scshape\huge \DocumentTitle \par}
{\em\large \DocumentSubTitle \par}
{\em\large \DocumentSubSubTitle \par}
\vspace{1cm}
{\scshape \large Authors \par}
{\normalfont\large {\DocumentAuthors} \par}
\vfill
\begin{flushleft}
{\normalfont \normalsize \License \par}
\vspace{0.5cm}
{\scshape \normalsize Contract: \hfill \normalfont \Reference \par}
{\scshape \normalsize Date: \hfill \normalfont \@date \par}
{\scshape \normalsize Document version: \hfill \normalfont \DocumentVersion \par}
\end{flushleft}
\clearpage
\end{titlepage}
}

%
% Commands for references to bibliography (using the natbib package)
%
\setcitestyle{square}
\newcommand*{\Refname}{Ref}
\renewcommand*{\cite}[1]{\citep{#1}}
\newcommand*{\Ref}[1]{\citetext{\Refname.~\cite{#1}}}
\newcommand*{\Refs}[1]{\citetext{\Refname s.~\cite{#1}}}
\newcommand*{\reference}[1]{\refername~\cite{#1}}
\newcommand*{\references}[1]{\refername s~\cite{#1}}

%\newcommand*{\Refname}{Ref}
%\renewcommand*{\cite}[1]{\citealp{#1}}
%\newcommand*{\Ref}[1]{\citetext{\Refname.~\cite{#1}}}
%\newcommand*{\Refs}[1]{\citetext{\Refname s.~\cite{#1}}}
%\newcommand*{\reference}[1]{\refername~\cite{#1}}
%\newcommand*{\references}[1]{\refername s~\cite{#1}}