Table Background color

This is already a reference that is solved by others,

 

 

Here I made a quick gif to help people to get it quickly.imageedit_9_8881492193

 

Steps:

1.Document–settings–Latex Preamble: \usepackage{colortbl}

2.Insert the table

3.Insert Latex codes, or use keyboard shortcut cmd+L

4.Type the background color that you want, for example,

[sourcecode language=”latex” wraplines=”false” collapse=”false”]
\rowcolor{}(name of color)
[/sourcecode]
In Latex, only

red, green, yellow, blue, cyan, magenta, black and white are the choices or pure color names.

will make the color of the entire row.

5. Or, define the color by yourself:

[sourcecode language=”latex” wraplines=”false” collapse=”false”]
\definecolor{colorname}{colormodel}{colorvalues}
[/sourcecode]
Video_table_cell

 


ref: 1.color_ref_1

 

Published by

Yijiao Liu

Applied Economist, Ph.D. candidate at Economics Department, Stony Brook

This site uses Akismet to reduce spam. Learn how your comment data is processed.