latex2e: Propagate figure align to image
Previously figure alignment was not taken into account for
embedding-in-fugure images -- images were always center-aligned.
Fix it, by propagating figure's alignment to image, centering by
Thanks for the patch.
Unfortunately, the problem at hand is more complex:
It is quite common to have distinct alignment of images and figures,
a left aligned image and caption inside a right aligned figure, say
(this is the default of the HTML writer with :align: right).
Currently, the only way to configure the alignment of an image inside a figure is via
While re-using the :align: argument for "image in figure" alignment in LaTeX
seems an improvement over the current ignoring, it will prevent image alignment
setting once aligned figures (with pargraph reflow) are supported.
This should be discussed in the docutils list.