Graphics, Figures & Tablesmultirow | Unexpected Errors

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
nifty
Posts: 16
Joined: Sat Oct 09, 2010 4:24 pm

multirow | Unexpected Errors

Post by nifty »

I am working with an author's file and he is using the multirow package. Here is a clip

Code: Select all

Code, edit and compile here:
\documentclass{book}
\usepackage{multirow}
\begin{document}
\begin{table}[!h]
\centering
\begin{tabular}{r|cccccccccc}
{\bf Brand} & \multicolumn{ 10}{c}{{\bf Number of Things}} \\
\hline
\multirow{2}{1.6pc}{\bf A} & 28 & 19 & 23 & 19 & 17 & 23 & 24 & 25 & 23 & 27 \\
& 18 & 16 & 24 & 23 & 20 & 24 & 24 & 20 & 24 & 23 \\
\hline
\multirow{2}{1.6pc}{\bf B} & 27 & 28 & 18 & 20 & 30 & 24 & 21 & 23 & 27 & 24 \\
& 30 & 23 & 22 & 25 & 17 & 18 & 22 & 25 & 29 & 30 \\
\end{tabular}\caption{Caption}
\end{table}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

When I compile it--using Textures--I am getting errors:

Code: Select all

! Undefined control sequence.
\@xmultirow ...a #2\bigstrutjot
\setbox 0\hbox {\vtop to \@te...
l.10 \multirow{2}{1.6pc}{\bf A}
& 28 & 19 & 23 & 19 & 17 & 23...
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Illegal unit of measure (pt inserted).
<to be read again>
\setbox
l.10 \multirow{2}{1.6pc}{\bf A}
& 28 & 19 & 23 & 19 & 17 & 23...
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)
! Undefined control sequence.
\@xmultirow ...a #2\bigstrutjot
\setbox 0\hbox {\vtop to \@te...
l.13 \multirow{2}{1.6pc}{\bf B}
& 27 & 28 & 18 & 20 & 30 & 24...
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
but it looks correct in pages. Can anyone tell what is wrong? Here's a screenshot that looks okay.
Attachments
test.jpg
test.jpg (94.69 KiB) Viewed 6463 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

multirow | Unexpected Errors

Post by localghost »

The given example works fine for me. Perhaps an outdated multirow package?

By the way, you should replace the old LaTeX2.09 syntax \bf by the current LaTeX2e syntax \textbf{…} for short text and the \bfseries declaration for longer text passages.


Thorsten
nifty
Posts: 16
Joined: Sat Oct 09, 2010 4:24 pm

Re: multirow | Unexpected Errors

Post by nifty »

Thanks. That was it. I thought I had pulled the latest version down but I guess not. It works fine now.
Post Reply