I'm trying to make a simple table but the last column is overflowing without border even though the content is not in excess. I'm relatively new to latex so I'm not sure if I'm missing something.
I used the following code and I've also attached a picture of the output.
\begin{table*}[t]
\centering
\begin{tabular*}{\textwidth}{|l|l|p{1.2cm}|p{1cm}|l|l
|l|l|l|l|l|l}
\hline
\multicolumn{1}{|c|}{\textit{\textbf{Paper}}}
& \multicolumn{1}{c|}{\textit{\textbf{Year}}}
& \multicolumn{1}{c|}{\textit{\textbf{Methodology}}}
& \multicolumn{1}{c|}{\textit{\textbf{Modality}}}
& \multicolumn{1}{c|}{\textit{\textbf{Automatic}}}
& \multicolumn{1}{c|}{\textit{\textbf{Supervision}}}
& \multicolumn{1}{c|}{\textit{\textbf{Acc.}}}
& \multicolumn{1}{c|}{\textit{\textbf{Precision}}}
& \multicolumn{1}{c|}{\textit{\textbf{Sensitivity}}}
& \multicolumn{1}{c|}{\textit{\textbf{Specificity}}}
& \multicolumn{1}{c|}{\textit{\textbf{DS*}}}
& \multicolumn{1}{c|}{\textit{\textbf{HS*}}}
\tabularnewline \hline
[27] & 2022 & BiTr-Unet & T1, T2, T1ce, FLAIR & semi & supervised & 95\% & - & - & - & 0.96 & 9.1647 \\
\hline
[28] & 2021 & LBTS-Net & T1, T2, FLAIR & semi & supervised & 98.11\% & - & - & - & 91\% & -
\tabularnewline \hline
[29] & 2019 & stacked sparse auto encoder & T1, T2 & automatic & unsupervised & 0.96 & - & 0.93 & 1 & 0.96 & -
\tabularnewline \hline
[30] & 2020 & hybrid deep auto encoder & T1, T2, T1ce, FLAIR & automatic & unsupervised & 98.50\% & 0.96 & 0.96 & 0.9954 & - & -
\tabularnewline \hline
[31] &2020& MM-GAN& T1, T2, T1ce, FLAIR& semi& unsupervised& - &- &-& - &0.6903& -
\tabularnewline \hline
[32]& 2021& DD-GAN &T1 ,T2w ,T1c , FLAIR &semi& unsupervised &-& 0.735 &0.613 &- &0.619& -
\tabularnewline \hline
\end{tabular*}
\end{table*}
l|l}
with no final|
{tabular*}{\textwidth}
means that the table will go up to the full\textwidth
. Usually is should be combined with something like this (in your case){|l@{\extracolsep{\fill}}|l|p{1.2cm}|p{1cm}|l|l|l|l|l|l|l|l|}
to tell it to extend not only the lines but the column separation space too. I think it should be enough in your case.