Graphics, Figures & Tables ⇒ How can I align images relative to each other
How can I align images relative to each other
The problem is if I just use the includegraphics and no subfigure command, the left image is in the upper right corner, just below the title and subtitle but the right image is moved down! so that the top of it is NOT aligned with the left image. I have NO idea why the graphics engine in Latex would not assume that someone would want the images aligned along a line by default.
On the other hand, if I use the figure command, and make each a subfigure, the opposite happens, the rightmost image is lined up correctly relative to the text and the leftmost image is down too far. I even tried using the [c] but it didn't help at all.
Why is it so hard to align the images - why don't they have a 2 dimensional aligner that puts an image in the upper-left of a region or the upper-right. Why only left, right, etc..
If they allow the use of left as a parameter after the width part, why not left, top or right, top for the right image which is what I need.
I had to use the \usepackage[export]{adjustbox}. Some of this stuff might be deprecated.
By the way, the images do not have subcaptions, and I don't think a subcaption package should be the answer to a simple thing like aligning something.
To be perfectly honest, I don't think that someone should have to abandon their method and use some sort of trick to do this involving subfigures. Why so complicated for such a simple thing? But if necessary, I'm willing to go back to subfigures even though it didn't align them. The images are very different in width and height.
I'm going to try to use a minipage with valign key which needs [subcaption] and {adjustbox} packages,
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
How can I align images relative to each other
\noindent
\begin{minipage}[t]{0.30\linewidth}
\centering
\includegraphics[width=\linewidth,valign=t]{./Image1.jpg}
\end{minipage}
\hspace{0.01\textwidth}
\begin{minipage}[t]{0.69\linewidth}
\centering
\includegraphics[width=\linewidth, height=69.85mm, valign=t]{./Image2.jpg}
\end{minipage}
I don't know if it's exactly what I want though as I don't think I should have to create some special container for the images. I would rather a better solution that did NOT use a container. Why not just have the images floating on the page? I think there is a better way to do it so I'll leave this unsolved for now even though I can live with it for a couple days.
[NOT QUITE THE SOLUTION I WANTED]