Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
    
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
add comment

1 Answer 1

up vote 3 down vote accepted

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

share|improve this answer
    
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 –  Herbert 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?? –  Herbert Jul 11 '12 at 9:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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