summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/misc/texilikecover.sty
blob: cdd6deb80420717c0a92b858e0156deafc60c131 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
% texilikecover.sty    v 0.1   5-Apr-2007
% Copyright (C) 2007 by Alberto Simões
%
% These macros may be freely transmitted, reproduced, or modified
% provided that this notice is left intact.
%
% Quick recipe:
%   \usepackage{texilikecover}
%   \title{My Title}
%   \subtitle{My Subtitle}
%   \date{Date or version info}
%   \author{Name \and Name \and Name}
%  
%   \begin{document}
%   \maketitle
%
% Contact me using ambs -at- cpan -dot- org
%
\ProvidesPackage{texilikecover}[2007/04/05 v 0.1: Texi-like cover for LaTeX2e.]

\newcommand{\subtitle}[1]{\def\@subtitle{#1}}

\renewcommand{\and}{\\}

\renewcommand{\maketitle}{
  \thispagestyle{empty}
  \mbox{}
  \vfill
  \noindent{\huge\bf \@title}\\
  \rule{\textwidth}{3pt}
  \begin{flushright}
    \vskip -3mm
    \@subtitle\\
    \@date
  \end{flushright}
  \vfill\vfill
  \begin{flushleft}
    \bf\Large
    \@author
  \end{flushleft}
  \vskip -5mm\rule{\textwidth}{2pt}
  \cleardoublepage
}