The problem is:
I have a table which is a bit too wide to fit in the page.
If I could rotate the column headers the table would fit perfectly.
I've checked CTAN and it seems that rotating is only possible to entire float elements or entire pages (landscaping)
Is there any way to do what I need?
Thks
General ⇒ Rotate text in tables
Rotate text in tables
There is a solution to your problem (if I understand it correctly.)
You must use the package graphicx and do the same thing as in a page.
For example :
I couldn't carry out a test but it seems to work well. I try this if i have time.
Rémi.
[Edit : I have realised a test and its well. I could use 270 in the place of 90 according to the orientation of the text.
I have a tex file and a pdf file for illustration but it isn't allowed to join files with this extension sorry.]
You must use the package graphicx and do the same thing as in a page.
For example :
Code: Select all
\begin{tabular}{|c|c|c|c|}
\hline
& \rotatebox{90}{bidule}
& \rotatebox{90}{machin}
& \rotatebox{90}{chose}
\hline
truc & 1 & 2 & 3 \\
\hline
\hline
truc & 1 & 2 & 3 \\
\hline
truc & 1 & 2 & 3 \\
\hline
\end{tabular}
Rémi.
[Edit : I have realised a test and its well. I could use 270 in the place of 90 according to the orientation of the text.
I have a tex file and a pdf file for illustration but it isn't allowed to join files with this extension sorry.]
Last edited by Rémi on Fri Jan 19, 2007 9:05 am, edited 1 time in total.
Sorry for my english. I'm french.
Rotate text in tables
[Edit : I have realised a test and its well. I could use 270 in the place of 90 according to the orientation of the text.
I have a tex file and a pdf file for illustration but it isn't allowed to join files with this extension sorry.]
Sven have solve the problem, so my files are in this message.
- Attachments
-
- tabular.pdf
- (3.9 KiB) Downloaded 7327 times
-
- tabular.tex
- (1.78 KiB) Downloaded 4502 times
Last edited by Rémi on Fri Jan 19, 2007 1:45 pm, edited 1 time in total.
Sorry for my english. I'm french.
-
- Posts: 19
- Joined: Wed Jan 17, 2007 11:42 am
Re: Rotate text in tables
sorry but do u mean rotating the whole table by 90 degrees, or just rotate the text in the table so as to get a shorter table width?
Re: Rotate text in tables
@Sven: Yeah, I kinda posted in the wrong section...
@Rémi: THKS! That was exactly what I needed.
@dustbinbear: I meant rotate the text in the table so as to get a shorter table width. Just like Rémi did.
Thks for the help. Problem solved!
@Rémi: THKS! That was exactly what I needed.
@dustbinbear: I meant rotate the text in the table so as to get a shorter table width. Just like Rémi did.
Thks for the help. Problem solved!