Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I need to rotate a table with caption, but I need to have a section name in top of the same page.

Already tried with sidewaystable, but it reserves a entire page only for the table.

Then I've tried using sideways, but the caption didn't work with that.

I've also tried using rotatebox, but I couldn't make it work...

Tried: ctable, landscape ...

No success at all...

share|improve this question
4  
Welcome to TeX.SE. It would be helpful if you showed what failed in the a fully compilable MWE including \documentclass and the appropriate packages. While solving problems is fun, setting them up is not. Then those trying to help can simply cut and paste your MWE and get started on solving problem. –  Peter Grill Nov 22 '12 at 1:34
    
To be honest, I would put the caption non-rotated. But even better, I would not mix rotated and non-rotated content on one page unless there's a really good reason. –  tohecz Nov 22 '12 at 10:10

1 Answer 1

You can use the hvfloat package; a little example:

\documentclass{article}
\usepackage{hvfloat}

\begin{document}

\section{Test Section}

\hvFloat[rotAngle=90,nonFloat]%
{}%
{\begin{tabular}{ll}
column 1a & column 2a \\
column 1b & column 2b \\
column 1c & column 2c \\
\end{tabular}}%
{A rotated table}%
{fig:test}

\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.