答案1
一个简单的解决方案pstricks
:我在两个对角定义一对空节点,并用命令将它们连接起来\psframe
:
\documentclass[x11names]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{booktabs}
\usepackage{pst-node}
\usepackage{auto-pst-pdf}
\begin{document}
\begin{postscript}
\begin{tabular}{cccc}
\toprule
& $x$ & $y$\pnode[1.5em,1.8ex]{n2} & \\
\cmidrule[\lightrulewidth](lr){1-4}
B & 10 & 90 & \\
\pnode[-1ex, -0.8ex]{n1}\textcolor{blue}{B'} & \textcolor{blue}{12} & \textcolor{blue}{y = ?} & 2 \\
Γ & 20 & 70 & \\
\bottomrule
\end{tabular}%
\psframe[linecolor=IndianRed3, linejoin=1](n1)(n2)
\end{postscript}
\end{document}