Skip to content

Suggestion: align caption together with image using the \adjustimage{} command from the adjustbox package #2

Description

@cr-jkb

Hello Martin Scharrer,

I just discovered the \adjustimage command to fix images in place and I absolutely love it so far.
However I am wondering how I could get the caption to move with the figure.

I use this command:
\adjustimage{height=4.5cm, left, caption={Short Caption}, nofloat=figure}{image-15.png}
and it works like a charm.

Furthermore I noticed that when the caption gets longer than the \textwidth it is automatically left-aligned.
However when it is shorter than the \textwidth the caption text is centered and looks off when the figure is positioned left-aligned but the caption floats centered in the middle of the page.

Wrapping it with another
\adjustbox{left}{ \adjustimage{.....}}
didn't do the trick.

Aligning caption and figure together with one command would be an awesome extension to this package and especially the \adjustimage{} usability.

Thanks for your awesome work on this package so far. I find it very useful for layout adjustments.

Kind regards,
Chris

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions