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
class arguments.
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
--- old+++ new@@ -1,7 +1,7 @@latex2e: Propagate figure align to image
Previously figure alignment was not taken into account for
-embedding-in-fugure images -- images were always center-aligned.+embedding-in-figure images -- images were always center-aligned.Fix it, by propagating figure's alignment to image, centering by
default.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The alignment of the image in a figure can be set passing the special values "align-left", "align-right", or "align-center" to the class option. The LaTeX writer respects these special values.
A more consistent support for image-in-figure alignment is proposed in [feature-requests:#114].
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
class arguments.
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.
Diff:
The alignment of the image in a figure can be set passing the special values "align-left", "align-right", or "align-center" to the class option. The LaTeX writer respects these special values.
A more consistent support for image-in-figure alignment is proposed in [feature-requests:#114].
Related
Feature Requests: #114