[texhax] Centered Caption across two columb,
Left justified in one columb
David Vannucci
d.vannucci at ee.wits.ac.za
Thu Oct 9 09:30:32 CEST 2003
Hello All,
I am using the article class with a journals style file. If a figure caption
is over one column in a two column page it is left justified, however they
have neglected to center the caption if it is across both columns.
This is their code
\long\def\@makecaption#1#2{\vskip 8pt{\normalfont\small #1. #2\par}}
How do I modify it so that the captions are center justified for two column
figures, and remain left justified for one column.
David Vannucci
This is the original make caption 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 at xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
More information about the texhax
mailing list