In the table below, I have tried to make my long texts, in the third row of the table, slanted by Werner's answer here:
\documentclass[border = 2mm]{standalone}
\usepackage{booktabs}
\usepackage{array}
\usepackage{graphicx}
\NewDocumentCommand{\rot}{O{45} O{1em} m}{\makebox[#2][l]{\rotatebox{#1}{#3}}}%
\begin{document}
\begin{tabular}{@{\extracolsep{6pt}}ccccc@{}}
\toprule
Strategies&\multicolumn{4}{c}{Types}\
\cmidrule{1-1}\cmidrule{2-5}
&\multicolumn{2}{c}{Type A}&\multicolumn{2}{c}{Type B}\
\cmidrule{2-3}\cmidrule{4-5}
&\rot{A long text here}&\rot{A very very very long text here}&\rot{A very very long text here}&\rot{A very very very very long text here}\
\cmidrule{2-3}\cmidrule{4-5}
An strategy & 0 &1&2&3\
\bottomrule
\end{tabular}
\end{document}
But, column setting do not adapt to the slanted setup leading to the result below:
Is there an automatic way to adjust the columns based on a slant value?

