
답변1
시작점으로 (약간의 고급 코드 사용) ...
\documentclass[margin=3mm]{standalone}
\usepackage{makecell}
\usepackage{xparse}
\NewExpandableDocumentCommand\mcc{O{1}m}
{\multicolumn{#1}{c|}{#2}}
\begin{document}
{
\setlength\extrarowheight{2pt}
\begin{tabular}{| *3{p{5em}|} }
\cline{2-3}
\mcc{} & \mcc[2]{\makecell{Events occurs in\\
the following 24 months}} \\
\cline{2-3}
\mcc{} & \mcc{Crisis} & \mcc{No crisis} \\
\hline
Signal & A & B \\
\hline
No Signal & C & D \\
\hline
\end{tabular}
}
\end{document}
예를 들어 WEB에서 찾을 수 있는 쓰기 테이블에 대한 소개 텍스트입니다.위키: 테이블.
답변2
에 대한 제안입니다 {NiceTabular}
.
\documentclass{article}
\usepackage{nicematrix}
\begin{document}
{
\setlength{\extrarowheight}{2pt}
\begin{NiceTabular}{*3{p{5em}}}[corners,hvlines]
& \Block{1-2}{Events occurs in\\ the following 24 months} \\
& \Block{}{Crisis} & \Block{}{No crisis} \\
Signal & A & B \\
No Signal & C & D \\
\end{NiceTabular}
}
\end{document}