Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cr-jkb opened this issue Feb 14, 2025 · 0 comments

Comments

@cr-jkb
Copy link

cr-jkb commented Feb 14, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant