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 a document that is creating the exact output I'm looking for, yet when I compile it I'm getting two errors. After tooling around for a little bit, I was able to pinpoint their location to the \multicolumn commands in my code:

\begin{tabular}{|P{9cm}P{9cm}|}
\hline
\multicolumn{2}{|c|}{\large \rowcolor{black} \color{white} {\bf Testing Modifications (highlight or circle)}} \\ 
\hline
Time Limit Waved         & On-Task Focusing Prompts \\
Exam/Sep Location        & Waive Spelling Reqs \\
Questions Read Aloud     & Revise Test Format \\
Answers Any Way          & Revise Test Directions \\
Calc/Abacus Permitted    & Breaks \\
\multicolumn{2}{|l|}{\AddLabel Other:} \\
\hline
\end{tabular} \\[.4cm]

{\bf \underline{PRESENT LEVELS OF PERFORMANCE}} \\[.4cm]

\begin{tabular}{|p{4.25cm}|p{4.25cm}|p{4.25cm}|p{4.25cm}|}
\hline
\multicolumn{4}{|c|}{\large \rowcolor{black} \color{white} {\bf Evaluation Results}} \\ 
\hline
& & & \\[1.2cm]
\hline
\end{tabular} \\[.4cm]

The exact error I'm getting is:

! Misplaced \noalign.
\rowcolor ->\noalign 

Since the output doesn't seem to be affected, it hasn't been bothering me all that much, but I definitely am curious as to why this error is here.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

You can only use \rowcolor at the start of a row, use \cellcolor or or \multicolumn{4}{|>{\columncolor{black}}c|} or (if you have the latest colortbl) put \rowcolor first before the \multicolumn

Unrelated but \bf has been deprecated in LaTeX since LaTeX2e was released, it is much better to use \bfseries

share|improve this answer
    
Perfect! Thanks so much for your help! And I switched all the \bf portions of my code to \bfseries, and will use the latter from here on out! Thanks for taking the time to provide some guidance! –  aklingensmith Sep 15 '12 at 6:27

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.