summaryrefslogtreecommitdiff
path: root/texmf/archive/tex/latex/spwtitle/spwtitle.sty
blob: fd9a9653737ce74a7b49e7a9c009a282d27d77f4 (plain)
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
\ProvidesPackage{spwtitle}

% onehalf option is for documents that want onehalfspacing in general.
% This has to be set here because we force onehalf for the title and
% need to know whether to switch it off or not after
\RequirePackage{setspace}
\RequirePackage{ifthen}
\newcommand{\spaceafter}{\singlespacing}
\DeclareOption{onehalf}{\renewcommand{\spaceafter}{}}
\ProcessOptions

\usepackage{setspace}

\makeatletter\renewcommand{\maketitle}{\onehalfspacing\thispagestyle{plain}
%\noindent\rule{\columnwidth}{2pt}
%\begin{center}\textnormal{\LARGE\@title}
\noindent\textnormal{\LARGE\textsf{\@title}}
    
% \hfill\large\@author$\qquad\quad$\@date$\qquad$\normalsize
\vspace{5pt}
\hfill\large\textsf{\@author}\par\hfill\large\textsf{\@date}\normalsize
\vspace{8.5pt}
%\rule{\columnwidth}{1.5pt}
%\end{center}
\spaceafter
}\makeatother