I was working on a presentation and had to place several logos at the end of a slide. Initially, I just added them using includegraphics
. However, it looked terrible because each logo was of a different size. Obviously, I wanted to arrange them at least half-decently. For that, I aligned them vertically and added some space between each logo.
Vertical alignment
Here, the adjustbox package, together with graphicx, provides a handy solution. The option valign=c
(center) worked nicely in my case. In another case, valign=t
(top) might look better.
%Preamble \usepackage[export]{adjustbox} %Document \includegraphics[width=2cm,valign=c]{logo1}
Horizontal alignment
To align the logos horizontally, I added \hfill
commands between each figure. This will divide whitespace equally between figures.
\includegraphics{logo1}\hfill\includegraphics{logo2}
An additional \hfill
before and after adds extra space to the left and right of the logo chain.
Complete code example
\documentclass[11pt]{article} \usepackage[export]{adjustbox} \begin{document} \hfill\includegraphics[width=2cm,valign=c]{logo1} \hfill\includegraphics[width=2cm, valign=c]{logo2} \hfill\includegraphics[width=2cm, valign=c]{logo3} \hfill\includegraphics[width=2cm, valign=c]{logo4}\hspace*{\fill} \end{document}