14

I'm pretty new in LaTeX and I'm currently writing my BSc Report. Does anyone happen to know how I can insert my uni logo on the front cover of my report? I'm using

\documentclass[final,letterpaper,twoside,11pt]{report}
18

The graphicx package provides \includegraphics to include images on the cover or inside the document. And the titlepage environment specifies your cover page. (Since this is a recurring problem at institutions, your advisor probably has examples for such cover pages. But a lot of bad code gets passed around this way.)

\documentclass{report}
\usepackage{graphicx} 

\begin{document}
\begin{titlepage}
    \centering
    \vfill
    {\bfseries\Large
        Performance Report\\
        First Quarter 2011\\
        \vskip2cm
        A. Uthor\\
    }    
    \vfill
    \includegraphics[width=4cm]{logo.jpg} % also works with logo.pdf
    \vfill
    \vfill
\end{titlepage}
\end{document}

The \vfills adjust the vertical spacing. Think about them this way: each \vfill will expand vertically the same amount until the entire page is filled. Because there are two \vfills at the bottom, title and logo will not be vertically centered but rather shifted towards the top. Using \vfill is much simpler than using absolute dimensions and works with all page dimensions. (I still used \vskip2cm to specify the distance between title and author, though.)

  • I have tried your way but it doesn't work! there is an error about \vskip{2cm} – user4335 Mar 20 '11 at 20:18
  • Sorry, I fixed the \vskip. – Christian Lindig Mar 20 '11 at 21:30
11

There is a package for that on CTAN. titlepic redefines the \maketitle command to include a picture on your title page, that you provide via the \titlepic command:

...
\usepackage{titlepic}
\usepackage{graphicx}

\title{My title}
\author{Me}
\titlepic{\includegraphics[width=\textwidth]{mypicture.png}}
...
\begin{document}
\maketitle
...
  • 2
    this didn't work for me : \documentclass{article} \usepackage{titlepic} \usepackage{graphicx} \title{My title} \author{Me} \titlepic{\includegraphics[width=\textwidth]{placeholder.pdf}} \begin{document} \maketitle \end{document} – baxx Jun 10 '15 at 13:09
  • 1
    For article this only works with the titlepage option: \documentclass[titlepage]{article} – Marcel Köppen Jun 16 '15 at 13:35
5

If you use the memoir class with the report option (which is supposedly the same as using the report class) you'll get much more control over the title page.

\documentclass[report,letterpaper,twoside,11pt,final]{memoir}
\usepackage{lipsum}
\author{Totzke Zwack}
\title{The Unspoken Truth}
\date{\today}
\renewcommand{\maketitlehookd}{%
  \begin{center}
    \fbox{uni-logo}
  \end{center}}
%
\begin{document}
 \frontmatter
 \maketitle
 \mainmatter
 \lipsum[1]
\end{document}

protected by Community Mar 25 '15 at 8:51

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?