I am having trouble making the caption beneath a figure to be of same width of the figure (less than the width of the paragraphs in the same page). How can I force the caption width to be the same as the figure width?
[Tex/LaTex] Width of the caption of a figure
captionswidth
Best Answer
The
caption
package provides awidth
parameter than can be set for each figure individually. This way you can adjust the width to suit the width of your figure:If all your figures have the same width, you can set the option
\captionsetup{width=<len>}
globally.