summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/titlepic
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-03-14 21:51:28 +0000
committerKarl Berry <karl@freefriends.org>2017-03-14 21:51:28 +0000
commitd8b72356da66172cbf65bea41e6d41eddb6226b0 (patch)
tree48c6762cf7533865808c3b68d781940f72b47a69 /Master/texmf-dist/tex/latex/titlepic
parentd1c70ab27326385145a9d77d021834269f4d81a2 (diff)
titlepic (14mar17)
git-svn-id: svn://tug.org/texlive/trunk@43497 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/titlepic')
-rw-r--r--Master/texmf-dist/tex/latex/titlepic/titlepic.sty92
1 files changed, 57 insertions, 35 deletions
diff --git a/Master/texmf-dist/tex/latex/titlepic/titlepic.sty b/Master/texmf-dist/tex/latex/titlepic/titlepic.sty
index 974885c8998..2aca230a8d4 100644
--- a/Master/texmf-dist/tex/latex/titlepic/titlepic.sty
+++ b/Master/texmf-dist/tex/latex/titlepic/titlepic.sty
@@ -1,17 +1,18 @@
% titlepic.sty is a LaTeX package to show a picture on the cover produced by \maketitle.
% By Thomas ten Cate <ttencate@gmail.com>. Free software, no warranty of any kind.
-%
+%
% Version history:
+% 1.2: works without titlepage as well
% 1.1: now more self-contained, comes with a PDF manual
% 1.0: first release
-%
+%
% -----------------------------------------------------------------------------
% No idea whether it works on older LaTeXes.
\NeedsTeXFormat{LaTeX2e}
% Package identification and version number.
-\ProvidesPackage{titlepic}[2009/08/03 1.1 Package to display a picture on the title page]
+\ProvidesPackage{titlepic}[2017/03/14 1.2 Package to display a picture on the title page]
% Declare the options.
\DeclareOption{tt}{\gdef\@tptopspace{}\gdef\@tpsepspace{\vskip 3em}}
@@ -28,41 +29,62 @@
% If a title page was requested from the document class (article/report/book),
% override \maketitle to show our picture.
\if@titlepage
-\renewcommand\maketitle{
- \begin{titlepage}%
- \let\footnotesize\small
- \let\footnoterule\relax
- \let \footnote \thanks
- \@tptopspace%
+ \renewcommand\maketitle{
+ \begin{titlepage}%
+ \let\footnotesize\small
+ \let\footnoterule\relax
+ \let \footnote \thanks
+ \@tptopspace%
+ \begin{center}%
+ {\LARGE \@title \par}%
+ \vskip 3em%
+ {\large
+ \lineskip .75em%
+ \begin{tabular}[t]{c}%
+ \@author
+ \end{tabular}\par%
+ }%
+ \vskip 1.5em%
+ {\large \@date \par}% % Set date in \large size.
+ \end{center}\par
+ \@tpsepspace%
+ {\centering\@titlepic\par}
+ \vfil
+ \@thanks
+ \end{titlepage}%
+ \setcounter{footnote}{0}%
+ \global\let\thanks\relax
+ \global\let\maketitle\relax
+ \global\let\@thanks\@empty
+ \global\let\@author\@empty
+ \global\let\@date\@empty
+ \global\let\@title\@empty
+ \global\let\@titlepic\@empty
+ \global\let\title\relax
+ \global\let\author\relax
+ \global\let\date\relax
+ \global\let\and\relax
+ \global\let\titlepic\relax
+ }
+\else
+ \def\@maketitle{%
+ \newpage
+ \null
+ \vskip 2em%
\begin{center}%
+ \let \footnote \thanks
{\LARGE \@title \par}%
- \vskip 3em%
+ \vskip 1.5em%
{\large
- \lineskip .75em%
- \begin{tabular}[t]{c}%
+ \lineskip .5em%
+ \begin{tabular}[t]{c}%
\@author
- \end{tabular}\par%
- }%
- \vskip 1.5em%
- {\large \@date \par}% % Set date in \large size.
- \end{center}\par
- \@tpsepspace%
+ \end{tabular}\par}%
+ \vskip 1em%
+ {\large \@date}%
+ \end{center}%
+ \vskip .5em%
{\centering\@titlepic\par}
- \vfil
- \@thanks
- \end{titlepage}%
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\@titlepic\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
- \global\let\titlepic\relax
-}
+ \par
+ \vskip 1.5em}
\fi