![中央に 3 つの縦のドットがある表を作成するにはどうすればよいですか?](https://rvso.com/image/449620/%E4%B8%AD%E5%A4%AE%E3%81%AB%203%20%E3%81%A4%E3%81%AE%E7%B8%A6%E3%81%AE%E3%83%89%E3%83%83%E3%83%88%E3%81%8C%E3%81%82%E3%82%8B%E8%A1%A8%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%81%A9%E3%81%86%E3%81%99%E3%82%8C%E3%81%B0%E3%82%88%E3%81%84%E3%81%A7%E3%81%99%E3%81%8B%3F.png)
答え1
あなたのコメントの表の 4 番目の列が何のためにあるのかわかりませんが、ヒントには残しておきました。
\documentclass{article}
\begin{document}
\begin{tabular}{l|l|ll}
\cline{1-3} State & Action & Value & \\
\cline{1-3}
$s_1$ & $a_1$ & $Q(s_1,a_1)_1$ & \\
\cline{1-3}
\multicolumn{1}{c}{$\vdots$} & \multicolumn{1}{c}{$\vdots$} & \multicolumn{1}{c}{$\vdots$} & \\ \cline{1-3}
& & & \\
\cline{1-3}
\end{tabular}
\end{document}
答え2
@Przemysław Scherwentke の回答 (+1) と似ていますが、パッケージtblr
のを使用していますtabularray
。
\documentclass{article}
\usepackage{xcolor}
\usepackage{tabularray}
\begin{document}
\begin{center}
\begin{tblr}{colspec={ *{3}{Q[c, mode=math, wd=5em]} },
row{1} = {mode=text, l},
hline{1-3, Y-Z} = {solid},
vline{2-Y} = {1-2, Z}{solid},
}
State & Action & Value \\
s_1 & a_1 & Q(s_1,a_1)_1 \\
\SetRow{font=\Huge, rowsep=3ex}
\vdots & \vdots & \vdots \\
s_n & a_n & Q(s_n,a_n)_n \\
\end{tblr}
\end{center}
\end{document}