Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"Undefined control sequence" - \rowcolors with xcolor

6,668 views
Skip to first unread message

jel

unread,
Nov 28, 2006, 8:16:05 AM11/28/06
to
I've checked the archives and Googled for this to no avail.

I get an "undefined control sequence" error when using the \rowcolors
command from xcolor. The example below is from the xcolor
documentation. I'm using MiKTeX 2.5 and version 2.09 of xcolor.

What's my problem?

Thanks

\documentclass{article}

\usepackage{xcolor}

\begin{document}
\rowcolors[\hline]{3}{green!25}{yellow!50}
\arrayrulecolor{red!75!gray}
\begin{tabular}{ll}
test & row \number\rownum\\
test & row \number\rownum\\
test & row \number\rownum\\
test & row \number\rownum\\
\arrayrulecolor{black}
test & row \number\rownum\\
test & row \number\rownum\\
\rowcolor{blue!25}
test & row \number\rownum\\
test & row \number\rownum\\
\hiderowcolors
test & row \number\rownum\\
test & row \number\rownum\\
\showrowcolors
test & row \number\rownum\\
test & row \number\rownum\\
\multicolumn{1}{>{\columncolor{red!12}}l}{test} & row \number\rownum\\
\end{tabular}
\end{document}

Herbert Voss

unread,
Nov 28, 2006, 8:52:32 AM11/28/06
to

jel schrieb:


> I've checked the archives and Googled for this to no avail.
>
> I get an "undefined control sequence" error when using the \rowcolors
> command from xcolor. The example below is from the xcolor
> documentation. I'm using MiKTeX 2.5 and version 2.09 of xcolor.
>
> What's my problem?
>
> Thanks
>
> \documentclass{article}
>
> \usepackage{xcolor}

> \usepackage[table]{xcolor}

Herbert

jel

unread,
Nov 28, 2006, 9:40:18 AM11/28/06
to

Thanks. My original "problem" cropped up when I was trying to compile
beamerexample1.tex, which produced the same "undefined control
sequence" error. Does this mean something changed in xcolor along the
way, or did beamer never have it right?

Uwe Kern

unread,
Dec 1, 2006, 4:11:23 PM12/1/06
to

jel schrieb:

Version 2.02 (2005/03/24) of xcolor introduced the `table' option to be
required for using \rowcolors, which is based on (and useless without)
the colortbl package.
Maybe beamer relies on the behavior of older xcolor versions.

Uwe

Floren...@gmail.com

unread,
Dec 13, 2006, 4:25:35 AM12/13/06
to
change \usepackage{xcolor} to \usepackage{colortbl}

Jean-Côme Charpentier

unread,
Dec 13, 2006, 7:55:42 AM12/13/06
to
Floren...@gmail.com a écrit :

> change \usepackage{xcolor} to \usepackage{colortbl}

Much better (imho): change \usepackage{xcolor} to
\usepackage[table]{xcolor}. You will have colortbl *and* xcolor.

Jean-Côme Charpentier

nam...@gmail.com

unread,
Jan 23, 2007, 11:30:00 PM1/23/07
to
I've got the same error when compiling beamerexample1.tex. :( It took
me almost 1 night to come to a workaround solution:

Change
\documentclass{beamer}
to
\documentclass[table]{beamer}

-
Nam

On Dec 13 2006, 7:55 am, Jean-Côme Charpentier
<Jean-Come.Charpent...@wanadoo.fr> wrote:
> Florent.Mo...@gmail.com a écrit :

geth...@gmail.com

unread,
Jul 22, 2020, 8:52:15 PM7/22/20
to
Thanks you save my time!

2007년 1월 24일 수요일 오후 1시 30분 0초 UTC+9, nam...@gmail.com 님의 말:
0 new messages