
\ProvidesPackage{sole}

%the font
\usepackage{times}

% setting the margins
\usepackage[a4paper,includeheadfoot, margin=2.5cm]{geometry}

%redefining the \maketitle command: title in boldface and centered, subtitle in normal font and centered, blank line,
%author in normal font and centered, 6 blank lines abstract, justified, 6 blank lines again
%NB 1: we're assuming that a blank line is 2.5ex
%NB2: authors have to define the commands \papertitle, \subtitle, \paperauthor & \paperabstract in their document
%in case there is no subtitle, please say \newcommand{\subtitle}{\vspace{-2.5ex}}
\renewcommand{\maketitle}{\begin{center}\textnormal{\textbf{\papertitle}}\\%
 \centering\textnormal{\subtitle}\\
 \vspace{2.5ex}%
 \centering {\textnormal{\paperauthor}}\end{center}%
 \vspace{15ex}%
 \paperabstract %
 \vspace{15ex}%
 \thispagestyle{plain}
  }

% redefinition of \section command (titlesec)
% note that \thesubsection includes section number
\usepackage{titlesec}
\titleformat{\section}{\filcenter\it}{\thesection.}{1em}{}{}
\titleformat{\subsection}{\filcenter\it}{\thesubsection.}{1em}{}{}
\titleformat{\subsubsection}{\filcenter\it}{\thesubsubsection.}{1em}{}{}

%redefining the spacing before an after the (sub)section titles 
\titlespacing*{\section}{0pt}{5ex}{2.5ex}{}
\titlespacing*{\subsection}{0pt}{5ex}{2.5ex}{}
\titlespacing*{\subsubsection}{0pt}{5ex}{2.5ex}{}

\newcounter{confnumber}

%hyperlinks
\newcommand{\hl}[1]{\textit{\underline{#1}}}

% headers
\usepackage{fancyhdr}
\pagestyle{fancy} \fancyhead{}\fancyfoot{}\fancyhf{} \fancyhead[RE]{\textit{\paperauthor}}
\fancyhead[LE,RO]{\thepage} \fancyhead[LO]{\textit{\shorttitle}}
% remove the line in the header. 
\renewcommand{\headrulewidth}{0pt}
\headsep=0.6cm
\headheight=14.5pt
%first page footer
\fancypagestyle{plain}{\fancyhead{}
 \fancyfoot{}
 \fancyfoot[LO]{\scriptsize \itshape Proceedings of ConSOLE \Roman{confnumber}, \procyear{}, \pageref{firstpage}-\pageref{lastpage}\\
\href{http://www.sole.leidenuniv.nl}{\hl{http://www.sole.leidenuniv.nl}}\\
$\copyright{}$ \paperauthor{}}
}

%paragraph indentation
\setlength{\parindent}{0.5cm}

%no extra vertical space between paragraphs
\raggedbottom
\usepackage[bottom]{footmisc}

%no extra space between sentences
\frenchspacing

%customising the references
\usepackage{natbib}
\bibpunct[:]{(}{)}{;}{a}{}{,}
\bibliographystyle{sole}

%make "References" look the same as section headers but without numbers. we also have to add an extra line before the references.
\renewcommand{\bibsection}{%
\vspace{2.5ex}
 \begin{center}\normalsize\textit{{References}}\end{center}%
}

% no lines between entries in references, references are the same size as footnotes (10pt)
\renewcommand{\bibsep}{0pt}\newcommand{\bibfont}{\footnotesize} 
 