答案1
为了允许旋转的标题对角线重叠,最好将\rotatebox
指令包裹在\rlap
指令中。
\documentclass{article}
\usepackage{graphicx,booktabs,amssymb}
\newcommand\rot[1]{\rlap{\rotatebox{45}{#1}}}
\newcommand\OK{$\checkmark$}
\begin{document}
\begin{table}[h]
\setlength\tabcolsep{9pt} % default: 6pt
\centering
\begin{tabular}{@{} *{7}{l} }
Reference & \rot{Ownership}
& \rot{No Claim Without Burn}
& \rot{Doublespend Prevention}
& \rot{Decentralized Finality}
& \rot{Transfer Confirmation}
& \rot{Implementation}\\
\midrule
XCLAIM & \OK & \OK & & \OK & & \OK \\
Metronome & \OK & \OK & \OK & & \OK & \OK \\
Gazi & \OK & & \\
\bottomrule
\end{tabular}
\end{table}
\end{document}
答案2
没有提供代码,因此使用此站点的示例--如何在 LaTeX 中制作带有旋转表头的表格
\documentclass{article}
\usepackage{array,graphicx}
\usepackage{booktabs}
\usepackage{pifont}
\newcommand*\rot{\rotatebox{60}}
\newcommand*\OK{\ding{51}}
\begin{document}
\begin{table} \centering
\begin{tabular}{@{} cl*{5}c @{}}
& & \rot{Integration} & \rot{Scope} & \rot{Time}\\
\midrule
& Initiating & \OK & & \\
& Planning & \OK & \OK & \OK\\
& Executing & \OK & & \\
& Monitoring and Control & \OK & \OK & \\
& Closing & \OK & & \\
\midrule
\end{tabular}
\caption{Some caption}
\end{table}
\end{document}