1

table error

same table without error

I need a help with a table attached in the pictures above. I put this table in a document composed of several chapters. When I compile the single chapter that include the table, i have no error and the table is correctly displayed. When I compile the entire document whit all the chapters, at the page that contains the table, it appears whit a black band that cover the first field on toprule.

I controlled the code and it is the same. I cannot understand what is wrong.

I put the example code below even if the proble seems to be on the entire document

\documentclass{article}

\usepackage{booktabs} 
\usepackage[table]{xcolor} 

\begin{document}

\begin{table}[]\footnotesize
\caption{\#messaggi scambiati a livello RRC nell'arco di 24h in condizione di standby}
%\label{tab:10}
\centering
\medskip
\begin{tabular}{lr}
\toprule
Messaggio & n. \\ 
\midrule
\texttt{RRC CONNECTION REQUEST} & 140 \\
\rowcolor{gray!10}
\texttt{SERVICE REQUEST} & 136 \\
\rowcolor{white}
\texttt{RADIO BEARER SETUP} & 109 \\
\rowcolor{gray!10}
\texttt{SIGNALLING CONNECTION RELEASE INDICATION} & 104 \\
\rowcolor{white}
 & \\
Totale & 4803 \\
\bottomrule
\end{tabular}
\end{table}


\end{document}
  • 2
    Hi, hard to tell without any code. The safest way to isolate the cause is to prepare a minimal working example. That gives us code to test and provide a solution. – Johannes_B Mar 24 '14 at 8:48
  • I suspect some redefinition with \def or \renewcommand. Did you do something to \heavyrulewidth? – egreg Mar 24 '14 at 9:02
  • I entered the code from the table – user21431 Mar 24 '14 at 9:02
  • @egreg: No, I have not used redefinitions – user21431 Mar 24 '14 at 9:04
  • How do you include the chapters? – Keks Dose Mar 24 '14 at 9:09
2

OK, this seems to bee the solution: Replace the \rowcolor{} commands with a single \rowcolors{1}{white}{gray!10} for each tabular.

| improve this answer | |

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.