On Wed, Feb 13, 2002 at 01:34:42AM -0400, Garst R. Reese wrote: > This mechanism seems quite sensitive to user bungling. If I enter the > Short Caption after the Caption it gets ignored. If I enter the Caption > wrong it includes the graphic as part of the caption and gives me buffer > overflows. It looks like a parsing problem. Could cause new users big > problems. > Thanks, > Garst
What mechanism? Is there any? I haven't found it. (That is the most effective way of preventing new users causing problems; *very, very* good! Yep it's Friday.) Anyway, I implemented my own as it is valuable (nay, essential) to have. Did it using only LaTeX and the .layout file format, so should be risk-free :-) And works. Attached, with a screenshot. Martin -- Martin Vermeer [EMAIL PROTECTED] Helsinki University of Technology Department of Surveying P.O. Box 1200, FIN-02015 HUT, Finland :wq
Index: stdlayouts.inc =================================================================== RCS file: /cvs/lyx/lyx-devel/lib/layouts/stdlayouts.inc,v retrieving revision 1.3 diff -u -b -B -p -r1.3 stdlayouts.inc --- stdlayouts.inc 2001/07/08 12:52:14 1.3 +++ stdlayouts.inc 2002/02/15 09:04:52 @@ -84,7 +84,7 @@ End Style Caption Margin First_Dynamic LatexType Command - LatexName caption + LatexName lyxcaption NeedProtect 1 LabelSep xx ParSkip 0.4 @@ -98,4 +98,36 @@ Style Caption LabelFont Series Bold EndFont + + Preamble + \newcommand{\lyxcaption}[1]{\caption{#1}} + EndPreamble +End + +Style Short_Caption + LabelType Static + LabelString Short: + Margin Static + LatexType Command + LatexName shortcaption + NextNoIndent 1 + LeftMargin Short:xx + LabelSep xxx + ParSkip 0.4 + TopSep 1.3 + BottomSep 0.7 + ParSep 0.7 + Align Center + AlignPossible Center + + LabelFont + Series Bold + EndFont + + Preamble + \newcommand{\shortcaption}[1]{% + \renewcommand{\lyxcaption}[1]{\caption[#1]{##1}}% + }% + EndPreamble End +
<<attachment: short.jpeg>>
msg33034/pgp00000.pgp
Description: PGP signature