TeX - LaTeX Asked on May 2, 2021
I am getting this error
!
Misplaced noalign. midrule ->noalign
The MWE is as follows. The intension is to spread the table over two columns.
documentclass[twocolumn]{svjour3}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{comment}
usepackage[center]{caption}
usepackage{subcaption}
usepackage{float}
usepackage{csquotes}
usepackage[section]{placeins}
usepackage{amsmath}
%Table packages
usepackage{tabularx}
usepackage{booktabs}
usepackage{makecell}
sisetup{per-mode=symbol}
renewcommand{theadfont}{bfseries}
begin{document}
begin{table*}
% table caption is above the table
caption{Overall summary of the output}
label{tab:FOF data} % Give a unique label
% For LaTeX tables use
begin{tabularx}
{linewidth}{>{raggedrightarraybackslash}p{0.5in}
c
c
c
c
c
c
c
c
}
toprule
thead{PatientNumber} &thead{$T_{before}$(week1)} & thead{$T_{after}$(week1)}& thead{$C_{week1}$}
& thead{$C_{week2}$}& thead{$C_{week3}$}& thead{$C_{week4}$}& thead{Overallimprovement}&thead{$T_{after}$(week1)}
midrule
1&41&34&17.07&17.26&20.62&23.67&6.60&32
addlinespace
2&41&41&0.00&3.49&6.47&7.16&7.16&35
addlinespace
3&34&17.07&18.88&19.87&21.12&4.05&30
addlinespace
4&89&88&1.12&3.27&6.13&8.30&7.18&81
addlinespace
12&50&50&0.00&0.00&0.00&0.00&0.00&50
bottomrule
end{tabularx}
end{table*}
end{document}
As I am a beginner, so could not separate the exact packages for MWE and included all the packages that are used in the document. Pardon my ignorance.
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP