答案1
array
带有和 的变体boldline
:
\documentclass{article}
\usepackage{array}
\usepackage{boldline}
\begin{document}
\begin{tabular}{|>{\rule[-1mm]{0pt}{9mm}}m{5mm}|*{2}{>{\centering\arraybackslash}m{5mm}|}}
\hline
& & \\
\hline\clineB{2-2}{3}
& \multicolumn{1}{c V{3}}{A} & X \\
\hline
& X & \\
\hline
\multicolumn{3}{>{\rule{0pt}{5mm}}c}{Time Step = k}
\end{tabular}
\end{document}
答案2
以下是使用常规tabular
与boldline
包结合或使用 的两种可能解决方案tikz
matrix
:
\documentclass{article}
\usepackage{boldline}
\begin{document}
\begin{tabular}{|c|c|c|}
\hline
& x & \\
\hline \clineB{2-2}{2}
x & \multicolumn{1}{V{2}c|}{x} & x \\
\hline
& x & \\
\hline
\multicolumn{3}{c}{text}
\end{tabular}
\end{document}
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{fit,matrix}
\begin{document}
\begin{tikzpicture}[nodes in empty cells]
\matrix(table)[
matrix of nodes,
row sep =-\pgflinewidth,
column sep = -\pgflinewidth,
nodes={anchor=center,
minimum width=0.5cm,
minimum height=0.5cm,
fill=none,
draw=black},
row 4/.style = {nodes={minimum height=0.75cm,
fill=none,
draw=none}},
]
{
& x & \\
x & x & x \\
& x & \\
& & \\
};
\node[fit=(table-4-1)(table-4-3)]{text};
\draw [black, very thick] (table-2-2.north east) -- (table-2-2.north west) -- (table-2-2.south west);
\end{tikzpicture}
\end{document}