# [OS X TeX] captions without the numbering

Maarten Sneep maarten.sneep at xs4all.nl
Sun Dec 24 15:10:09 EST 2006

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.

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

Regards,

Maarten