I know, it's not that old, but I need some tip about this cause it's a pity to leave out of a document-tutorial the colorful column.
So, please accept my apologies for BUMPing ;-) On Fri, 2009-01-16 at 22:23 +0100, Nikos Alexandris wrote: > On Fri, 2009-01-16 at 22:22 +0100, Nikos Alexandris wrote: > > Hi list. > > > > (Using LyX 1.6 under Ubuntu II 64-bit). > > > > I want to color some cells in a table. For this I am trying to define > > the following in the preamble: > > \usepackage{colortbl} > > > > \definecolor{'111'}{rgb}{0.9,0,0.3} > # Ooops, that ^^^^^^ is {111} and not {'111'}. Sorry :-) > > > \definecolor{112}{rgb}{1,0,0} > > \definecolor{121}{rgb}{0.8,0.3,0.9} > > \definecolor{122}{rgb}{0.8,0,0} > > \definecolor{123}{rgb}{0.9,0.8,0.8} > > \definecolor{124}{rgb}{0.9,0.8,0.9} > > # [...] a longer list actually of various red,green,blue combinations > > > > > > Then, I use ERTs in a table's cells like > > \cellcolor{111} > > > > The table's column in which I use the ERT's include only numbers (in > > fact, the numbers correspond exactly to the number I use in the preamble > > with "\definecolor". The next column includes greek labels (=simply > > greek text). > > > > When I try to pre-view the document I read: > > > > Error: > > LaTeX Error: Undefined color `{111}'. > > > > Description: > > \cellcolor{{111}}111 & > > \textgreek{Suneq\char160c} \textgreek{... > > > > Could someone give me a hint to the right direction? > > Kind regards, Nikos