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 use rowcolors*{1}{...}{...} to color a table, then I use it again (with white as arguments) to reset the color. After that, braces look weird (they disappear slightly).

If I use scrbook, book, article (e.g.) the above error occurs.
If I use minimal, the brace looks normal.

Why is that, and what can I do to fix the error?

\documentclass{scrbook}
\usepackage[table]{xcolor}
\usepackage{amsmath}

\begin{document}
% rowcolors*{1}{...}{...} ommitted.
% TABLE ommited.
\rowcolors*{1}{white}{white}

\[
x =
\begin{cases}
y & z
\end{cases}
\]

\end{document}
share|improve this question
    
Use a group to keep local the effect of \rowcolors: {\rowcolors*{1}{white}{white}\begin{tabular}{...}...\end{tabular}} \[ x= \begin{cases}...\end{cases}\]. Or is it the equation inside the table? –  Gonzalo Medina Dec 14 '12 at 22:58
1  
Welcome to TeX.sx! A tip: You can use backticks ` to mark your inline code as I did in my edit. –  Torbjørn T. Dec 14 '12 at 23:03

1 Answer 1

up vote 6 down vote accepted

I think it's one of those undocumented features. This works

\documentclass{scrbook}
\usepackage[table]{xcolor}
\usepackage{amsmath}

\begin{document}
% rowcolors*{1}{...}{...} ommitted.
% TABLE ommited.
\rowcolors*{1}{white}{white}

\[\csname CT@everycr\endcsname{}
x =
\begin{cases}
y & z
\end{cases}
\]

\end{document}
share|improve this answer

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.