# [texhax] Problems specifying captions (with the captions package)

KKThird at Yahoo.Com kkthird at yahoo.com
Wed Mar 23 06:37:29 CET 2005

Hello all.

I'm trying to get table captions that are centered,
with the table identifier (i.e., TABLE 1) also in
caps, centered, and with no period after the
identifier. I'm trying to use the caption package to
make this happen, but I'm running into trouble. Most
of the options I need are not there and some of the
ones that are are not working out too well. I can
specify centered, but the table identifier part (e.g.,
TABLE 1 isn't actually centered). Furthermore, I
cannot figure out how to get the identifier in caps
(TABLE 1 rather than Table 1) . I've found a way to
cheat so that the caption itself is double spaced, but
this isn't convenient (by adding \newline commands
in). Any help would be greatly appreciate (it isn't my
idea to center and double space the table headings,
rather they are ridged guidelines I must follow).
Below is an example of what I'm coming up with (simply
past into the text editor and run LaTeX on it). I
can't find anything that discusses these problems on
line anywhere.

Thanks very much for any help.

% This is example code of what I'm getting.
\documentclass{amsart}
\usepackage{caption}
\captionsetup[table]{justification=centering,
labelsep=newline,font=small}
\begin{document}
\setcounter{table}{0}
\renewcommand{\thetable}{C-\arabic{table}}
\begin{table}
\begin{center}
\caption{\newline TABLE IDENTIFYING THE NUMBER OF
FAILURES THAT OCCURRED
IN THE\newline\newline SIMULATION STUDY FOR EACH OF
THE SITUATIONS
(CONDITION BY\newline\newline
SCENARIO)}\label{Failure.Table}
\begin{tabular}{|c|c|c|c|}
\hline
Condition & Scenario 1 & Scenario 2 & Scenario 3 \\
\hline
1 & 0 & 0 & 2 \\
2 & 2 & 1 & 2 \\
3 & 2 & 1 & 2 \\
4 & 2 & 0 & 2 \\
5 & 0 & 0 & 0 \\
6 & 0 & 0 & 0 \\
7 & 0 & 0 & 2 \\
8 & 2 & 1 & 3 \\\hline
9 & 0 & 1 & 2 \\
10 & 2 & 1 & 0 \\
11 & 0 & 1 & 3 \\
12 & 1 & 2 & 4\\
13 & 1 & 0 & 3 \\
14 & 0 & 0 & 2 \\
15 & 8 & 4 & 6 \\
16 & 1 & 4 & 7 \\\hline
17 & 0 & 0 & 0 \\
18 & 0 & 0 & 0 \\
19 & 0 & 1 & 6 \\
20 & 1 & 1 & 0 \\
21 & 0 & 0 & 3 \\
22 & 0 & 0 & 1 \\
23 & 1 & 4 & 16 \\
24 & 2 & 3 & 12 \\
\hline
\end{tabular}
\end{center}
\end{table}
\clearpage \pagebreak
\end{document}
% ----------------------------------

__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!