I want to generate the table below:
I wanted to replicate in latex:
no border except the horizontal and vertical lines around the labels A-E and O-D
spaced out rows and columns so the entries don't look too jammed
a red arrow that traces some of the numbers on the table
I have gotten as far as below:
and this is obtained with the attached code below:
\documentclass[]{article}
\usepackage[margin=0.5in]{geometry}
\usepackage{pgfplots}
\usepackage{mathtools}
\usepackage{cancel}
\usepackage{pgfplots}
\usepackage{amsmath}
\newtheorem{theorem}{THEOREM}
\newtheorem{proof}{PROOF}
\usepackage{tikz}
\usepackage{amssymb}
\usetikzlibrary{patterns}
\usepackage{fancyheadings}
\usepackage{bigints}
\usepackage{color}
\usepackage{tcolorbox}
\usepackage{stackengine,graphicx,xcolor}
\usepackage{booktabs,array}
\usepackage{hyperref}
\usepackage{lscape}
\usetikzlibrary{arrows,automata}
\usepackage[thinlines]{easytable}
\usepackage[latin1]{inputenc}
\usetikzlibrary{arrows}
\usetikzlibrary{trees}
\usepgfplotslibrary{fillbetween}
\begin{document}
\setlength{\parindent}{0cm}
%\pagecolor{blue!13}
\fancyhf{}
\fancyhead[C]{\thepage}
\voffset = 0.1cm
\pagestyle{fancy}
\definecolor{Elite}{RGB}{37,97,172}
\definecolor{web}{RGB}{56, 102, 166}
\setlength{\parindent}{0mm}
\setcounter{page}{1}
$\begin{array}{c|ccccc}
\midrule
O & A & B & C & D & E\\
\midrule
O & \fbox{1} & 5 & X & X & X\\
A & \fbox{1} & 5 & \fbox{4} & 10 & X\\
C & \fbox{1} & \fbox{5} & \fbox{4} & 8 & X\\
B & \fbox{1} & \fbox{5} & \fbox{4} & \fbox{8} & 11\\
D & \fbox{1} & \fbox{5} & \fbox{4} & \fbox{8} & \fbox{10}\\
\end{array}$
%
\end{document}
Latex experts, can you please suggest the modifications so I achieve what I want in this case?
Thanks for your help in advance.