University's logo
We can also use the titling
package to add a new element to \maketitle
:
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{titling}
\usepackage{lipsum}
\newcommand{\logo}[1]{%
\postauthor{%
\end{tabular}\par\end{center}
\begin{center}\includegraphics[scale=0.5]{#1}\end{center}
\vskip0.5em}%
}
\title{We love ducks}
\author{Daffy Duck}
\logo{quackuniversity}
\begin{document}
\maketitle
\lipsum
\end{document}
The output:
Hope it helps. :)
You can use the \author
field; something along these lines:
\documentclass{article}
\usepackage[demo]{graphicx}
\title{The Title}
\author{%
The Author \\
\includegraphics[width=0.5\textwidth]{logo}%
}
\date{\today}
\begin{document}
\maketitle
\end{document}
Using the optional argument for \\
(as in \\[1cm]
, \\[-3pt]
) you can
control the vertical space between the author name and the logo.
The demo
option for graphicx
simply replaces actual figures with black rectangles; do not use that option in your actual document.
As Matthew Leingang mentions in a comment, some packages will do things with the contents of the \author
declaration, like put it into the PDF metadata. Declaring the author of the document to be The Author \\ \includegraphics[width=0.5\textwidth]{logo}
spoils this extra functionality and will require extra adjustments.
You can redefine the \maketitle
as it is done by the titlepic package.
\documentclass[titlepage]{article}
\usepackage[demo]{graphicx}
\usepackage{titlepic}
%
\makeatletter
%% This is a redefinition of the contents of titlepic.sty file
\if@titlepage
\renewcommand\maketitle{
\begin{titlepage}%
\let\footnotesize\small
\let\footnoterule\relax
\let \footnote \thanks
\@tptopspace%
\begin{center}%
{\LARGE \@title \par}%
\vskip 3em% %% Change this space if you wish
{\large
\lineskip .75em%
\begin{tabular}[t]{c}%
\@author
\end{tabular}\par%
}%
% \@tpsepspace% %% uncomment if you need space.
{\centering\@titlepic\par}
\vskip 1.5em% %% Change this space if you wish
{\large \@date \par}% % Set date in \large size.
\end{center}\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
}
\fi
\makeatother
%
\begin{document}
%
\title{My title}
%
\author{My name}
%
\titlepic{\includegraphics[width=0.5\textwidth]{logo}}
%
\date{\today}
%
\maketitle
%
\end{document}