On Thu, Jan 04, 2001 at 11:21:10PM +0200, Dekel Tsur wrote:
> Alternatively, you can use the following hack:
> Insert the following lines to your .layout file
>
> Style Caption
> ...
An alternative to the above is to put the following in the layout file:
Style ShortCaption
CopyStyle Caption
LatexName setshortcaption
LabelString "Short Caption:"
LabelType Static
Preamble
\let\oldcaption=\caption
\renewcommand{\caption}[1]{
\ifx \shortcaption \undefined
\oldcaption{#1}
\else
\oldcaption[\shortcaption]{#1}
\fi
}
\newcommand{\setshortcaption}[1]{
\newcommand{\shortcaption}{#1}
}
EndPreamble
End