1

How can I remove the \toprule above a specific cell?

\begin{table}[!htbp]
  \begin{center}
    \begin{tabular}{l l l}
      \toprule
       & column & column\\
      \midrule 
      row & word & longword\\
       & word & word\\
       & word & word\\
       & word & word\\
       &  & word\\
       &  & word\\
      \midrule 
      row & word & word\\
       & word & word\\
       & word, word & word\\
       & word & word\\
       & word & word\\
       &  & word\\
       &  & word\\
       &  & word\\
      \bottomrule 
    \end{tabular}
  \end{center}
\end{table}

table

  • 3
    Welcome to TeX SX! Use \cmidrule[2-3} instead. Unrelated: don't use the center environment nested in table. It adds spurious vertical spacing. Use the \centering directive in the place of the environment. – Bernard Jun 28 '21 at 10:28
  • That should be \cmidrule{2-3}. @Bernard that will not have the same thickness and spacing as \toprule. – daleif Jun 28 '21 at 10:33
  • Maybe you meant \cmidrule[\heavyrulewidth]{2-3} ? Seems to work. @Bernard thank you, that explains some issues! – user245331 Jun 28 '21 at 10:48
  • Yes, I didn't think of taking into account the rule thickness. – Bernard Jun 28 '21 at 10:59
  • Though I'm not 100% sure the spacing above and below are the same, but perhaps it is good enough – daleif Jun 28 '21 at 12:09
  • 1
    The purpose of \toprule and \bottomrule is to isolate the table from the context; it makes little sense to remove part of them. – egreg Jun 28 '21 at 13:00

0 Answers0