Hello,
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!
LyX ⇒ Vertical alignment of images in float
Vertical alignment of images in float
Last edited by gandi on Tue May 25, 2010 3:50 pm, edited 1 time in total.
Vertical alignment of images in float
Hi!
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.
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
Christoi,
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.
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.
Re: Vertical alignment of images in float
After a bit of playing around I find that using "middle" and "top" as placement options for "content" and "box", respectively, does what I need.