I'm styling a titlepage for the first time and I'm having some problems. I'd like to achieve something like this:


The blue rectangles are logos. I've been trying to get it right for hours, but couldn't do any better than the code underneath.



\textwidth 16cm \textheight 23cm
\evensidemargin 0cm \oddsidemargin 0cm

    \hspace*{2cm} % Whitespace to the left of the title page
    \rule{1pt}{\vfill} % Vertical line
    \hspace*{1cm} % Whitespace between the vertical line and title page text
        {\Huge\bfseries My title}


The problems are obvious:

  • The \vfill doesn't work. I'm trying to draw the line from beneath the upper logo to the end of the page.

  • The lower logo doesn't appear at the desired place.

I tried using minipages, but that didn't work out, as I don't have any experience with them. Would you like to tell me how to move on or give me some hints?

3 Answers 3


Indeed you can do it with minipage!
This is the closest i could get, it fits an a4 format, anyway. Just hard-coded:

titlepage latex

Here comes a brief explanation (code is following):

  • geometry helps to define margins and paper formats

  • adjustbox is one of the most useful package to do operation with boxes, here it is an extremely simple usage. \includegraphics comes from graphicx, invoked by adjustbox. The demo option puts black rectangles instead of the argument of \includegraphics

  • xcolor provides the command \color

  • as it's already being said, figure can cause some problems because it generates "mobile" images, whose position is determined by the engine

  • the command \vfill is used to put stretchable vertical distance between consecutive objects, it is not a dimension, so it doesn't work inside rule. \vfill is a replacement for \vskip\fill, and \fill is the dimension (apparently it doesn't work as argument of \rule either, this I cannot explain...)

I suggest you see more documentation about minipage, which is extremely useful to give a structure to the page. It allows to create custom boxes quite easily, they are extremely useful to house images and text.
Here lies a useful minimal overview on minipage at page 3:






        \Huge\bfseries My title


        Some more text


        Some more text
        \hspace{30mm} % or \hfill, if you want the square sticked
        \color[rgb]{.4,.4,1} %                        to the right margin

Adjust all dimensions suitably by yourself to suit your needs. This uses tabular:


    \textcolor{blue!70!black}{\rule[-0.75\textheight]{1pt}{0.75\textheight}} % Vertical line
     {\Huge\bfseries My title} \\[3cm]
     {\Large Some more text} \\[6.5cm]
       some more text \hfill \includegraphics[width=5cm]{example-image}



enter image description here


Possibly something like this?

    \Huge\sffamily My title\bigskip\par
    Some more text\par}}
    \large\sffamily Some more text\hfill \includegraphics[width=5cm]{../my_image2.jpg}}}
    \hspace*{20mm}\rule{1pt}{\textheight-\firstlogoht}% Vertical line

title page

Note that this is one place where you really, really do not want your logos to be moved to wherever LaTeX thinks fit so you do not want them to float. Hence, don't use the figure environment (which defines a float).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .