When using subfloat, the caption centers with regards to the figure width. However I want to center it with regards to the axes. How to horizontally shift the captions (manually) for all the subfloats in a figure environment, to center to axes?
(My figures are in PDF format.)
Best Answer
To shift the sub-captions to the left or right one could use the
margin=
option offered by thecaption
package. The following example document will shift the sub-captions 2cm to the right:Please note the usage of the additional option
oneside
which will make sure that the extra sub-caption margins will not be swapped intwoside
documents.(Of course this trick will work in conjunction with the
subcaption
package as well.)