This entry was posted
on Wednesday, December 1st, 2004 at 4:06 pm and is filed under Tips&Tricks.
You can follow any responses to this entry through the RSS 2.0 feed.
You can skip to the end and leave a response. Pinging is currently not allowed.
15 Responses to “Vertical text in the table in Latex”
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}
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!
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.
December 13th, 2005 at 10:14 pm
Thanks. That’s exactly what I was searching for.
December 14th, 2005 at 6:31 pm
Yep, me too!
May 28th, 2006 at 6:40 pm
Me too, thanks.
don’t forget \usepackage{multirow} \usepackage{rotating}
November 17th, 2006 at 1:13 am
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!
November 23rd, 2006 at 7:13 am
me too
February 11th, 2007 at 9:25 pm
Try to use this, it works pretty well multirow{14}{*}{rotatebox{90}{mbox{text}}}
May 9th, 2007 at 6:09 pm
I think Vixlow meant,
multirow{14}{*}{rotatebox{90}{mbox{text}}}
and it work very well. I can rotate the text to any direction.
October 1st, 2007 at 11:07 am
cool, just the thing i wanted; works great! thanks
March 27th, 2008 at 10:59 am
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}
March 27th, 2008 at 11:01 am
Hmmm, apply backslashes where approriate
March 27th, 2008 at 4:54 pm
Just added slashes. Given that this one-line post is single the most frequently visited post on my blog, I really should update in
January 29th, 2009 at 3:47 pm
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}
April 17th, 2009 at 10:06 am
works well for my article, thanks!
September 3rd, 2009 at 10:33 am
Works great! Thanks! Those who want vertically centered text simply use:
{\begin{sideways}\parbox{5cm}{\centering text}\end{sideways}}
November 9th, 2009 at 5:41 pm
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