Wednesday, July 09, 2008

Color in latex.

Colortbl and xcolor packages support the color in latex. However, it can be used with the class file "article". It doesn't support the emulateapj class, which is a pity. The reason why I prefer emulateapj class is that the emulateapj has a good-looking table.


Here are some basic examples for the usage of colortbl and xcolor:

colortbl:

\begin{table}[ht]
%\scriptsize
%\rowcolors[\hline]{2}{rgb:red!50,2;green!50,2;blue!0,1}{}
\caption{rxte data for Model phabs(simpl(kerrbb2)) with nH fixed at 0.46e22$\rm cm^{-2}$ (3.0-8.0 keV) }
\centering
\begin{tabular}{c c c c c c>{\columncolor[gray]{.8}} c>{\columncolor[gray]{.5}} c c c c c}
\begin{tabular}{c c c c c c c c c c c c c c}
\hline\hline
\hline\hline
.......
\end{table}

Xcolor:

\begin{table}[ht]
\caption{rxte data for Model phabs(simpl(kerrbb2)) with nH fixed at 0.46e22$\rm cm^{-2}$ (3.0-20.0 keV) }
\centering
\rowcolors[\hline]{2}{rgb:red!50,2;green!50,2;blue!0,1}{}
\begin{tabular}{c c c c c c c c c c c c}
\hline\hline
.........
\end{table}

No comments: