GeneralFormatting table label

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
noematic.logos
Posts: 19
Joined: Thu May 15, 2008 8:31 pm

Formatting table label

Post by noematic.logos »

Hi everyone,

my first post, so it will be silly I'm sure!

Ok the situation is this. Currently, in the standard install of latex, in the booktabs & ctable packages, when a table is inserted it is labeled in the following format.

Table 1: Table title here

According to APA format guidelines, table labels need to be formatted like:

Table 1
Table title here

Is it possible to replace the colon with a carriage return? And given that I'm using the ctable & booktabs packages, where and how would be the best way to make this change global to my file??

Thanks!!!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Formatting table label

Post by gmedina »

Use the caption package. Refer to its excellent documentation.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
Joined: Mon Mar 10, 2008 9:44 pm

Formatting table label

Post by Stefan Kottwitz »

Hi,

additionally perhaps the apa class is useful for you if you need more of apa style than just the caption.

Stefan
LaTeX.org admin
noematic.logos
Posts: 19
Joined: Thu May 15, 2008 8:31 pm

Formatting table label

Post by noematic.logos »

OK,

thank you both! I found and used the following to achieve my goal:

Code: Select all

\begin{table}[h]
\captionsetup{labelsep=newline,singlelinecheck=false}
\caption{Example table title}

\begin{tabular}[t]{llr}
\toprule
\multicolumn{2}{c}{item} \\
\cmidrule(r){1-2}
Animal & Description & Price (\$) \\
\midrule
Gnat & per gram & 13.65 \\
	& each	   & 0.01 \\
Gnu  & stuffed      & 92.50 \\
Emu & stuffed      & 33.33 \\
Armadillo & frozen & 8.99 \\
\bottomrule
\end{tabular}

\label{tab:exp1_descriptives}

\end{table}
Post Reply