I would like to make a table like this one, in which the columns have skewed text (I use booktabs):
I tried to search everywhere, but couldn't find an answer. Any advice on this?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI would like to make a table like this one, in which the columns have skewed text (I use booktabs):
I tried to search everywhere, but couldn't find an answer. Any advice on this?
To allow diagonal overlapping of the rotated headers, it's best to encase the \rotatebox
directives in \rlap
directives.
\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}
No code provided so using a sample from this site -- How to make table with rotated table headers in 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}