On Mon, Aug 19, 2002 at 08:08:59PM +0200, Raul de la Cruz wrote:
> I would want to do multiple lines captions on Figure Float component. I
> know how to get a Figure Float, and put an image and a caption inside. But
> the problem is that my caption has multiple lines using Control-Enters and
> in List of Figures I get all caption and I only want the first line in the
> List of Figures.
I just gave the answer to this question on this list, but here it is again:
Copy the file stdlayouts.inc to ~/.lyx/layouts/, and add to it
(at the end) the following lines:
Style ShortCaption
CopyStyle Caption
LatexName shortcaption
LabelString "Short Caption:"
LabelType Static
Preamble
\let\oldcaption=\caption
\newcommand{\shortcaption}[1]{%
\renewcommand{\caption}[1]{\oldcaption[#1]{##1}}%
}
EndPreamble
End
Then, before each caption, insert a shortcaption paragraph
that contains only the line that you want in the list of figures.