SlideShare a Scribd company logo
1 of 14
Download to read offline
Indian TEX Users Group
URL :

http://www.river-valley.com/tug

The colortbl . . .
More colors and . . .

8

Color tables . . .
More Examples . . .

Title Page

A
On-line Tutorial on LTEX
The Tutorial Team
Indian TEX Users Group, SJP Buildings, Cotton Hills
Trivandrum 695014, INDIA
2000
Prof. (Dr.) K. S. S. Nambooripad, Director, Center for Mathematical Sciences, Trivandrum, (Editor); Dr. E. Krishnan,
Reader in Mathematics, University College, Trivandrum; Mohit Agarwal, Department of Aerospace Engineering,
Indian Institute of Science, Bangalore; T. Rishi, Focal Image (India) Pvt. Ltd., Trivandrum; L. A. Ajith, Focal Image
(India) Pvt. Ltd., Trivandrum; A. M. Shan, Focal Image (India) Pvt. Ltd., Trivandrum; C. V. Radhakrishnan, River
Valley Technologies, Software Technology Park, Trivandrum constitute the Tutorial team
A
A
This document is generated from LTEX sources compiled with pdfLTEX v. 14e in an
INTEL Pentium III 700 MHz system running Linux kernel version 2.2.14-12. The
packages used are hyperref.sty and pdfscreen.sty

c 2000, Indian TEX Users Group. This document may be distributed under the terms of the
A
A
LTEX Project Public License, as described in lppl.txt in the base LTEX distribution, either
version 1.0 or, at your option, any later version

Page 1 of 14

Go Back

Full Screen

Close

Quit
A
8 Color tables in LTEX
The colortbl . . .
More colors and . . .
Color tables . . .

8.1.

The colortbl package
A
In the previous chapters we learnt how to construct tables in LTEX that could span even to a number of pages. Here we shall see how to obtain color cells in tables, using David Carlisle’s colortbl
package. This package requires the color and array packages.

More Examples . . .

Title Page

The colortbl package provides a number of commands using which one can obtain really
colorful tables. We shall demonstrate each of these with the help of simple examples in the
following sections.

8.1.1.

The columncolor command
Page 2 of 14

The format for the columncolor command is
columncolor[ color model ]{ color }[ left overhang ][ right overhang ]

Go Back

Full Screen

Color model

It changes the current color to the argument specified until the end of the
current group or the environment. The colors black, white, red, green,
blue, cyan, magenta, and yellow should be predefined by any driver. Colors
can also be defined by a package, as well as by the use of definecolor

Close

Quit
command1 .
Color
It is an optional argument, and is like a specification to the color model given.
This is particularly convenient if one wants to use a color without defining it
initially.
Left overhang It controls the width of the panel past the widest entry in the column. It is
also an optional argument, and takes the value tabcolsep (in tabular) and
arraycolsep (in array).
Right overhang If ommited it defaults to the left overhang.
We have a few different tables below that will demonstrate a few possibilities using the columncolor
command.

The colortbl . . .
More colors and . . .
Color tables . . .
More Examples . . .

Title Page

one
three

two
four

begin{tabular}{|l|r|}
hline
{one} & {two} 
{three} & {four} hline
end{tabular}
Page 3 of 14

In the following table both the overhangs are set to 0pt.
Go Back

one
three

two
four

|>{columncolor{khaki}[0pt]}l|
>{color{blue}columncolor[gray]{.8}[0pt]}r|

The default overhang of tabcolsep produces:
1

For instance, by using the command definecolor{myblue}{rgb}{.8,.85,1}, you can have the color

myblue.

Full Screen

Close

Quit
one
three

two
four

|>{columncolor{khaki}}l|
>{color{blue}columncolor[gray]{.8}}r|

It is also possible to have colors like the one below! Using multicolumn it is possible to
change the color of specified rows of a table.

The colortbl . . .
More colors and . . .
Color tables . . .

one
three

8.1.2.

multicolumn{1}{|>{color{blue}columncolor[gray]%
{0.8}}l|}{three} &
multicolumn{1}{|>{columncolor{khaki}}r|}{four}

two
four

More Examples . . .

Title Page

The rowcolor command
The rowcolor command is helpful in case a table is maked principally by rows. The arguments in rowcolor are of the form as in columncolor. Here’s an example:
Page 4 of 14

one
three
five

two
four
six

A multicolumn command
overrides the default colors
for both the current row and
column.

begin{tabular}{|l||r|}
hline
rowcolor{lightturquoise} {one} & {two} 
rowcolor{honeydew} {three} & {four} 
multicolumn{1}{|>{color{blue}columncolor[gray]%
{0.8}}l||}{five} &
multicolumn{1}{|>{columncolor{khaki}}r|}{six}
hline
end{tabular}

Go Back

Full Screen

Close

Quit
8.2.

More colors and tricks
In this section we’ll see how to obtain even more colors: colored rules, colored space between
two rules, and more.
Colored rules can be easily obtained wherever desired by replacing the | with something
like !{color{green}vline}.
The above trick still leaves the spaces between || white. In order to obtain colored space
one can remove the inter glue, and replace it by a colored rule. For instance,
!{color{green}vline}
@{color{yellow}vrule width doublerulesep}
!{color{green}vline}

would change the color of the rules to green, and there would be another yellow rule of
thickness equal to doublerulesep between the two.
arrayrulewidth specifies the ‘thickness’ of the rules. The default is set to 0.4pt and
can be changed by using, for instance, setwidtharrayrulewidth{1pt} to a value of
1pt.

The colortbl . . .
More colors and . . .
Color tables . . .
More Examples . . .

Title Page

Page 5 of 14

arrayrulecolor takes the same arguments as color. It can be specified at any point

