Generalturn command generates problems at table headers

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
robertoneto123
Posts: 13
Joined: Thu Sep 25, 2008 1:20 pm

turn command generates problems at table headers

Post by robertoneto123 »

Hello,

I have a table defined like that:

Code: Select all

\begin{table}[!ht]
%\begin{sidewaystable}
\caption{Cronograma proposto}
\label{tb:cronograma}
  \begin{center}
	\begin{tabular}{|p{8cm}|p{1cm}|c|c|c|c|c|c|}
     \hline
     [b]This should be on top[/b]& \begin{turn}{+90}dez-08\end{turn} & \begin{turn}{+90}fev-09\end{turn} & \begin{turn}{+90}jun-09\end{turn} & \begin{turn}{+90}ago-09\end{turn} & \begin{turn}{+90}out-09\end{turn} & \begin{turn}{+90}dez-09\end{turn} & \begin{turn}{+90}fev-10\end{turn} \\
However the "This should be on top" cell goes to the bottom of the page. When I remove the turn command, all cells are top-aligned.

Is it possible to align a table cell to the top, even with the turn?

Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

turn command generates problems at table headers

Post by Stefan Kottwitz »

Hi,

you could use \rotatebox of the graphicx package instead:

Code: Select all

\rotatebox[origin=r]{90}{dez-08}
Stefan
LaTeX.org admin
robertoneto123
Posts: 13
Joined: Thu Sep 25, 2008 1:20 pm

Re: turn command generates problems at table headers

Post by robertoneto123 »

Tks! It works!
Post Reply