Vitaly Lipatov wrote:

 > In LyX 1.1.6 I use modified style definition for Caption.
 > There is define
 >  AlignPossible     Left,Center
 > in definition I used.  I was possible to change alignment for Left to 
 > Center.
 > LyX 1.2.0 with center alignment of caption writes follow:
 > \caption{\begin{center}The text of my caption\end{center}}
 > LaTeX think it is not correct code and I get error in this line.
 > Any suggestions?


 > Modified Caption style:
 >
 > # Caption style definition
 > Style Caption
 >  Margin        First_Dynamic
 >  LatexType     Command
 >  LatexName     caption
 >  NeedProtect       1
 >  LabelSep      xx
 >  ParSkip       0.4
 >  TopSep        0.5
 >  Align         Left
 >  AlignPossible     Left,Center


this is wrong! You can have only one (!) alignment which
belongs to the definition in the classfile. If you
change the alignement to center then LyX does it like
for other paragraphs too, and this is wrong for captions.

Have a look into your documentclass for the default
aligment fpr captions and choose this one for the
LyX-layout or define anotherone with some special
preamblecode in the "Style Caption"

Herbert


Reply via email to