First thing, I got a table, which looks fine in PDF, but sort of "ugly" in code, and I would like to present as below,
\documentclass{article}
\usepackage{ragged2e}
\usepackage[utf8]{inputenc}
\usepackage[letterpaper, top=0.5in, bottom=0.5in, left=1.55in, right=1.55in]{geometry}
\usepackage{multirow,array,varwidth,spreadtab,caption}
\usepackage[norule]{footmisc}
\usepackage{color, colortbl}
\usepackage{xcolor}
\usepackage{multicol}
\begin{document}
\begin{table}[ht]
\begin{center}
\begin{tabular}{|c|c|c|c|c|}
\multicolumn{5}{c}{\textbf{NET ENTITLEMENT FISH OIL MARKETS}}\\
\multicolumn{5}{c}{\textbf{AS OF DECEMBER 31, 2019}}\\\hline
%\rowcolor{Cyan}
\multicolumn{1}{|c|}{\multirow{2}{*}{Country}}&\multicolumn{1}{c|}{\multirow{2}{*}{Company}}&Proved Cooked&Proved Uncooked&Total Proved\\
%\rowcolor{Cyan}
\multicolumn{1}{|c|}{}&\multicolumn{1}{c|}{}&(T)&(T)&\cellcolor{blue!25}(T)\\\hline
ChUAN& &51,574&31,202&82,776\\\hline
IraW-West POINT & & 9,656 &57,981&67,637\\\hline
\multicolumn{1}{|c|}{\multirow{3}{*}{KAZSLSKDE}}& PKKR& 32,129 &5,174& 37,304 \\\cline{2-5}
\multicolumn{1}{|c|}{}&KOLKOL&9,718&3,447&13,165\\\cline{2-5}
\multicolumn{1}{|c|}{}&PKPK&424&0&424\\\hline
TOTAL CNNNO & & 103,501 & 97,804 & 201,306\\\hline
\end{tabular}
\end{center}
\label{tab:multicol}
\end{table}
\end{document}
Is there any way could improve this ugly code, for example I don't want any {c|c|c|c|c}
in the codes.
Secondly, I'm confused how to coloring the table, for the two rows to be specifically. I tried and the the second row color would block first row's text. Is there any way could prevent this.
Appreciated your kind help.
Regards,
{c|c|c|c|c}
can be reduced to{*{4}{c|}c}
, but it's not shorter, actually. – user31729 Jun 19 '15 at 16:05Total Proved
text is covered? – James Jun 19 '15 at 16:43\multicolumn{1}{|c|}{}
directives. – Mico Jun 19 '15 at 16:46