Hello everyone,
This is my first post.
I am trying to replica one table in a double columned paper. I have some problems.
I have so far come up with:
\begin{table*}[ht]
\caption{Summary of experimental results on the pressure dependence of soot in laminar diffusion flames}
\begin{tabularx}{\textwidth}{@{\extracolsep{\fill}}p{2cm}p{2cm}p{2cm}p{2.5cm}p{2.5cm}p{2.5cm}}
\toprule
Refs. & Pressure range [atm] & Fuel and fuel flow rate [mg/s] & \multicolumn{3}{l}{Pressure scaling factor $n$ in [soot] $\propto P^n$} \\ \cmidrule{4-6}
&&&Path integrated maximum soot&Local maximum soot&Maximum conversion of carbon
\end{tabularx}
\end{table*}
The problem is that the cmidrule sits quite below the relevant text, that is, "Pressure exponent, n". Also as can be seen in the attachment, last 3 columns which sit just below the cmidrule also sits quite below the relevant text.
Can somebody help me on this.
Thanks
Emre
Graphics, Figures & Tables ⇒ Problem with Table in double-columned Article
-
- Posts: 3
- Joined: Fri Jun 17, 2011 9:54 am
Problem with Table in double-columned Article
- Attachments
-
- Table to be replicated.
- example.jpg (221 KiB) Viewed 1840 times
Last edited by paristhecure on Fri Jun 17, 2011 9:45 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Problem with Table in double-columned Article
Typesetting tables can sometimes be very hard. In this case it needs several tricks. For one of them it requires the multirow package. The table itself is done by the quite new and very sophisticated tabu package. The \cite commands are just dummies.
The \smash command fools LaTeX by hiding the height of its argument. You might wonder why there is a \multirow{1}{*}{…} command. Without this the desired output can be achieved. Copy the following code into the above example and compare.
This causes still some additional space right above the \cmidrule (don't ask me why).
There are several other packages involved in this solution. Study their manuals to learn what they are for.
Best regards and welcome to the board
Thorsten
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[margin=2cm]{geometry}
\usepackage{caption}
\usepackage{booktabs,multirow,tabu}
\usepackage{siunitx}
\captionsetup{%
font=small,
labelfont=bf,
tableposition=top
}
\sisetup{%
load-configurations=abbreviations,
range-phrase={--},
separate-uncertainty,
}
%\setlength{\extrarowsep}{3pt}
\begin{document}
\begin{table*}[!ht]
\caption{Summary of experimental results on the pressure dependence of soot in laminar diffusion flames}\label{tab:pressure-soot}
\begin{tabu} to \textwidth {l*5{>{\raggedright}X}}\toprule
Refs. &
\multirow{1}{*}{\smash{\parbox[t]{\linewidth}{\raggedright Pressure range [atm]}}} &
\multirow{1}{*}{\smash{\parbox[t]{\linewidth}{\raggedright Fuel and fuel flow rate [mg/s]}}} &
\multicolumn{3}{c}{Pressure scaling factor $n$ in [soot] $\propto P^n$} \\ \cmidrule{4-6}
& & & Path integrated maximum soot & Local maximum soot (location) & Maximum conversion of carbon \\ \midrule
\cite{first} & \numrange{0.1}{1} & Ethylene\par \numlist{1.9;2.7;4.4} & \num{1.2(1)} & & \\ \addlinespace
\cite{second} & \numrange{0.1}{0.4} & Ethylene\par \num{3.4} & \num{1.26} & 2 (\SI{20}{\mm} above burner rim) & \\ \addlinespace
\cite{third} & \numrange{0.1}{1.6} & Ethylene\par \num{1.13} & \num{1.2} & \num{1.7} & \\ \addlinespace
\cite{third} & \numrange{0.1}{2.5} & Methane\par \num{1.1} & 1 & \num{1.2} & \\ \addlinespace
\cite{fourth} & \numrange{0.5}{2} & Methane\par \num{0.55} & 2 & 1 & \\ \addlinespace
\cite{sixth} & \numrange{2}{4} & Methane\par \num{0.55} & \num{1.2} & \num{0.1} & \\ \bottomrule
\end{tabu}
\end{table*}
\end{document}
Code: Select all
\begin{table*}[!ht]
\caption{Summary of experimental results on the pressure dependence of soot in laminar diffusion flames}\label{tab:pressure-soot}
\begin{tabu} to \textwidth {*6{>{\raggedright}X}}\toprule
Refs. &
\smash{\parbox[t]{\linewidth}{\raggedright Pressure range [atm]}} &
\smash{\parbox[t]{\linewidth}{\raggedright Fuel and fuel flow rate [mg/s]}} &
\multicolumn{3}{c}{Pressure scaling factor $n$ in [soot] $\propto P^n$} \\ \cmidrule{4-6}
& & & Path integrated maximum soot&Local maximum soot&Maximum conversion of carbon \\ \midrule
\end{tabu}
\end{table*}
There are several other packages involved in this solution. Study their manuals to learn what they are for.
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
-
- Posts: 3
- Joined: Fri Jun 17, 2011 9:54 am
Re: Problem with Table in double-columned Article
Hi Thorsten,
Thank you for your insight. This solved my problem; I am playing with the commands right now to understand how each of them works. You saved me from spending another day on this graph.
Cheers
Emre
Thank you for your insight. This solved my problem; I am playing with the commands right now to understand how each of them works. You saved me from spending another day on this graph.
Cheers
Emre