1

I would like to make a table like this one, in which the columns have skewed text (I use booktabs):

enter image description here

I tried to search everywhere, but couldn't find an answer. Any advice on this?

Mico
  • 506,678
raf
  • 25

2 Answers2

2

To allow diagonal overlapping of the rotated headers, it's best to encase the \rotatebox directives in \rlap directives.

enter image description here

\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}

Mico
  • 506,678
1

No code provided so using a sample from this site -- How to make table with rotated table headers in LaTeX

enter image description here

\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}

js bibra
  • 21,280