答案1
无需使用TikZ
代码。
\documentclass[a4paper,12pt]{article}
\usepackage{mathtools,amssymb,tabularx}
\usepackage{graphicx}
\newcommand{\ra}{\rotatebox[origin=c]{45}{$\longleftrightarrow$}}
\newcommand{\rb}{\rotatebox[origin=c]{-45}{$\longleftrightarrow$}}
\begin{document}
\begin{table}[h!]
\begin{tabular}{|l|l|}
\hline
$(x-5)$ & \\ \hline
$\mkern12mu\mathrlap{\ra}\rb$ & $-8x-5x=-13x$ \\ \hline
$(x-8)$ & \\ \hline
\end{tabular}
\end{table}
\end{document}