Uwe Stöhr <[EMAIL PROTECTED]> writes:
>
> Tom schrieb:
>
> > I am using a tip on the LyX wiki for cross-referencing subfigures.
> > http://wiki.lyx.org/Tips/SubfiguresAndCrossReferences
> >
> > However, the subfigure captions don't seem to be including enough
> > whitespace.
>
> Have a look at the EmbeddedObjects manual. Here you find a description how to
get it to work
> properly with LyX.
> In the next major LyX release subfigures and their references are directly and
much better supported.
>
> regards Uwe
>
>
Thanks for the suggestion, it led me to a suitable solution but it was not in
the EmbeddedObjects manual. This manual mentions using the caption package in a
manner like:
\usepackage{caption}
\captionsetup[figure]{margin=2cm}
However, the caption package does not work with subcaptions provided by the
package subfigure that LyX uses. I found this info in section 6.14 of the
caption documents here:
http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=caption
By the way, the subfigure documents also say that the subfigure package is
deprecated and superceded by the subfig package.
The solution was to edit the subfigure style file subfigure.sty. It seems that
subfigure is defaulting to the "tight" configuration setup which removes all
margins from the captions (the tight option is set in subfigure.cfg). So I
edited the definition for the tight keyword for the caption margins. The line I
changed now looks like:
\subfigcapmargin = 10\p@
instead of
\subfigcapmargin = \z@
underneath the declaration for the tight option: \DeclareOption{tight}{%
-Tom