cablemod.cls
2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
\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}}