중앙에 세 개의 수직 점으로 구성된 표를 만드는 방법은 무엇입니까?

중앙에 세 개의 수직 점으로 구성된 표를 만드는 방법은 무엇입니까?

LaTeX에서 이 테이블을 만들고 싶지만 중간에 세 개의 점을 추가하는 방법을 모르겠습니다.

여기에 이미지 설명을 입력하세요

답변1

귀하의 의견에 있는 표의 네 번째 열이 무엇인지 모르겠지만 힌트에 보관했습니다.

\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

tblr@Przemysław Scherwentke 답변(+1)과 유사하지만 패키지를 사용합니다 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}

여기에 이미지 설명을 입력하세요

관련 정보