12

I want to render a table with results of experiments. There are 6 experiments (multirows) described by 2 columns and each of them is performed 5 times (rows).

My code:

\begin{tabular}{l r | l || r r}
Vzorka & Výskyty & Algoritmus & Porovnania & Prístupy \\ \hline 
\multirow{5}{*}{Gabriel} & \multirow{5}{*}{8}
& NAIVE BINARY          & 158   & 44 \& NAIVE BINARY_LCP      & 174 & 92 \& NAIVE INTERPOLATION   & 168 & 78 \& LESS NAIVE BINARY       & 98    & 26 \& LESS NAIVE BINARY_LCP & 124   & 58 \\ \hline
...
\end{tabular}

This code produces what I want only for the first row:

The output of above code

successful rows after the first one are shifted and overlapping the "8" number. Can you please help me?

14

I believe your problem is that you didn't put enough empty cells for the following lines. A multirow will allow content to occupy space, but doesn't actually create the cells that are under it. I rewrote your code aligning everything to illustrate that.

\begin{tabular}{l r | l || r r}
Vzorka & Výskyty & Algoritmus & Porovnania & Prístupy \\ \hline 
\multirow{5}{*}{Gabriel} & \multirow{5}{*}{8} & NAIVE BINARY          & 158   & 44 \\
                         &                    & NAIVE BINARY_LCP      & 174   & 92 \\
                         &                    & NAIVE INTERPOLATION   & 168   & 78 \\
                         &                    & LESS NAIVE BINARY     & 98    & 26 \\
                         &                    & LESS NAIVE BINARY_LCP & 124   & 58 \\ \hline
\end{tabular}

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.