I am trying to write the following simple table within one column under springer svjour3 format. It is not only overflowing the column but also producing lots of bad boxes. I have tried with l/c/r/manual width specification under tabular and tabularx respectively without success.
\documentclass[twocolumn]{svjour3}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{comment}
\usepackage[center]{caption}
\usepackage{subcaption}
\usepackage{float}
\usepackage[misc]{ifsym}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage[figuresright]{rotating}
\setlength{\rotFPtop}{0pt plus 1fil}
\usepackage{makecell}
\renewcommand{\theadfont}{\bfseries}
\begin{document}
%%%%%%%%%%%%%%%%% Accuracy comparison %%%%%%%%%%%%%%%%%%%%%%
\begin{table}
% table caption is above the table
\caption{Accuracy comparison with similar approaches}
\label{tab:accuracy comparison} % Give a unique label
% For LaTeX tables use
\begin{tabularx}{\linewidth}{>{\raggedright\arraybackslash}p{0.5in}
>{\raggedright\arraybackslash}p{0.75in}
>{\raggedright\arraybackslash}p{0.75in}
X
}
\toprule
\thead{Reference} &\thead{ Learning\\approach} & \thead{Initial\\movement}& \thead{Accuracy\\claimed(\%)}\\
\midrule\\
\textbf{[1]} & KNN(K=1) & Walking/running & 93\\
\addlinespace
\textbf{[2]} & Threshold & Walking & 72\\
\addlinespace
\textbf{[3]} & Threshold & Walking & 87.5\\
\addlinespace
\textbf{Implemented system} & Threshold & Walking & 94.45\\
\bottomrule
\end{tabularx}
\end{table}
\end{document}
Please help.
tabularx
withoutX
columns.svjour3
-- usingmulticol
-- please see the answer below