0

I am trying to build a basic table and have come up with the following code. My problem is that the rotated boxes are weirdly aligned: enter image description here

Optimally, all the small rotated boxes should be centered left-right, and the row-spanning, rotated ones should be centered in both ways. I tried using origin=c with rotatebox, but it didn't change anything.

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

1 Answer 1

1

enter image description here

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .