On 3 Feb 2011, at 16:54, Richard Heck wrote:

> Oh, sorry, I didn't see that you want the caption but not the label.
> 
> If that's what you want, then you will have to do something like redefine the 
> \@makecaption macro that is used to set the caption. I tried redefining 
> \fnum@figure to do nothing, but that leaves the ":" in front of the caption. 
> Here's the definition from article.cls:
> 
> \long\def\@makecaption#1#2{%
>  \vskip\abovecaptionskip
>  \sbox\@tempboxa{#1: #2}%
>  \ifdim \wd\@tempboxa >\hsize
>    #1: #2\par
>  \else
>    \global \@minipagefalse
>    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
>  \fi
>  \vskip\belowcaptionskip}
> 
> #1 is what you don't want. If you never want it, then you can just replace 
> "#1: #2" with "#2" and be done with it. If you want it in some cases but not 
> others, that is more complicated.

Thanks, I'll experiment with this. Possibly worth considering some option for 
this in LyX at some point?

I also notice a lot of people want to have images with captions which don't act 
as floats.

-- 
Kristoffer Lawson, Co-Founder, Scred // http://www.scred.com/
http://travellingsalesman.mobi - 10000km & The world's most arctic startups

Reply via email to