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'm using mdframed for bordered tables. Additionally I'd like to change the bg-colour of some columns using the package colortbl. However when I try to load colortbl with \usepackage, the document refuses to compile moaning about a runaway argument/forgotten endgroup. When I do not load colortbl, the error disappears. Is this a known bug? How can I avoid it then? The error message in question:

Package mdframed Info: mdframed inside float
mdframed uses option nobreak mdframed on input line 2440.
Package mdframed Info: mdframed inside a box 
mdframed uses option nobreak mdframed on input line 2440.
Runaway argument?
{\textbf {Migräne} 
! Paragraph ended before \multicolumn was complete.
share|improve this question
1  
The info is only a info and no error ;-). Can you provide an example (My Migräne). –  Marco Daniel Dec 21 '11 at 9:36
    
I've attached a snapshot: !img. What do you mean by (My Migraine)? –  Jan Dec 21 '11 at 9:42
1  
But you forgot the example. –  Marco Daniel Dec 21 '11 at 9:47
add comment

1 Answer

up vote 2 down vote accepted

I get no errors

\listfiles
\documentclass{article}
\usepackage[table]{xcolor}
\usepackage[xcolor=table]{mdframed}
\begin{document}
Text
\begin{mdframed}
\begin{tabular}{>{\columncolor{red}}r}
foo
\end{tabular}
\end{mdframed}
\end{document}
share|improve this answer
    
Thanks for your answer. The code in question is very long so I'm not sure about posting it here (big table). Error doesn't occur when I shorten the table. Has it sth. to do with the table's size? –  Jan Dec 21 '11 at 9:51
1  
@Jan: Can you reduce the code. The size of the table should be independent. –  Marco Daniel Dec 21 '11 at 9:56
    
Thank you Marco. The size was the problem. I don't know where the problem came from but placing it on another page mysteriously solved it. Weird. –  Jan Dec 21 '11 at 10:46
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.