LyX ⇒ Vertical alignment of images in float
Vertical alignment of images in float
I'm trying to do something that should be trivial, but I don't seem to get there. I would like to place two images of different height next to each other in one float object. The top of both images should be vertically aligned with the top of the float.
The only workaround I have found so far was putting the two images in two separate boxes (=minipages) and adding a fixed vertical space below the smaller figure, within its box.
Is there a way to do this properly?
Many thanks in advance!
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Vertical alignment of images in float
Have you tried \minipage? http://dcwww.camd.dtu.dk/~schiotz/comp/ ... xTips.html shows how you can put the figure caption to the right of a figure. You will be able to the same to put two figures. Use the `t' specifier as in the example.
Re: Vertical alignment of images in float
I've used LyX boxes, which are minipages. Selecting 'top' as placement in LxY results in LaTeX code with the [t] option set. However this does not lead to the desired result, i.e. images with their top edges at the same level.