1

I have the follwing table

\begin{table}[t]
\center
\footnotesize
\caption{the capt}
\label{thelabel}
\begin{tabular}{ | c | c | } \hline
%\multirow{2}{*}{\textbf{Name}} & \multirow{2}{*}{\textbf{Value}} \\ \hline
\textbf{Name} & \textbf{Value} \\ \hline
\textbf{-} & \textbf{-} \\ \hline
\textit{CoCo} & 23 \\ \hline
\textit{KiKi} & 49 \\ \hline
\end{tabular}

\end{table}

How can I have the cells "Name" and "Value" on two rows by removing the cells containing "-", when I use 1\multirow{2}{*}{\textbf{Name}} & \multirow{2}{*}{\textbf{Value}} it doesnt work

  • The question is not very clear: \multirow is intended for having a cell vertically centered with respect to several cells next to it. Are you perhaps asking how to get more vertical space above and below "Name" and "Value"? – egreg Jul 11 '12 at 9:08
  • @egreg no, what I want is to merge the cell Name with the cell bellow it, using \multirow – user995434 Jul 11 '12 at 9:39
3

I suppose that you only want some more vertical space in the header which can be done with a vertical invisible rule:

\documentclass{scrartcl}
\begin{document}

\begin{tabular}{ | c | c | } \hline
\textbf{Name} & \textbf{Value}\\ 
\textbf{-} & \textbf{-} \\ \hline
\textit{CoCo} & 23 \\ \hline
\textit{KiKi} & 49 \\ \hline
\end{tabular}

\end{document}

enter image description here

  • No, what I want is to merge the cell Name with the cell bellow it, using \multirow, how can I use \multirow for my question – user995434 Jul 11 '12 at 9:39
  • then simply do not use \hline at the end – user2478 Jul 11 '12 at 9:41
  • can you modify your example so that I can see the result ?! – user995434 Jul 11 '12 at 9:48
  • well ok, remove \hline at the multirow line and adding an empty line "& \\ \hline" works, thanks – user995434 Jul 11 '12 at 9:52
  • see my edit, but I cannot believe that it is what you want?? – user2478 Jul 11 '12 at 9:52

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.