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 I wish to distribute both in color and monochrome. It contains tables and makes use of colored rows. Problem is, when I use the monochrome option for the xcolor package the colored rows show up as completely black and thus cannot be read.

What I would like is for the text to be readable even when the monochrome option is active.

Here is a minimal example :

\documentclass{article}

\usepackage[monochrome]{xcolor}
\usepackage{colortbl}

\begin{document}
\begin{tabular}{cc}
This & that\\
\rowcolor{yellow} This & that
\end{tabular}

\end{document}

(If I remove the monochrome option all is well).

share|improve this question
    
What should happen to a yellow row color if you use monochrome? If I use \textcolor{yellow}{text} the text appears black, too. –  Qrrbrbirlbel Feb 25 '13 at 0:39
    
I'd want the colors to become shades of gray. However, on second thought, that's not really monochrome... –  Sašo Živanović Feb 25 '13 at 0:39
2  
@SašoŽivanović \usepackage[gray,table]{xcolor} –  Qrrbrbirlbel Feb 25 '13 at 0:50

1 Answer 1

Add

\makeatletter
\let\CT@@do@color\relax
\makeatother

after loading colortbl (redefining the internal command rather than \rowcolor means that you stop all colortbl color commands including use of optional arguments etc.

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.