TeX - LaTeX Asked by sanaz on August 31, 2021
Kindly please help me soon, I must submit my paper as soon as possible and still there is a problem and white space and though I used htp for table, my table come between the text! also, I’ve searched a lot and still have this problem, after a long table there is a white space that the section can be in that space. My LaTeX code is as below:
documentclass{cta-author}
usepackage{natbib}
usepackage{longtable}
usepackage{lineno,hyperref}
usepackage{lineno}
usepackage{parskip}
usepackage[utf8]{inputenc}
usepackage{framed} % Framing content
usepackage{multicol} % Multiple columns environment
usepackage{textcomp}
usepackage[T1]{fontenc}
usepackage{resizegather}
usepackage{booktabs}
usepackage{bm}
usepackage[font=small,skip=0pt]{caption}
usepackage{setspace}
begin{document}
{text}
subsection{text}
begin{table}[!t]
caption{text1}
label{table1}
centering
resizebox{0.48textwidth}{!}{%
%{small begin{center}
begin{tabular}{|l|}
%begin{longtable}{l}
% centering
topruletoprule
{text}
bottomrulebottomrule
end{tabular}
}
end{table}
begin{table}[h]
caption*{raggedright Continuation of Table ref{table1}:}
label{table2}
centering
resizebox{0.48textwidth}{!}{%
begin{tabular}{|l|}
topruletoprule
{text3}
end{tabular}}
vspace{-5pt}
end{table}
section{Simulation Results}
label{section 2}
{text}
raggedbottom
begin{table}[htp]
caption{Simulation}
label{Table4}
centering
begin{spacing}{1.5}
smalladdtolength{tabcolsep}{-15pt}
begin{tabular}{l c}
topruletoprule
{text5}
bottomrulebottomrule
end{tabular}
end{spacing}
vspace{-10mm}
end{table}
{text}
end{document}
Removing vfill
should do the trick as Mico said.
Also, you might be interested in this question and its answer.
Here is the full (corrected) MWE assuming article document class.
documentclass{article}
usepackage{graphicx}
usepackage{booktabs}
begin{document}
begin{table}[h]%[!htbp]%[tp]
caption*{raggedright Table 1}
label{table3new}
centering
resizebox{0.48textwidth}{!}{%
begin{tabular}{|l|}
topruletoprule
{text}
bottomrulebottomrule
end{tabular}}
vspace{-5pt}
end{table}
%vfill
section{Simulation Results}
label{section Five}
{text}.
raggedbottom
begin{table}[h]%[!htbp]%[tp]
caption*{raggedright Table 2}
label{table3new}
centering
resizebox{0.48textwidth}{!}{%
begin{tabular}{|l|}
topruletoprule
{text}
bottomrulebottomrule
end{tabular}}
vspace{-5pt}
end{table}
{text again}
end{document}
Answered by jchd on August 31, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP