Gal Aviel wrote:

> 
> Anybody know how to set the table float caption to left alligned ?
> 
> I have this really small table of 2x2, which is left allighed by default, but
> it looks really bad since the (long) caption is center alligned by defualt.
> 
> I have tried inserting /begin{flushleft} and /end{flushleft} before the first word 
>of the
> caption and after the table, but it does not work (I see it in the latex export, but
> it seems to have effect only on the table, not on the caption).
> 
> How can I bypass it ?
> 
> My setup : Lyx 1.1.6fix4 on a recent i386 Redhat machine (7 something).


write in preamble:

\long\def\@makecaption#1#2{%
   \vskip\abovecaptionskip
   \sbox\@tempboxa{#1: #2}%
   \ifdim \wd\@tempboxa >\hsize
     #1: #2\par
   \else
     \global \@minipagefalse
     \hb@xt@\hsize{\box\@tempboxa\hfil}%
   \fi
   \vskip\belowcaptionskip}


Herbert

-- 
http://www.lyx.org/help/

Reply via email to