Menu

#89 latex2e: Propagate figure align to image

None
closed-rejected
nobody
None
5
2025-04-23
2011-11-08
No

latex2e: Propagate figure align to image

Previously figure alignment was not taken into account for
embedding-in-figure images -- images were always center-aligned.

Fix it, by propagating figure's alignment to image, centering by
default.

Discussion

  • Günter Milde

    Günter Milde - 2011-11-10

    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.

     
  • Günter Milde

    Günter Milde - 2011-11-10
    • status: open --> pending-remind
     
  • Günter Milde

    Günter Milde - 2025-04-23
    • status: pending-remind --> closed-rejected
    • Group: --> None
     
  • Günter Milde

    Günter Milde - 2025-04-23
    • Description has changed:

    Diff:

    --- 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.
    
     
  • Günter Milde

    Günter Milde - 2025-04-23

    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


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
OSZAR »