[OS X TeX] captions without the numbering

Maarten Sneep maarten.sneep at xs4all.nl
Sun Dec 24 21:10:09 CET 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.

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

------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the macostex-archives mailing list