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
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
- Attachments
-
- Table to be replicated.
- example.jpg (221 KiB) Viewed 1797 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Problem with Table in double-columned Article
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
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
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