We have table caption background image. We put this as image. But we need the table caption and images exactly same width as table body.
|
|
For customizing captions, the
You may use this command globally in your preamble but also within a table environment, which keeps it local and thus limits the effect of this setting. With a KOMA-Script class, without the
Since you use a background image, you might know the necessary width. Even if you don't know it, the width for the caption could be automatically calculated from the width of the table or image. Then the command
You could even write a macro for automatizing that, like
This works well with images. Tables might be harder as object, but in your case you could refer to your background images. |
|||||
|
|
Another option would be using the threeparttable or ctable packages, which will fit the width of the caption to the width of the table automatically. |
|||
|
|
|
Actually there ise more legal way to do this using captions package option For global effect
For local effect only in current environment:
More info in caption package doc: ftp://ctan.tug.org/ctan/macros/latex2e/contrib/caption/caption-eng.pdf |
|||
|
in caption package guide:
|
|||
|
|
