![突出显示的列和行不起作用。如何解决?](https://linux22.com/image/420160/%E7%AA%81%E5%87%BA%E6%98%BE%E7%A4%BA%E7%9A%84%E5%88%97%E5%92%8C%E8%A1%8C%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8%E3%80%82%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%EF%BC%9F.png)
我需要突出显示表格中的某些列和行。但以下代码不起作用。所以请帮我解决这个问题。我正在使用 miktex 和 winedt。谢谢。
\documentclass[CEJMed,PDF]{cej}
\usepackage{layout}
\usepackage{lipsum}
\usepackage{enumerate}
\usepackage{amssymb}
\usepackage{pbsi}
\usepackage{mathdots}
\usepackage[makeroom]{cancel}
\usepackage[table,xcdraw]{xcolor}
\usepackage[usestackEOL]{stackengine}
\theoremstyle{plain}
\newtheorem{defn}{Definition}[section]
\newtheorem{thm}[defn]{Theorem}
\newtheorem{cor}[defn]{Corollary}
\newtheorem{lem}[defn]{Lemma}
\newtheorem{prop}[defn]{Proposition}
\newtheorem{rem}[defn]{Remark}
\newtheorem{ex}[defn]{Example}
\newtheorem{re}[defn]{Result}
\newcommand{\eps}{\varepsilon}
\newcommand{\To}{\longrightarrow}
\newcommand{\h}{\mathcal{H}}
\newcommand{\newsarrow}{\nearrow \kern-12pt \swarrow \kern-12pt \smallsetminus}
\newcommand{\nupdownarrow}{\updownarrow \kern-11pt -}
\allowdisplaybreaks
\title{Article title}
%\articletype{Research Article} % Research Article, Review Article, Communication, Erratum
\author{Author 1\inst{1,}\email{@gmail.com} and
Author 2\inst{1}
}
\shortauthor{Author 1 and Author 2}
\institute{\inst{1}
Affiliation of Authors
}
\abstract{In this paper....
}
\keywords{keywords1, keywords2, keywords3, }
\msc{47A63.}
\begin{document}
\maketitle
\pagenumbering{arabic}
\setcounter{page}{41}
\section{Introduction}
\strutlongstacks{T}
\begin{table}[!h]
\centering
\begin{tabular}{|c|>{\columncolor[HTML]{C0C0C0}}c|c|c|c|c|c|} \hline
& $D_1$ & {\dots} & $D_j$ & {\dots} & $D_n$ & Supply \\ \hline
$O_1$ & \Centerstack{$c_{11}$\\ $d_{11}$ $\left(x_{11}\right)$\\ $p_{11}$} & {\dots} & \Centerstack{$c_{1j}$\\ $d_{1j}$ $\left(x_{1j}\right)$\\ $p_{1j}$} & {\dots} & \Centerstack{$c_{1n}$\\ $d_{1n}$ $\left(x_{1n}\right)$\\ $p_{1n}$} & $a_1$ \\ \hline
$\vdots$ & & {\dots} & & {\dots} & & \\ \hline
$O_i$ & \Centerstack{$c_{i1}$\\ $d_{i1}$ $\left(x_{i1}\right)$\\ $p_{i1}$} & {\dots} & \Centerstack{$c_{ij}$\\ $d_{ij}$ $\left(x_{ij}\right)$\\ $p_{ij}$} & {\dots} & \Centerstack{$c_{in}$\\ $d_{in}$ $\left(x_{in}\right)$\\ $p_{in}$} & $a_i$ \\ \hline
$\vdots$ & & {\dots} & & {\dots} & & \\ \hline
$O_m$ & \Centerstack{$c_{m1}$\\ $d_{m1}$ $\left(x_{m1}\right)$\\ $p_{m1}$} & {\dots} & \Centerstack{$c_{mj}$\\ $d_{mj}$ $\left(x_{mj}\right)$\\ $p_{mj}$} & {\dots} & \Centerstack{$c_{mn}$\\ $d_{mn}$ $\left(x_{mn}\right)$\\ $p_{mn}$} & $a_m$ \\ \hline
Demand & $b_1$ & & $b_j$ & & $b_n$ & \\ \hline
\end{tabular}
\end{table}
\end{document}