1

This is the code of my table and the border is not complete and i don't know why

\begin{table}[htbp]
\centering
\caption{Aertssen values for m and n \cite{aertssen3}}
\begin{tabular}{|c|cccccccc|}  \hline
 & \multicolumn{2}{c}{Head Sea} & \multicolumn{2}{c}{Bow Sea} & \multicolumn{2}{c}{Beam Sea} & \multicolumn{2}{c}{Following Sea} \\ \hline       
   BN & m & n & m & n & m & n & m & n \\ \hline
    5 & 900 & 2 & 700 & 2 & 350 & 1 & 100 & 0\\
    6 & 1300 & 6 & 1000 & 5 & 500 & 3 & 200 & 1\\
    7 & 2100 & 11 & 1400 & 8 & 700 & 5 & 400 & 2\\
    8 & 3600 & 18 & 2300 & 12 & 1000 & 7 & 700 & 3\\\hline
\end{tabular}%
\label{mn}%
\end{table}%
2

The problem is that you need to use \multicolumn{2}{c|}{Following Sea} instead of \multicolumn{2}{c}{Following Sea}. Try:

\documentclass{amsart}
\begin{document}
   \begin{table}[htbp]
   \centering
   \caption{Aertssen values for m and n \cite{aertssen3}}
   \begin{tabular}{|c|cccccccc|}
   \hline
   & \multicolumn{2}{c}{Head Sea} & \multicolumn{2}{c}{Bow Sea} & \multicolumn{2}{c}{Beam Sea} & \multicolumn{2}{c|}{Following Sea} \\ \hline
   BN & m & n & m & n & m & n & m & n \\ \hline
    5 & 900 & 2 & 700 & 2 & 350 & 1 & 100 & 0\\
    6 & 1300 & 6 & 1000 & 5 & 500 & 3 & 200 & 1\\
    7 & 2100 & 11 & 1400 & 8 & 700 & 5 & 400 & 2\\
    8 & 3600 & 18 & 2300 & 12 & 1000 & 7 & 700 & 3\\
    \hline
    \end{tabular}%
       \label{mn}%   
   \end{table}%
\end{document}
1
 & \multicolumn{2}{c}{Head Sea} & \multicolumn{2}{c}{Bow Sea} & \multicolumn{2}{c}{Beam Sea} & \multicolumn{2}{c|}{Following Sea} \\ \hline
  • 2
    Please provide a full example with some explanation! Like this, it is more a comment. Thank you. – LaRiFaRi Nov 18 '14 at 14:44
  • It solves the problem – Ameen Mohamed Bassam Nov 18 '14 at 14:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.