I have got a problem with tabularx: I want to have two images next to each other on the titlepage of a document. I use tabularx for that. My code is:
\begin{titlepage}
\begin{tabularx}{\textwidth}{XX}
\begin{flushleft}
\vspace{0.6cm} % adjust the vertical alignment of the images
\includegraphics[height=1.3cm]{image1}
\end{flushleft}
&
\begin{flushright}
\includegraphics[height=2.5cm]{image2}
\end{flushright}
\end{tabularx}
% other content of the titlepage
\end{titlepage}
My problem is, that on the left side the image is perfectly aligned at the left border, but on the right side the image is not positioned correctly. It is above the page margins and it looks as if the \begin{tabularx}{\textwidth} does not work.
It would be great if anybody could help me. Thanks in advance


tabularx, so if the width of the images plus the column separation is wider than\textwidth, then the images will go into the right margin. – Torbjørn T. Sep 19 '17 at 10:37\includegraphics[height=1.3cm]{image1}\includegraphics[height=1.3cm]{image2}– David Carlisle Sep 19 '17 at 10:38\noindentbefore\begin{tabularx}. – Bernard Sep 19 '17 at 10:40