This question is specifically regarding \captionof
s, which I have been using instead of captions
s since the latter are floating.
(Unfortunately, I have experienced that \captionof
's sometimes interfere with something simple as an abstract
, which I thus had to remove.)
Regarding the lay-out of \captionof
s:
-
I would like to have the
\captionof
encompass less width than the\textwidth
.Already, I obtained this using:
\parbox{0.9\linewidth}{\captionof{figure}{
But, I inserted the desire into the question anyway, because there might be a more elegant way to solve both questions.
-
Now, I would like to increase space between the vertical space between the caption and the image (but specifically for
\captionof
s, instead of normal\caption
s -> I have not been able to achieve this considering other similar questions for\caption
s).
Best Answer
The vertical distance between
\caption
and the image (or whatever) can be controlled with\captionsetup{skip=...}
where...
stands for some appropiate value. The standard value forarticle
,report
andbook
is10pt
.Please note that the
caption
manual clearly states that still theclass
or another package might take control of the skip between figure or table content (the figure/table etc. environments are defined by the class, not bycaption
.skip=
actually sets\abovecaptionskip
, a LaTeX length register. Changing\belowcaptionskip
could help too.For the margins, the
minmargin=...
andmaxmargin=...
option keys can be used, see the example and the screen shot.