in the table. However, if given in the mid table it affects only the rules that are specified
after that point, and any vertical rules in the table ‘preamble’ keep their original colors.
For example, the command

Go Back

Full Screen

setlengtharrayrulewidth{1pt}arrayrulecolor{blue}

would set the arrayrulewidth to 1pt and the rule color to blue.

Close

doublerulesep specifies the space between the double rules.
Quit
doublerulesepcolor works in the same way as arrayrulecolor, and refers to the

color between double rules.
minrowclearance is used for inserting space at any desired row.

8.3.

Color tables with hhline

The colortbl . . .
More colors and . . .

There are many advantages of using hhline (hhline package) to draw horizontal rules instead of cline. Firstly, hhline provides more flexibility in producing the rules particularly
because of the way it interacts with the vertical lines. Moreover, sometimes the color of the lines
produced by cline doesn’t appear (rather it’s covered up by the color panels in the following
row). So it becomes more appropriate if one uses the − rule type in a hhline argument.

Color tables . . .
More Examples . . .

Title Page

The hhline command can be used to produce a single rule, or a double rule. hhline has
arguments very similar to those in the ‘preamble’ of an array or tabular.
=
−
∼
|
:
#

A double hline equal to the column width.
A single hline equal to the column width.
A column with no hline.
A vline which cuts through a double (or single) hline.
A vline which is broken by a double line.
A double hline segment between two vlines.
t The top half of a double hline segment.
b The bottom half of a double hline segment.
∗ *{3}{==#} expands to ==#==#==#, as in the *-form for the preamble.
We now demonstrate an example of the hhline command in the following table:

Page 6 of 14

Go Back

Full Screen

Close

Quit
A table using hhline
S.No. Col. 1 Col. 2
1
abc
def
2
pqr
lmn
3
uvw
xyz
n
pqr
lmn

The colortbl . . .
More colors and . . .

arrayrulecolor{white}
begin{tabular}{>{columncolor{honeydew}}c
>{columncolor{honeydew}}c|
>{columncolor{honeydew}}c}
multicolumn{3}{>{columncolor{wheat}}l}
textbf{A table using {sf hline}}
rowcolor{white} textbf{S.No.} & textbf{Col. 1} &
textbf{Col. 2}
arrayrulecolor{black}
rowcolor{khaki}
{1} & {abc} & {def} hhline{˜--}
rowcolor{lightsteelblue}
{2} & {pqr} & {lmn} hhline{˜--}
{3} & {uvw} & {xyz} hhline{˜--}
rowcolor{white}
{n} & {pqr} & {lmn}
end{tabular}

Color tables . . .
More Examples . . .

Title Page

Page 7 of 14

Go Back

Full Screen

Close

Quit
8.4.

More Examples of Color Table
All these examples are taken from the TEXLive CDROM. The first example is not a table, but a
horizontally packed colorboxes.
The colortbl . . .

cyan (C):

.0

.1

.2

.3

.4

.5

.6

.7

.8

.9

magenta (M):

.0

.1

.2

.3

.4

.5

.6

.7

.8

.9

Color tables . . .

yellow (Y):

.0

.1

.2

.3

.4

.5

.6

.7

.8

.9

More Examples . . .

black (K):

.0

.1

.2

.3

.4

.5

.6

.7

.8

.9

More colors and . . .

Title Page

newcounter{Colr}
setlength{fboxsep}{2mm}
begin{flushleft}
newcommand{CBox}[1]{colorbox[cmyk]{.#1,0.,0.,0.}{.#1}}
makebox[30mm][l]{cyan (C):}
whiledo{value{Colr}<10}{CBox{theColr}stepcounter{Colr}}
renewcommand{CBox}[1]{colorbox[cmyk]{0.,.#1,0.,0.}{.#1}}
setcounter{Colr}{0}makebox[30mm][l]{magenta (M):}
whiledo{value{Colr}<10}{CBox{theColr}stepcounter{Colr}}
renewcommand{CBox}[1]{colorbox[cmyk]{0.,0.,.#1,0.}{.#1}}
setcounter{Colr}{0}makebox[30mm][l]{yellow (Y):}
whiledo{value{Colr}<10}{CBox{theColr}stepcounter{Colr}}
renewcommand{CBox}[1]{colorbox[cmyk]{0.,0.,0.,.#1}{.#1}}
setcounter{Colr}{0}makebox[30mm][l]{black (K):}
whiledo{value{Colr}<10}{CBox{theColr}stepcounter{Colr}}
end{flushleft}

Page 8 of 14

Go Back

Full Screen

Close

Quit
LONDON
Sydney

Price
OG4G

Mon Oct 21 or 28

11 or 18 days

999GBP

Thu Oct 17

Mon Oct 21 or 28

4 or 11 days

999GBP

Sun Oct 13

Mon Oct 21 or 28

8 or 15 days

999GBP

The colortbl . . .

Sun Oct 20

OG7A

Thu Oct 10

Mon Oct 28

8 days

999GBP

More colors and . . .

This is a column colored table. The same table is made row coloured in the next one.

Color tables . . .
More Examples . . .

setlength{extrarowheight}{2mm}
setlength{tabcolsep}{2mm}
begin{tabular}{|l|%
>{columncolor{yellow}}c|c|>{columncolor{yellow}}c|c|%
>{columncolor{red}bfseries}c<{textsc{GBP}}|}
hline
multicolumn{3}{>{columncolor{red}}l}{color{white}textsf{LONDON}}
&multicolumn{3}{>{columncolor{red}}r}{color{white}textsf{Price}}
[1pt]
hline
Sydney & OG4G &Thu Oct 10 &Mon Oct 21 or 28 &11 or 18 days &999
&
&Thu Oct 17 &Mon Oct 21 or 28 & 4 or 11 days &999
& OG7A &Sun Oct 13 &Mon Oct 21 or 28 & 8 or 15 days &999
&
&Sun Oct 20 &Mon Oct 28
& 8 days
&999
hline
end{tabular}

Title Page

Page 9 of 14

Go Back

Full Screen

Close

Quit
Sydney

OG4G

Mon Oct 21 or 28

11 or 18 days

999

Thu Oct 17

Mon Oct 21 or 28

4 or 11 days

999

Sun Oct 13

Mon Oct 21 or 28

8 or 15 days

999

Sun Oct 20

OG7A

Thu Oct 10

Mon Oct 28

8 days

999

The colortbl . . .
More colors and . . .

setlength{extrarowheight}{2mm}
begin{tabular}{|l|c|c|c|c|c|c|c|}
hline
Sydney
& OG4G &Thu Oct 10 &Mon Oct
rowcolor[gray]{0.5}
&
&Thu Oct 17 &Mon Oct
&OG7A &Sun Oct 13 &Mon Oct
rowcolor[gray]{0.5}
&
&Sun Oct 20 &Mon Oct
hline
end{tabular}

Color tables . . .
More Examples . . .

21 or 28 &11 or 18 days &999
Title Page

21 or 28 & 4 or 11 days &999
21 or 28 & 8 or 15 days &999
28

& 8 days

&999

Page 10 of 14

Go Back

Full Screen

Close

Quit
See the rule colours have different ones in the following example.
United Kingdom
France
Russia

London
Paris
Moscow

Thames
Seine
Moskva
The colortbl . . .

setlength{arrayrulewidth}{2pt}
arrayrulecolor{green}
begin{tabular}{|l|c|r|}
arrayrulecolor{black}hline
United Kingdom & London & Thames
arrayrulecolor{blue}hline
France
& Paris & Seine 
arrayrulecolor{black}cline{1-1}
arrayrulecolor{red}cline{2-3}
Russia & Moscow & Moskva  hline
end{tabular}

More colors and . . .
Color tables . . .
More Examples . . .

Title Page

Page 11 of 14

Go Back

Full Screen

Close

Quit
It is possible to keep some cells of a table in white while keeping the whole table in a different
colour.

Table title
Description
Row one
Row two
Row three
Row four
Totals

Column 1

Column 2

mmmmm
mmmm
mmmmm
mmmmm
mmmmm

mmmm
mmm
mmmmm
mmmm
mmmmm

The colortbl . . .
More colors and . . .
Color tables . . .
More Examples . . .

Title Page

newcommand{CTPanel}[1]{%
multicolumn{1}{>{columncolor{white}}r|}{#1}}
setlengthfboxsep{3mm}
colorbox[cmyk]{.40,0,0,0}{%
begin{tabular}{l|r|r}
multicolumn{1}{l|}
{largetextbf{Table title}}[2mm]
textbf{Description} & textbf{Column 1}
& textbf{Column 2} [1mm]hline
Row one & CTPanel{mmmmm} & CTPanel{mmmm} hline
Row two & CTPanel{mmmm} & CTPanel{mmm} hline
Row three& CTPanel{mmmmm} & CTPanel{mmmmm}hline
Row four & CTPanel{mmmmm} & CTPanel{mmmm} hline
Totals
& mmmmm & mmmmm
end{tabular}}

Page 12 of 14

Go Back

Full Screen

Close

Quit
Table title
Description
Row one
Row two
Row three
Row four
Totals

Column 1
mmmmm
mmmm
mmmmm
mmmmm
mmmmm

Column 2
mmmm
mmm
mmmmm
mmmm
mmmmm

The colortbl . . .
More colors and . . .
Color tables . . .
More Examples . . .

definecolor{Blueb}{cmyk}{.40,0,0,0}
definecolor{Blued}{cmyk}{.80,0,0,0}
arrayrulecolor{white}
begin{tabular}{>{columncolor{Blued}}l
>{columncolor{Blued}}r|%
>{columncolor{Blued}}r}
multicolumn{3}{>{columncolor{Blueb}}l}%
{largetextbf{Table title}}[2mm]
rowcolor{white}
textbf{Description} & textbf{Column 1}
& textbf{Column 2} [1mm]
arrayrulecolor{black}
rowcolor{Blueb}
Row one
& mmmmm & mmmm hhline{˜--}
Row two
& mmmm & mmm hhline{˜--}
Row three & mmmmm & mmmmmhhline{˜--}
Row four & mmmmm & mmmmhhline{˜--}
rowcolor{white} Totals
& mmmmm & mmmmm
end{tabular}

Title Page

Page 13 of 14

Go Back

Full Screen

Close

Quit
Table title
Description
Row one
Row two
Row three
Row four
Totals

Column 1

Column 2

mmmmm
mmmm
mmmmm
mmmmm
mmmmm

mmmm
mmm
mmmmm
mmmm
mmmmm

The colortbl . . .
More colors and . . .
Color tables . . .
More Examples . . .

definecolor{Blueb}{cmyk}{.40,0,0,0}
definecolor{Blued}{cmyk}{.80,0,0,0}
definecolor{Bluee}{cmyk}{1.0,0,0,0}
arrayrulecolor{black}
setlengtharrayrulewidth{1mm}
begin{tabular}{llrrl}
rowcolor{Blueb}
qquad&multicolumn{3}{>{columncolor{Blueb}}l}
{largetextbf{Table title}}&qquad[2mm]
rowcolor{Blued}& textbf{Description}
& textbf{Column 1}
& textbf{Column 2}& [2mm]
hline
rowcolor{Blued}& Row one & mmmmm & mmmm &
rowcolor{Blued}& Row two & mmmm & mmm &
rowcolor{Blued}& Row three& mmmmm & mmmmm&
rowcolor{Blued}& Row four & mmmmm & mmmm &
cline{2-3}
rowcolor{Bluee}& Totals & mmmmm & mmmmm&[2mm]
end{tabular}

Title Page

Page 14 of 14

Go Back

Full Screen

Close

Quit

More Related Content

Viewers also liked

Whats ahead for the economy ASA
Whats ahead for the economy ASAWhats ahead for the economy ASA
Whats ahead for the economy ASAAdel Abouhana
 
Holy Trinity_A-Z
Holy Trinity_A-ZHoly Trinity_A-Z
Holy Trinity_A-Zshillecce
 
AN EFFICIENT PROXY SIGNCRYPTION SCHEME BASED ON THE DISCRETE LOGARITHM PROBLEM
AN EFFICIENT PROXY SIGNCRYPTION SCHEME BASED ON THE DISCRETE LOGARITHM PROBLEMAN EFFICIENT PROXY SIGNCRYPTION SCHEME BASED ON THE DISCRETE LOGARITHM PROBLEM
AN EFFICIENT PROXY SIGNCRYPTION SCHEME BASED ON THE DISCRETE LOGARITHM PROBLEMZac Darcy
 
Ramadan fasting and muslim patients
Ramadan fasting and muslim patientsRamadan fasting and muslim patients
Ramadan fasting and muslim patientsJunayed999
 
Fulfilling real time analytics on obi apps platform
Fulfilling real time analytics on obi apps platformFulfilling real time analytics on obi apps platform
Fulfilling real time analytics on obi apps platformShiv Bharti
 
Strategic Business Planning Development
Strategic Business Planning DevelopmentStrategic Business Planning Development
Strategic Business Planning DevelopmentDave Warnes
 
บังต่อ
บังต่อบังต่อ
บังต่อEkapong Tor
 
Freewilly with beamerusetheme Torino.sty
Freewilly with beamerusetheme Torino.styFreewilly with beamerusetheme Torino.sty
Freewilly with beamerusetheme Torino.styHirwanto Iwan
 
21st Education PowerPoint
21st Education PowerPoint21st Education PowerPoint
21st Education PowerPointTommy Honaker
 
Sustainable business-sgd-2012-iitr
Sustainable business-sgd-2012-iitrSustainable business-sgd-2012-iitr
Sustainable business-sgd-2012-iitrSanjeev Deshmukh
 
Temeto
TemetoTemeto
Temetokrizma
 
Providing the ultimate publishing experience
Providing the ultimate publishing experienceProviding the ultimate publishing experience
Providing the ultimate publishing experienceShakeeb Ahmed
 

Viewers also liked (20)

Whats ahead for the economy ASA
Whats ahead for the economy ASAWhats ahead for the economy ASA
Whats ahead for the economy ASA
 
Gfs artemisia
Gfs artemisiaGfs artemisia
Gfs artemisia
 
成熟稳重
成熟稳重成熟稳重
成熟稳重
 
Holy Trinity_A-Z
Holy Trinity_A-ZHoly Trinity_A-Z
Holy Trinity_A-Z
 
AN EFFICIENT PROXY SIGNCRYPTION SCHEME BASED ON THE DISCRETE LOGARITHM PROBLEM
AN EFFICIENT PROXY SIGNCRYPTION SCHEME BASED ON THE DISCRETE LOGARITHM PROBLEMAN EFFICIENT PROXY SIGNCRYPTION SCHEME BASED ON THE DISCRETE LOGARITHM PROBLEM
AN EFFICIENT PROXY SIGNCRYPTION SCHEME BASED ON THE DISCRETE LOGARITHM PROBLEM
 
Ping! LaTeX
Ping! LaTeX Ping! LaTeX
Ping! LaTeX
 
Ramadan fasting and muslim patients
Ramadan fasting and muslim patientsRamadan fasting and muslim patients
Ramadan fasting and muslim patients
 
Fulfilling real time analytics on obi apps platform
Fulfilling real time analytics on obi apps platformFulfilling real time analytics on obi apps platform
Fulfilling real time analytics on obi apps platform
 
LATEX OR INDESIGN
LATEX OR INDESIGN LATEX OR INDESIGN
LATEX OR INDESIGN
 
Strategic Business Planning Development
Strategic Business Planning DevelopmentStrategic Business Planning Development
Strategic Business Planning Development
 
บังต่อ
บังต่อบังต่อ
บังต่อ
 
Freewilly with beamerusetheme Torino.sty
Freewilly with beamerusetheme Torino.styFreewilly with beamerusetheme Torino.sty
Freewilly with beamerusetheme Torino.sty
 
21st Education PowerPoint
21st Education PowerPoint21st Education PowerPoint
21st Education PowerPoint
 
Sustainable business-sgd-2012-iitr
Sustainable business-sgd-2012-iitrSustainable business-sgd-2012-iitr
Sustainable business-sgd-2012-iitr
 
Fancyslides Beamer
Fancyslides BeamerFancyslides Beamer
Fancyslides Beamer
 
Temeto
TemetoTemeto
Temeto
 
Air Beamer
Air Beamer Air Beamer
Air Beamer
 
Tom jones
Tom jonesTom jones
Tom jones
 
Execushares beamer
Execushares beamer Execushares beamer
Execushares beamer
 
Providing the ultimate publishing experience
Providing the ultimate publishing experienceProviding the ultimate publishing experience
Providing the ultimate publishing experience
 

Similar to Chap08 scr (20)

Latex tables and figures
Latex tables and figures Latex tables and figures
Latex tables and figures
 
Chap07 scr
Chap07 scrChap07 scr
Chap07 scr
 
Rajeev ranjan
Rajeev ranjanRajeev ranjan
Rajeev ranjan
 
Chap06 scr
Chap06 scrChap06 scr
Chap06 scr
 
MATLAB
MATLABMATLAB
MATLAB
 
Chap04 scr
Chap04 scrChap04 scr
Chap04 scr
 
La tex basics
La tex basicsLa tex basics
La tex basics
 
Chap13 scr
Chap13 scrChap13 scr
Chap13 scr
 
Lecture_3.pptx
Lecture_3.pptxLecture_3.pptx
Lecture_3.pptx
 
Ltxcrib
LtxcribLtxcrib
Ltxcrib
 
An Introduction to MATLAB with Worked Examples
An Introduction to MATLAB with Worked ExamplesAn Introduction to MATLAB with Worked Examples
An Introduction to MATLAB with Worked Examples
 
Maple
MapleMaple
Maple
 
Chap05 scr
Chap05 scrChap05 scr
Chap05 scr
 
Matlab Tutorial for Beginners - I
Matlab Tutorial for Beginners - IMatlab Tutorial for Beginners - I
Matlab Tutorial for Beginners - I
 
Chap14 scr
Chap14 scrChap14 scr
Chap14 scr
 
SATISFIABILITY METHODS FOR COLOURING GRAPHS
SATISFIABILITY METHODS FOR COLOURING GRAPHSSATISFIABILITY METHODS FOR COLOURING GRAPHS
SATISFIABILITY METHODS FOR COLOURING GRAPHS
 
MATLAB PLOT.pdf
MATLAB PLOT.pdfMATLAB PLOT.pdf
MATLAB PLOT.pdf
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Digital Signal Processing Lab Manual
Digital Signal Processing Lab Manual Digital Signal Processing Lab Manual
Digital Signal Processing Lab Manual
 
LaTeX Cheat Sheet
LaTeX Cheat SheetLaTeX Cheat Sheet
LaTeX Cheat Sheet
 

More from Hirwanto Iwan

01. integral fungsi aljabar
01. integral fungsi aljabar01. integral fungsi aljabar
01. integral fungsi aljabarHirwanto Iwan
 
Analisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS Serang
Analisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS SerangAnalisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS Serang
Analisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS SerangHirwanto Iwan
 
Analisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPA
Analisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPAAnalisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPA
Analisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPAHirwanto Iwan
 
Materi Limit Aljabar dan Turunan Aljabar
Materi Limit Aljabar dan Turunan Aljabar Materi Limit Aljabar dan Turunan Aljabar
Materi Limit Aljabar dan Turunan Aljabar Hirwanto Iwan
 
Pembahasan Soal Matematika Wajib PTS Kelas XI IPS
Pembahasan Soal Matematika Wajib PTS Kelas XI IPSPembahasan Soal Matematika Wajib PTS Kelas XI IPS
Pembahasan Soal Matematika Wajib PTS Kelas XI IPSHirwanto Iwan
 
Pembahasan Soal Matematika Wajib PTS Kelas XI IPA
Pembahasan Soal Matematika Wajib PTS Kelas XI IPAPembahasan Soal Matematika Wajib PTS Kelas XI IPA
Pembahasan Soal Matematika Wajib PTS Kelas XI IPAHirwanto Iwan
 
Membuat Dokumen LaTeX Edisi ke - 33
Membuat Dokumen LaTeX Edisi ke - 33Membuat Dokumen LaTeX Edisi ke - 33
Membuat Dokumen LaTeX Edisi ke - 33Hirwanto Iwan
 

More from Hirwanto Iwan (20)

01. integral fungsi aljabar
01. integral fungsi aljabar01. integral fungsi aljabar
01. integral fungsi aljabar
 
Analisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS Serang
Analisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS SerangAnalisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS Serang
Analisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS Serang
 
Analisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPA
Analisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPAAnalisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPA
Analisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPA
 
Materi Limit Aljabar dan Turunan Aljabar
Materi Limit Aljabar dan Turunan Aljabar Materi Limit Aljabar dan Turunan Aljabar
Materi Limit Aljabar dan Turunan Aljabar
 
Pembahasan Soal Matematika Wajib PTS Kelas XI IPS
Pembahasan Soal Matematika Wajib PTS Kelas XI IPSPembahasan Soal Matematika Wajib PTS Kelas XI IPS
Pembahasan Soal Matematika Wajib PTS Kelas XI IPS
 
Pembahasan Soal Matematika Wajib PTS Kelas XI IPA
Pembahasan Soal Matematika Wajib PTS Kelas XI IPAPembahasan Soal Matematika Wajib PTS Kelas XI IPA
Pembahasan Soal Matematika Wajib PTS Kelas XI IPA
 
Fitur Baru WinEdt 9.1
Fitur Baru WinEdt 9.1Fitur Baru WinEdt 9.1
Fitur Baru WinEdt 9.1
 
Pemasangan WinEdt 9.1
Pemasangan WinEdt 9.1Pemasangan WinEdt 9.1
Pemasangan WinEdt 9.1
 
Kumpulan Soal UM UGM
Kumpulan Soal UM UGMKumpulan Soal UM UGM
Kumpulan Soal UM UGM
 
Membuat Dokumen LaTeX Edisi ke - 33
Membuat Dokumen LaTeX Edisi ke - 33Membuat Dokumen LaTeX Edisi ke - 33
Membuat Dokumen LaTeX Edisi ke - 33
 
AGH Beamer
AGH BeamerAGH Beamer
AGH Beamer
 
AFIT Beamer
AFIT BeamerAFIT Beamer
AFIT Beamer
 
Hackd Beamer
Hackd BeamerHackd Beamer
Hackd Beamer
 
LUH Beamer
LUH BeamerLUH Beamer
LUH Beamer
 
Cambridge Beamer
Cambridge BeamerCambridge Beamer
Cambridge Beamer
 
ESOP Beamer
ESOP BeamerESOP Beamer
ESOP Beamer
 
AP Beamer
AP BeamerAP Beamer
AP Beamer
 
Naked Beamer
Naked BeamerNaked Beamer
Naked Beamer
 
TUDelft Beamer
TUDelft BeamerTUDelft Beamer
TUDelft Beamer
 
GC3 Beamer
GC3 BeamerGC3 Beamer
GC3 Beamer
 

Recently uploaded

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 

Recently uploaded (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 

Chap08 scr

  • 1. Indian TEX Users Group URL : http://www.river-valley.com/tug The colortbl . . . More colors and . . . 8 Color tables . . . More Examples . . . Title Page A On-line Tutorial on LTEX The Tutorial Team Indian TEX Users Group, SJP Buildings, Cotton Hills Trivandrum 695014, INDIA 2000 Prof. (Dr.) K. S. S. Nambooripad, Director, Center for Mathematical Sciences, Trivandrum, (Editor); Dr. E. Krishnan, Reader in Mathematics, University College, Trivandrum; Mohit Agarwal, Department of Aerospace Engineering, Indian Institute of Science, Bangalore; T. Rishi, Focal Image (India) Pvt. Ltd., Trivandrum; L. A. Ajith, Focal Image (India) Pvt. Ltd., Trivandrum; A. M. Shan, Focal Image (India) Pvt. Ltd., Trivandrum; C. V. Radhakrishnan, River Valley Technologies, Software Technology Park, Trivandrum constitute the Tutorial team A A This document is generated from LTEX sources compiled with pdfLTEX v. 14e in an INTEL Pentium III 700 MHz system running Linux kernel version 2.2.14-12. The packages used are hyperref.sty and pdfscreen.sty c 2000, Indian TEX Users Group. This document may be distributed under the terms of the A A LTEX Project Public License, as described in lppl.txt in the base LTEX distribution, either version 1.0 or, at your option, any later version Page 1 of 14 Go Back Full Screen Close Quit
  • 2. A 8 Color tables in LTEX The colortbl . . . More colors and . . . Color tables . . . 8.1. The colortbl package A In the previous chapters we learnt how to construct tables in LTEX that could span even to a number of pages. Here we shall see how to obtain color cells in tables, using David Carlisle’s colortbl package. This package requires the color and array packages. More Examples . . . Title Page The colortbl package provides a number of commands using which one can obtain really colorful tables. We shall demonstrate each of these with the help of simple examples in the following sections. 8.1.1. The columncolor command Page 2 of 14 The format for the columncolor command is columncolor[ color model ]{ color }[ left overhang ][ right overhang ] Go Back Full Screen Color model It changes the current color to the argument specified until the end of the current group or the environment. The colors black, white, red, green, blue, cyan, magenta, and yellow should be predefined by any driver. Colors can also be defined by a package, as well as by the use of definecolor Close Quit
  • 3. command1 . Color It is an optional argument, and is like a specification to the color model given. This is particularly convenient if one wants to use a color without defining it initially. Left overhang It controls the width of the panel past the widest entry in the column. It is also an optional argument, and takes the value tabcolsep (in tabular) and arraycolsep (in array). Right overhang If ommited it defaults to the left overhang. We have a few different tables below that will demonstrate a few possibilities using the columncolor command. The colortbl . . . More colors and . . . Color tables . . . More Examples . . . Title Page one three two four begin{tabular}{|l|r|} hline {one} & {two} {three} & {four} hline end{tabular} Page 3 of 14 In the following table both the overhangs are set to 0pt. Go Back one three two four |>{columncolor{khaki}[0pt]}l| >{color{blue}columncolor[gray]{.8}[0pt]}r| The default overhang of tabcolsep produces: 1 For instance, by using the command definecolor{myblue}{rgb}{.8,.85,1}, you can have the color myblue. Full Screen Close Quit
  • 4. one three two four |>{columncolor{khaki}}l| >{color{blue}columncolor[gray]{.8}}r| It is also possible to have colors like the one below! Using multicolumn it is possible to change the color of specified rows of a table. The colortbl . . . More colors and . . . Color tables . . . one three 8.1.2. multicolumn{1}{|>{color{blue}columncolor[gray]% {0.8}}l|}{three} & multicolumn{1}{|>{columncolor{khaki}}r|}{four} two four More Examples . . . Title Page The rowcolor command The rowcolor command is helpful in case a table is maked principally by rows. The arguments in rowcolor are of the form as in columncolor. Here’s an example: Page 4 of 14 one three five two four six A multicolumn command overrides the default colors for both the current row and column. begin{tabular}{|l||r|} hline rowcolor{lightturquoise} {one} & {two} rowcolor{honeydew} {three} & {four} multicolumn{1}{|>{color{blue}columncolor[gray]% {0.8}}l||}{five} & multicolumn{1}{|>{columncolor{khaki}}r|}{six} hline end{tabular} Go Back Full Screen Close Quit
  • 5. 8.2. More colors and tricks In this section we’ll see how to obtain even more colors: colored rules, colored space between two rules, and more. Colored rules can be easily obtained wherever desired by replacing the | with something like !{color{green}vline}. The above trick still leaves the spaces between || white. In order to obtain colored space one can remove the inter glue, and replace it by a colored rule. For instance, !{color{green}vline} @{color{yellow}vrule width doublerulesep} !{color{green}vline} would change the color of the rules to green, and there would be another yellow rule of thickness equal to doublerulesep between the two. arrayrulewidth specifies the ‘thickness’ of the rules. The default is set to 0.4pt and can be changed by using, for instance, setwidtharrayrulewidth{1pt} to a value of 1pt. The colortbl . . . More colors and . . . Color tables . . . More Examples . . . Title Page Page 5 of 14 arrayrulecolor takes the same arguments as color. It can be specified at any point in the table. However, if given in the mid table it affects only the rules that are specified after that point, and any vertical rules in the table ‘preamble’ keep their original colors. For example, the command Go Back Full Screen setlengtharrayrulewidth{1pt}arrayrulecolor{blue} would set the arrayrulewidth to 1pt and the rule color to blue. Close doublerulesep specifies the space between the double rules. Quit
  • 6. doublerulesepcolor works in the same way as arrayrulecolor, and refers to the color between double rules. minrowclearance is used for inserting space at any desired row. 8.3. Color tables with hhline The colortbl . . . More colors and . . . There are many advantages of using hhline (hhline package) to draw horizontal rules instead of cline. Firstly, hhline provides more flexibility in producing the rules particularly because of the way it interacts with the vertical lines. Moreover, sometimes the color of the lines produced by cline doesn’t appear (rather it’s covered up by the color panels in the following row). So it becomes more appropriate if one uses the − rule type in a hhline argument. Color tables . . . More Examples . . . Title Page The hhline command can be used to produce a single rule, or a double rule. hhline has arguments very similar to those in the ‘preamble’ of an array or tabular. = − ∼ | : # A double hline equal to the column width. A single hline equal to the column width. A column with no hline. A vline which cuts through a double (or single) hline. A vline which is broken by a double line. A double hline segment between two vlines. t The top half of a double hline segment. b The bottom half of a double hline segment. ∗ *{3}{==#} expands to ==#==#==#, as in the *-form for the preamble. We now demonstrate an example of the hhline command in the following table: Page 6 of 14 Go Back Full Screen Close Quit
  • 7. A table using hhline S.No. Col. 1 Col. 2 1 abc def 2 pqr lmn 3 uvw xyz n pqr lmn The colortbl . . . More colors and . . . arrayrulecolor{white} begin{tabular}{>{columncolor{honeydew}}c >{columncolor{honeydew}}c| >{columncolor{honeydew}}c} multicolumn{3}{>{columncolor{wheat}}l} textbf{A table using {sf hline}} rowcolor{white} textbf{S.No.} & textbf{Col. 1} & textbf{Col. 2} arrayrulecolor{black} rowcolor{khaki} {1} & {abc} & {def} hhline{˜--} rowcolor{lightsteelblue} {2} & {pqr} & {lmn} hhline{˜--} {3} & {uvw} & {xyz} hhline{˜--} rowcolor{white} {n} & {pqr} & {lmn} end{tabular} Color tables . . . More Examples . . . Title Page Page 7 of 14 Go Back Full Screen Close Quit
  • 8. 8.4. More Examples of Color Table All these examples are taken from the TEXLive CDROM. The first example is not a table, but a horizontally packed colorboxes. The colortbl . . . cyan (C): .0 .1 .2 .3 .4 .5 .6 .7 .8 .9 magenta (M): .0 .1 .2 .3 .4 .5 .6 .7 .8 .9 Color tables . . . yellow (Y): .0 .1 .2 .3 .4 .5 .6 .7 .8 .9 More Examples . . . black (K): .0 .1 .2 .3 .4 .5 .6 .7 .8 .9 More colors and . . . Title Page newcounter{Colr} setlength{fboxsep}{2mm} begin{flushleft} newcommand{CBox}[1]{colorbox[cmyk]{.#1,0.,0.,0.}{.#1}} makebox[30mm][l]{cyan (C):} whiledo{value{Colr}<10}{CBox{theColr}stepcounter{Colr}} renewcommand{CBox}[1]{colorbox[cmyk]{0.,.#1,0.,0.}{.#1}} setcounter{Colr}{0}makebox[30mm][l]{magenta (M):} whiledo{value{Colr}<10}{CBox{theColr}stepcounter{Colr}} renewcommand{CBox}[1]{colorbox[cmyk]{0.,0.,.#1,0.}{.#1}} setcounter{Colr}{0}makebox[30mm][l]{yellow (Y):} whiledo{value{Colr}<10}{CBox{theColr}stepcounter{Colr}} renewcommand{CBox}[1]{colorbox[cmyk]{0.,0.,0.,.#1}{.#1}} setcounter{Colr}{0}makebox[30mm][l]{black (K):} whiledo{value{Colr}<10}{CBox{theColr}stepcounter{Colr}} end{flushleft} Page 8 of 14 Go Back Full Screen Close Quit
  • 9. LONDON Sydney Price OG4G Mon Oct 21 or 28 11 or 18 days 999GBP Thu Oct 17 Mon Oct 21 or 28 4 or 11 days 999GBP Sun Oct 13 Mon Oct 21 or 28 8 or 15 days 999GBP The colortbl . . . Sun Oct 20 OG7A Thu Oct 10 Mon Oct 28 8 days 999GBP More colors and . . . This is a column colored table. The same table is made row coloured in the next one. Color tables . . . More Examples . . . setlength{extrarowheight}{2mm} setlength{tabcolsep}{2mm} begin{tabular}{|l|% >{columncolor{yellow}}c|c|>{columncolor{yellow}}c|c|% >{columncolor{red}bfseries}c<{textsc{GBP}}|} hline multicolumn{3}{>{columncolor{red}}l}{color{white}textsf{LONDON}} &multicolumn{3}{>{columncolor{red}}r}{color{white}textsf{Price}} [1pt] hline Sydney & OG4G &Thu Oct 10 &Mon Oct 21 or 28 &11 or 18 days &999 & &Thu Oct 17 &Mon Oct 21 or 28 & 4 or 11 days &999 & OG7A &Sun Oct 13 &Mon Oct 21 or 28 & 8 or 15 days &999 & &Sun Oct 20 &Mon Oct 28 & 8 days &999 hline end{tabular} Title Page Page 9 of 14 Go Back Full Screen Close Quit
  • 10. Sydney OG4G Mon Oct 21 or 28 11 or 18 days 999 Thu Oct 17 Mon Oct 21 or 28 4 or 11 days 999 Sun Oct 13 Mon Oct 21 or 28 8 or 15 days 999 Sun Oct 20 OG7A Thu Oct 10 Mon Oct 28 8 days 999 The colortbl . . . More colors and . . . setlength{extrarowheight}{2mm} begin{tabular}{|l|c|c|c|c|c|c|c|} hline Sydney & OG4G &Thu Oct 10 &Mon Oct rowcolor[gray]{0.5} & &Thu Oct 17 &Mon Oct &OG7A &Sun Oct 13 &Mon Oct rowcolor[gray]{0.5} & &Sun Oct 20 &Mon Oct hline end{tabular} Color tables . . . More Examples . . . 21 or 28 &11 or 18 days &999 Title Page 21 or 28 & 4 or 11 days &999 21 or 28 & 8 or 15 days &999 28 & 8 days &999 Page 10 of 14 Go Back Full Screen Close Quit
  • 11. See the rule colours have different ones in the following example. United Kingdom France Russia London Paris Moscow Thames Seine Moskva The colortbl . . . setlength{arrayrulewidth}{2pt} arrayrulecolor{green} begin{tabular}{|l|c|r|} arrayrulecolor{black}hline United Kingdom & London & Thames arrayrulecolor{blue}hline France & Paris & Seine arrayrulecolor{black}cline{1-1} arrayrulecolor{red}cline{2-3} Russia & Moscow & Moskva hline end{tabular} More colors and . . . Color tables . . . More Examples . . . Title Page Page 11 of 14 Go Back Full Screen Close Quit
  • 12. It is possible to keep some cells of a table in white while keeping the whole table in a different colour. Table title Description Row one Row two Row three Row four Totals Column 1 Column 2 mmmmm mmmm mmmmm mmmmm mmmmm mmmm mmm mmmmm mmmm mmmmm The colortbl . . . More colors and . . . Color tables . . . More Examples . . . Title Page newcommand{CTPanel}[1]{% multicolumn{1}{>{columncolor{white}}r|}{#1}} setlengthfboxsep{3mm} colorbox[cmyk]{.40,0,0,0}{% begin{tabular}{l|r|r} multicolumn{1}{l|} {largetextbf{Table title}}[2mm] textbf{Description} & textbf{Column 1} & textbf{Column 2} [1mm]hline Row one & CTPanel{mmmmm} & CTPanel{mmmm} hline Row two & CTPanel{mmmm} & CTPanel{mmm} hline Row three& CTPanel{mmmmm} & CTPanel{mmmmm}hline Row four & CTPanel{mmmmm} & CTPanel{mmmm} hline Totals & mmmmm & mmmmm end{tabular}} Page 12 of 14 Go Back Full Screen Close Quit
  • 13. Table title Description Row one Row two Row three Row four Totals Column 1 mmmmm mmmm mmmmm mmmmm mmmmm Column 2 mmmm mmm mmmmm mmmm mmmmm The colortbl . . . More colors and . . . Color tables . . . More Examples . . . definecolor{Blueb}{cmyk}{.40,0,0,0} definecolor{Blued}{cmyk}{.80,0,0,0} arrayrulecolor{white} begin{tabular}{>{columncolor{Blued}}l >{columncolor{Blued}}r|% >{columncolor{Blued}}r} multicolumn{3}{>{columncolor{Blueb}}l}% {largetextbf{Table title}}[2mm] rowcolor{white} textbf{Description} & textbf{Column 1} & textbf{Column 2} [1mm] arrayrulecolor{black} rowcolor{Blueb} Row one & mmmmm & mmmm hhline{˜--} Row two & mmmm & mmm hhline{˜--} Row three & mmmmm & mmmmmhhline{˜--} Row four & mmmmm & mmmmhhline{˜--} rowcolor{white} Totals & mmmmm & mmmmm end{tabular} Title Page Page 13 of 14 Go Back Full Screen Close Quit
  • 14. Table title Description Row one Row two Row three Row four Totals Column 1 Column 2 mmmmm mmmm mmmmm mmmmm mmmmm mmmm mmm mmmmm mmmm mmmmm The colortbl . . . More colors and . . . Color tables . . . More Examples . . . definecolor{Blueb}{cmyk}{.40,0,0,0} definecolor{Blued}{cmyk}{.80,0,0,0} definecolor{Bluee}{cmyk}{1.0,0,0,0} arrayrulecolor{black} setlengtharrayrulewidth{1mm} begin{tabular}{llrrl} rowcolor{Blueb} qquad&multicolumn{3}{>{columncolor{Blueb}}l} {largetextbf{Table title}}&qquad[2mm] rowcolor{Blued}& textbf{Description} & textbf{Column 1} & textbf{Column 2}& [2mm] hline rowcolor{Blued}& Row one & mmmmm & mmmm & rowcolor{Blued}& Row two & mmmm & mmm & rowcolor{Blued}& Row three& mmmmm & mmmmm& rowcolor{Blued}& Row four & mmmmm & mmmm & cline{2-3} rowcolor{Bluee}& Totals & mmmmm & mmmmm&[2mm] end{tabular} Title Page Page 14 of 14 Go Back Full Screen Close Quit