Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!comp.vuw.ac.nz!canterbury!otago.ac.nz!graeme From: graeme@otago.ac.nz Newsgroups: comp.text.tex Subject: Re: LaTex \caption command Message-ID: <1991Mar6.124616.127@otago.ac.nz> Date: 6 Mar 91 00:17:13 GMT References: <1991Mar4.224724.2116@macc.wisc.edu> Organization: University of Otago, Dunedin, New Zealand Lines: 43 In article <1991Mar4.224724.2116@macc.wisc.edu>, bruggink@vms.macc.wisc.edu writes: > > The \caption command generates *both* table and figure captions; I want > table captions to be in a different font and format than figure captions, > and I want to continue using "\caption" so that the auto-numbering of > tables and figures is preserved. > > Can anyone suggest a way to do this within a .STY file?? > > --dennis bruggink > bruggink@vms.macc.wisc.edu bruggink@ccc.nersc.gov The command for formatting captions is \@makecaption. The \@makecaption command, below, has been redefined to handle tables and figures differently. \def\tablecaption{table} \long\def\@makecaption#1#2{% \ifx\@captype\tablecaption % i.e., a table caption \begin{center} \footnotesize \bf #1 \\ % centre TABLE #2 \par % centre caption \end{center} \else % a figure caption \small \vskip 10pt plus4pt minus2pt {\it #1:}\quad #2 \fi} Such a definition should be placed inside a substyle file. Place disclaimer here. Graeme McKinstry graeme@otago.ac.nz Computing Services Centre, University of Otago, Dunedin, New Zealand. SHEPPEY (n.) Measure of distance (equal to approximately seven eighths of a mile), defined as the closest distance at which sheep remain picturesque.