Graphics, Figures & TablesPositioning of Tables on Float Pages

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
mayankmi
Posts: 45
Joined: Sat Apr 20, 2013 7:52 pm

Positioning of Tables on Float Pages

Post by mayankmi »

I want to put tables one after another. But in second page they are with some gap.

Code: Select all

%\documentclass[final,authoryear,5p,times,twocolumn,sort&compress]{elsarticle}
\documentclass[final,3p,times]{elsarticle}
\usepackage[T1]{fontenc}
\usepackage{booktabs}

\journal{NDT\&E international}

%for figure at top of blank page
\makeatletter
\setlength\@fptop{0\p@}
%\preto{\@tabular}{\parskip=0pt}
\makeatother

\begin{document}
  \begin{frontmatter}
    \title{Paper Title}
    \begin{abstract}
    \end{abstract}
    \begin{keyword}
      NDT \sep Data fusion \sep Mechanical parameters \sep Bayesian \sep Uncertainty 
    \end{keyword}
  \end{frontmatter}

  \begin{table}[htp]
    \caption{Range of parameter values for granite}
    \centering
    \begin{tabular}{c c} \toprule
      Parameter & Range \\ \midrule
      v$_{ultrasonic}$(m/s) (Stone Block) & 3694--3885 \\
      v$_{sonic}$ (m/s)(Stone Block) & 4508--5332 \\
      $\nu$ & 0.2--0.3 \\
      $\rho$ (kg/m$^3$) & 2600--2800 \\ \bottomrule
    \end{tabular}
    \label{table:rangeofparameters}
  \end{table}

  \begin{table}[htp]
    \caption{Prior and Posterior estimates of E (Normal Distribution) in GPa considering sonic and ultrasonic data}
    \centering
    \begin{tabular}{p{3.5cm} p{2.cm} p{2.5cm} p{2.5cm} p{2.5cm}} \toprule
      Parameter & Literature &  1$^{st}$ Update & 2$^{nd}$ Update & 3$^{rd}$ Update\\ \midrule
      $\mu$ & --- & 33.20 & 32.70 & 32.28 \\
      $\sigma(\mu)$ & --- & 0.66 & 0.54 & 0.44 \\
      $\sigma$ & --- &  6.59 &  5.33 & 4.35 \\
      $\sigma(\sigma)$ & --- & 0.47 & 0.38 & 0.31 \\
      95\% confidence interval for mean & --- & 32.12--34.29 & 31.82--33.59 & 31.57--33.00 \\
      $\mu_{pop}$ & 35 & 33.21 & 32.70 & 32.26 \\
      $\sigma_{population}$ & 7.5 & 7.25 & 5.89 & 4.80 \\
      95\% confidence interval for population mean & 20.3--49.7 & 21.28--45.14 & 23.00--42.39 & 24.37--40.15 \\ \bottomrule
    \end{tabular}
  \end{table}

  \begin{table}[h]
    \caption{All acceptable responses for survey}
    \centering
    \begin{tabular}{p{2.5cm} p{2.cm} p{2.75cm} p{3.25cm}} \toprule
      Test method & Literature Knowledge &  Schmidt Hammer & Direct compressive test \\ \midrule
      Literature Knowledge  & 1 & (1/2,1,1/3,1/5,7,5,6,3,1/5,1/2)  & (1/8,1/8,1/8,1/9,1/7,1/7,1/8,1/6,1/3,1/7) \\
      Schmidt Hammer & Positive reciprocal & 1 & (1/7,1/8,1/5,1/6,1/8,1/9,1/8,1/8,1/3,1/5) \\
      Direct compressive test & Positive reciprocal & Positive reciprocal & 1 \\ \bottomrule
    \end{tabular}
  \end{table}
 
  \begin{table}[htp]
    \caption{Proposed Trust Factors for NDT tests used to find Elastic Modulus (E)}
    \centering
    \begin{tabular}{c c c} \toprule
      NDT Test & Weightage (w)	& Value of Trust Factor (T) \\ \midrule
      Literature Knowledge & 0.1195 & 1.23 \\
      Sonic Testing & 0.1080 & 1.24 \\
      Ultrasonic Testing & 0.1149 & 1.23 \\
      Direct Compression test & 0.6275 & 0.92 \\ \bottomrule
    \end{tabular}
    \label{tab:ProposedTrustFactorsE}
  \end{table}

  \begin{table}[htp]
    \caption{Prior and Posterior estimates of E (Normal Distribution) in GPa considering sonic and ultrasonic data including trust factors}
    \centering
    \begin{tabular}{p{3.5cm} p{2.cm} p{2.5cm} p{2.5cm} p{2.5cm}} \toprule
      Parameter & Literature & Prior 2 & Prior 3 & Posterior 3 \\ \midrule
      $\mu$ & --- & 33.25 & 32.72 & 32.30 \\
      $\sigma(\mu)$ & --- & 1.42 & 1.36 & 1.27 \\
      $\sigma$ & --- &  6.89 &  6.58 & 6.19 \\
      $\sigma(\sigma)$ & --- & 1.03 & 0.98 & 0.91 \\
      95\% confidence interval for mean & --- & 30.91-35.59 & 30.49-34.95 & 30.20-34.40 \\
      $\mu_{pop}$ & 35 & 33.24 & 32.73 & 32.32 \\
      $\sigma_{population}$ & 7.5 & 8.38 & 8.00 & 7.52 \\
      95\% confidence interval for population mean & 20.3-49.7 & 19.44-47.04 & 19.56-45.89 & 19.95-44.68 \\ \bottomrule
    \end{tabular}
    \label{tab:etrust}
  \end{table}
\end{document}
I know one option is to use H instead of htp. Is there some better option?
Last edited by localghost on Tue Jul 16, 2013 9:32 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

tom
Posts: 73
Joined: Thu Apr 18, 2013 4:02 am

Positioning of Tables on Float Pages

Post by tom »

You could use the subcaption package. Below is a code stub.

Code: Select all

\begin{table}[h!t]
	\begin{subtable}{\textwidth}
		\caption{Caption first table}
		\centering
		%tabular
		\label{tab:tab2}
	\end{subtable}
  
	\vspace{20pt}

	\begin{subtable}{\textwidth}
		\caption{Caption second table}
		\centering
		%tabular
		\label{tab:tab2}
	\end{subtable}
\end{table}
mayankmi
Posts: 45
Joined: Sat Apr 20, 2013 7:52 pm

Re: Positioning of Tables on Float Pages

Post by mayankmi »

hey tom !! one after another..not side by side..
Post Reply