[Tex/LaTex] How to draw circles around multiple row cells and column cells

tablestabularx

How to draw circles around multiple row cells and column cells as shown in attached figures.

I am using Professional lay out tables… i.e. Tables in tabular environment, Table below
enter image description here

I am also attaching my table of interest here where I want to highlight as shown in picture

\documentclass{article}
\usepackage{booktabs,multirow}

\begin{document}
\centering
\begin{tabular}{c c cc c } % centered columns (5 columns)
\toprule
&&\multicolumn{3}{c}{\textbf{J}}  \\      
\cmidrule(l){2-5}
&&\multicolumn{2}{c}{\textbf{$M_J=1$}}& $\textbf{$M_J=2$}$  \\      
\cmidrule(l){2-4}
 &\textbf{I} & $\textbf{J=1}$ &$\textbf{J=2}$ & \\
        \bottomrule
\multirow{2}{*}{\textbf{ $ M_I=1$ } }&I=1 &      $n_{1111}$   &   $n_{1211}$  &  $n_{1+11}$\\
&I=2 &      $n_{2111}$   &   $n_{2211}$  &  $n_{2+11}$\\
 \textbf{ $ M_I=2$ } &  &       $n_{+121}$   &   $n_{+221}$  & $n_{++22}$\\
\bottomrule
\end{tabular}
\end{document}

Best Answer

How about using TikZ (in overlay mode)?

\documentclass{article}
\usepackage{tikz}

\begin{document}
\begin{table}
\begin{tabular}{|c|c|c|}
\hline
  A&B&C\\
\hline
  1&2&3\\
\hline
\end{tabular}

\begin{tikzpicture}[overlay]
 \draw[red, line width=1.5pt] (1,0.3) ellipse (1cm and 0.2cm);
 \draw[blue] (0.35,0.5) ellipse (0.2cm and 0.5cm);
\end{tikzpicture} 
\end{table}
\end{document}
Related Question