Hello,
I am trying to create a table that has the following structure.
Table 1
<Comment>
[Placement of actual Table]
Note
The only thing I can not figure out is how to separate the Table label from the comment. I keep getting the following format.
Table 1: <Comment>
[Placement of actual Table]
Note
Any suggestions would be helpful.
Thanks!
Graphics, Figures & Tables ⇒ Separating table label from table comment
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Re: Separating table label from table comment
Post your code so we can see what you are actually doing.
Joseph Wright
Re: Separating table label from table comment
Here it is.
\begin{table*}[htdp]
\caption{Photochemical Lifetime and Vertical Mixing Time of Methane in Earth's Current Atmosphere}
\label{tab:tab1}
\begin{center}
\begin{tabular}{lcc} \thickline
Parameter & If released at 100 km & If released at 70 km \\ \hline
photochemical lifetime & 3-4 days & 8 months\\ \hline
vertical mixing & 1 month & 1 month \\ \hline
\end{tabular}
\end{center}
\tablefnt{\small Note. Values are adapted from `Aeronomy of the Middle Atmosphere' by G. Brasseur and S. Solomon, 1984).}
\end{table*}
\begin{table*}[htdp]
\caption{Photochemical Lifetime and Vertical Mixing Time of Methane in Earth's Current Atmosphere}
\label{tab:tab1}
\begin{center}
\begin{tabular}{lcc} \thickline
Parameter & If released at 100 km & If released at 70 km \\ \hline
photochemical lifetime & 3-4 days & 8 months\\ \hline
vertical mixing & 1 month & 1 month \\ \hline
\end{tabular}
\end{center}
\tablefnt{\small Note. Values are adapted from `Aeronomy of the Middle Atmosphere' by G. Brasseur and S. Solomon, 1984).}
\end{table*}
Separating table label from table comment
Usage of the caption package is one possible solution:
HTH,
Axel
Code: Select all
\documentclass{article}
\newcommand\tablefnt[1]{#1}
\newcommand\thickline{\hline}
\usepackage{caption}
\captionsetup[table]{singlelinecheck=off,labelsep=newline}
\begin{document}
\begin{table*}[htdp]
\caption{Photochemical Lifetime and Vertical Mixing Time of Methane in Earth's Current Atmosphere}
\label{tab:tab1}
\begin{center}
\begin{tabular}{lcc} \thickline
Parameter & If released at 100 km & If released at 70 km \\ \hline
photochemical lifetime & 3-4 days & 8 months\\ \hline
vertical mixing & 1 month & 1 month \\ \hline
\end{tabular}
\end{center}
\tablefnt{\small Note. Values are adapted from `Aeronomy of the Middle Atmosphere' by G. Brasseur and S. Solomon, 1984).}
\end{table*}
\end{document}
Axel
Re: Separating table label from table comment
Thank you!
That did work. I was using the caption package but did not know about the
\captionsetup[table]{singlelinecheck=off,labelsep=newline}
command.
That did work. I was using the caption package but did not know about the
\captionsetup[table]{singlelinecheck=off,labelsep=newline}
command.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Separating table label from table comment
It's always helpful to read the manual first. That's what it's made for.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10