Graphics, Figures & Tablesdocumentclass[twocolumn]{elsarticle}, tables* figure*

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Mohamadb
Posts: 1
Joined: Wed Apr 19, 2017 3:15 pm

documentclass[twocolumn]{elsarticle}, tables* figure*

Post by Mohamadb »

Dear all

I'm working on my master thesis (deadline mid may) and I am aiming for publishing the work in the journal of biomechanics.
My problem lies with the positioning of tables and figures in the result section. My preamble:

Code: Select all

\usepackage{amssymb}
%% The amsthm package provides extended theorem environments
\usepackage{amsthm} 
\usepackage{amsmath} 
\usepackage[final]{pdfpages}
\usepackage[utf8]{inputenc}
\usepackage{float}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{booktabs} 
\usepackage[flushleft]{threeparttable}
% \usepackage{tablefootnote}
\usepackage{tabularx}
% \usepackage{multicol}
\usepackage{multirow}
\newcolumntype{Y}{>{\centering\arraybackslash}X}
\usepackage{blindtext}
\usepackage{afterpage}
The table I am trying to position

Code: Select all

\begin{table*}
    \captionof{table}{Absolute lunge time in seconds. The values are presented in means (SD).}\label{tab:lungetime}
    \begin{threeparttable}
    \begin{tabularx}{\textwidth}{c *{5}{Y}}
    \toprule
    Variable & Non-copers (n=8) & Copers (n=8) & Controls (n=8) & P-value\\
    \midrule
    Time (s) & 1.24 (0.15) & 1.066 (0.24) & 0.98 (0.22) & 0.067 \\
    \bottomrule
    \end{tabularx}%
    \begin{tablenotes}
    \item Values are presented as mean(SD)
    \end{tablenotes}
  \end{threeparttable}
\end{table*}%
The table appear on the next page and the subsequent figures and tables pushed the text all the way down. Any idea how to tackle the problem.

Thanks A lot.

Best of regards
Mohamad
Last edited by Stefan Kottwitz on Thu Apr 20, 2017 10:34 am, edited 1 time in total.

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10329
Joined: Mon Mar 10, 2008 9:44 pm

documentclass[twocolumn]{elsarticle}, tables* figure*

Post by Stefan Kottwitz »

Hi Mohamad,

welcome to the forum!

table* is a table that spans over two columns. Once a column is started by TeX, space for that cannot be reserved. So it appears earliest on top of the next page.

So you need to place it earlier in the code. Or use table (without star) instead.

Stefan
LaTeX.org admin
Post Reply