# makecell package vertical centering of vertical text

I'm using makecell package to write vertical text to my table cells. It works fine, but I have trouble centering it. Normal vertical text (within a {tabular}) is displayed as:

    \rothead{Some lenghthy\\ sentence}


Using

    \rothead[c]{Some lenghthy\\ sentence}


does center it, but adds a @ to the end ??

I'm not good at tex macros, this is the definition:

% \begin{macro}{\rothead}
% The macro for rotated tabular column heads. If no \package{rotating} package
%    \begin{macrocode}
needs rotating package}%
%    \end{macrocode}
% For rotated column head default column setting is similar to
%    \begin{macrocode}
@{}}]{#1}\endturn}}
%    \end{macrocode}
% \end{macro}


Can anyone explain please? I'd really like to center my vertical column headers :(

-
Just a comment about how you posed your question. It would be simpler if you had posted a small example document that showed the problem (e.g. a full document that loaded just the makecell and rotating packages, plus a single small table with the relevant \rothead command.) The code you added (which is from the makecell package was the right code to diagnose the problem, though.) – Alan Munn Jan 3 '11 at 2:20

This looks like a bug in the package, so you should contact the author about it. But as a temporary fix, it looks like you can just add the following to your preamble. (Lightly tested.)

\makeatletter