1

In order to create a title page I would like to include two logos in one line where one of the figures is left and the other is one the right side.

My first minimalistic examples using the following code

\begin{figure}[h]
    \flushleft
    \includegraphics[keepaspectratio, width=0.15\linewidth]{test.png}
\end{figure}
\hfill
\begin{figure}[h]
    \flushright
    \includegraphics[keepaspectratio, width=0.15\linewidth]{test.png}
\end{figure}

leads to the following output:

enter image description here

Both figures do have exactly the size and horizontal position I want them to have. They simply are not in one line ...

Adding to the code above the following:

\begin{minipage}{0.5\linewidth}
    \flushleft
    \includegraphics[keepaspectratio, width=0.25\linewidth]{test.png}
\end{minipage}
\begin{minipage}{0.5\linewidth}
    \flushright
    \includegraphics[keepaspectratio, width=0.25\linewidth]{test.png}
\end{minipage}

i get this:

enter image description here

At least in this case both logos are in one line but now the size is different as they are smaller and they are not in the same horizonal position they used to be in figure 1.

How can I solve this?

  • 2
    you dont want figure or minipage just \includegraphics{a}\hfill\includegraphics{b} – David Carlisle Apr 17 '19 at 18:57
  • 1
    The size is different because in one case you use 0.15\linewidth and on the other 50% of 0.25\linewidth which is 0.125\linewidth – def Apr 17 '19 at 18:57
  • @DavidCarlisle That's what I was looking for, thank you! – offline Apr 17 '19 at 19:03
3

You don't want figure or minipage just

\noindent
\includegraphics{a}\hfill\includegraphics{b}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.