
Estoy intentando crear una tabla básica y se me ocurrió el siguiente código. Mi problema es que los cuadros rotados están extrañamente alineados:
De manera óptima, todas las cajas pequeñas rotadas deben estar centradas de izquierda a derecha, y las rotadas que abarcan filas deben estar centradas en ambos sentidos. Intenté usar origin=c con turnbox, pero no cambió nada.
\begin{table}
\begin{tabularx}{\textwidth}{X|X|X|X|X|X|X}
\multirow{2}{*}{\rotatebox[]{90}{Tool}} & \multicolumn{2}{c|}{\makecell{Usability,\\ Consistency,\\Reuse}} & \multicolumn{3}{c|}{Support for \ac{UCSD}} & \multirow{2}{*}{\rotatebox[]{90}{\makecell{Structured\\Storage}}} \\
& \rotatebox[origin=c]{90}{\makecell{Shape\\Recognition}} & \rotatebox[origin=c]{90}{\makecell{Similarity\\Search}} & \rotatebox[origin=c]{90}{\makecell{Real-Time\\Collaboration}} & \rotatebox[origin=c]{90}{\makecell{Low- \& High\\Fidelity\\Prototypes}} & \rotatebox[origin=c]{90}{\makecell{Interactive\\Testing}} & \\ \hline
\end{tabularx}
\caption{Comparison}
\label{tab:existing_tools}
\end{table}
Respuesta1
\documentclass{article}
\usepackage{rotating}
\usepackage{makecell, tabularx}
\newcolumntype{C}{>{\centering\arraybackslash}X}
\begin{document}
\begin{table}
\settowidth\rotheadsize{Recogniti}
\begin{tabularx}{\textwidth}{C|C|C|C|C|C|C}
& \multicolumn{2}{c|}{\makecell[b]{Usability,\\ Consistency,\\Reuse}}
& \multicolumn{3}{c|}{Support for UCSD}
& \\
\rothead{Tool}
& \rothead{Shape\\Recognition}
& \rothead{Similarity\\Search}
& \rothead{Real-Time\\Collaboration}
& \rothead{Low- \& High\\Fidelity\\Prototypes}
& \rothead{Interactive\\Testing}
& \rothead{Structured\\Storage} \\
\hline
\end{tabularx}
\caption{Comparison}
\label{tab:existing_tools}
\end{table}
\end{document}