1

I am trying to add a line to the top and bottom of a column in my table. Is there a specific command for that?

I tried using \cline but it only adds one line to the bottom.

  • Use \cline before and after? Please provide a minimal working example showing what you've got. Almost certainly, you should use booktabs rules rather than \cline anyway. – cfr Feb 23 '17 at 2:06
  • For booktabs, there's \toprule and \bottomrule (and \midrule). – jon Feb 23 '17 at 2:11
2

See example. Also, use \hline for horizontal lines that span the tabular.

\documentclass{article}

\usepackage{lipsum}

\begin{document}


\begin{tabular}{p{1.5in}cp{1in}cp{1.5in}}
\cline{2-3}
\lipsum[1] & 1 & \lipsum[2] & 2 & \lipsum[3]    \\
\cline{3-5}
\end{tabular}
\end{document}

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.