Vertical text in the table in Latex

\multirow{4}{15mm}{\begin{sideways}\parbox{15mm}{text}\end{sideways}}

17 Responses to “Vertical text in the table in Latex”

  1. Lukas Says:

    Thanks. That’s exactly what I was searching for. :-)

  2. Neil Says:

    Yep, me too!

  3. daan Says:

    Me too, thanks.

    don’t forget \usepackage{multirow} \usepackage{rotating}

  4. graham Says:

    Hi,

    I’ve just been searching the web trying to work out how to do that with a table in my thesis!

    It work great!

    thanks!

  5. toby Says:

    me too

  6. Vixlow Says:

    Try to use this, it works pretty well multirow{14}{*}{rotatebox{90}{mbox{text}}}

  7. Emine Says:

    I think Vixlow meant,

    multirow{14}{*}{rotatebox{90}{mbox{text}}}

    and it work very well. I can rotate the text to any direction.

  8. ganesh Says:

    cool, just the thing i wanted; works great! thanks

  9. Simon de Hartog Says:

    I’ve tried the more simple variant, here a somewhat more complete example: \begin{table}[htbp] \begin{tabular}{|l|c|c|c|c|} \hline & {\begin{sideways}Admin. of devs in range\end{sideways}} & {\begin{sideways}Publish/subscribe\end{sideways}} & {\begin{sideways}Distributed mutexes\end{sideways}} & {\begin{sideways}\parbox{47mm}{Service behaviour reporting}\end{sideways}} \ \hline \end{tabular} \caption{\label{tbl-scenfeat}Scenarios and their key features} \end{table}

  10. Simon de Hartog Says:

    Hmmm, apply backslashes where approriate

  11. tadekp Says:

    Just added slashes. Given that this one-line post is single the most frequently visited post on my blog, I really should update in ;-)

  12. Ago Says:

    Hi everybody! Without you I would have never arrived to write my vertical text! But life is full of problems, and my vertical text is at the side of a figure, and it’s shorter than the heigh oh the figure, and I would like to vertically center the text. I know it’s vertically alligned with the center of the figure, and I’m not able to move it… Please help me!

    Here’s my code.

    \begin{figure}[t]

    \begin{tabular}{cc}

    \begin{sideways}\parbox{50mm}{Cell response}\end{sideways} &

    \includegraphics[width=4.5cm]{grafica/ori0.eps}}

    \end{tabular}

    \end{figure}

  13. George Says:

    works well for my article, thanks!

  14. Levin Says:

    Works great! Thanks! Those who want vertically centered text simply use:

    {\begin{sideways}\parbox{5cm}{\centering text}\end{sideways}}

  15. Götz Says:

    Thanks a lot fo this blog entry! Though the code in the post wasn’t the best solution for me, other suggestions like \rotatebox{90}{\mbox{text}} are looking easier and are working perfect for me.

    Kind regards, Götz

  16. Alberto Says:

    Nice! Exactly whan I was looking for :)

  17. Lili Says:

    I can’t find it how to install rotating package! I really need it :s

Leave a Reply