# [OS X TeX] captions without the numbering

Denis Chabot chabotd at globetrotter.net
Mon Dec 25 11:05:22 EST 2006

Thank you very much Maarteen.

This works as expected, although it is above my head and I'm not sure
what each line does. I thought there was an option I could set to get
this result. No way I could have ever figured this one alone.

Denis
Le 06-12-24 à 15:10, Maarten Sneep a écrit :

> On 24-dec-2006, at 17:42, Denis Chabot wrote:
>
>> I wanted to play with LaTeX in the context of writing a letter. I
>> include photos and I wanted to have captions for them, but it
>> looks a bit too formal to have Fig. 1, etc. at the beginning of
>> each caption.
>>
>> Is there any way to remove this? Oups, wrong question, I'm sure
>> the answer is yes. What is the easiest way to remove them? I'm
>> just using article class because figures do not appear to work in
>> the letter and KOMA-letter templates available in TeXShop.
>
> Indeed, this is possible. Glad you added the second question ;-)
> Figures are not considered standard parts for a letter. If you're
> happy with using the article class, this might work for you, this
> is for just with the caption, no number, no label (look up the
> original in article.cls to see what I changed):
>
> \makeatletter
> \long\def\@makecaption#1#2{%
>   \vskip\abovecaptionskip
>   \sbox\@tempboxa{#2}%
>   \ifdim \wd\@tempboxa >\hsize
>     #2\par
>   \else
>     \global \@minipagefalse
>     \hb at xt@\hsize{\hfil\box\@tempboxa\hfil}%
>   \fi
>   \vskip\belowcaptionskip}
> \makeatother
>
> Include this in your preamble
>
> Regards,
>
> Maarten