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've a large table, which I want to rotate to fit onto one page. My current solution looks like:

\placetable{some text}
{\rotate[rotation=90]{
  \starttable[...]
       ....
  \stoptable}}

But unfortunately this way only the table itself is rotate, not the caption.

Instead I want the table across the page to be in "landscape", whereas the header and footer won't be rotated. Something like:

\rotate[rotation=90]{
  \placetable{some text}
  {\starttable[...]
        ....
   \stoptable}}

such that the caption is rotated to and "under" the table (if the page is rotated to landscape in the viewer).

Update:

Any ideas?

share|improve this question
    
@Herbert: Normally, broad "concept" tags should be preferred to specific "command" tags. –  lockstep Jun 19 '11 at 9:01
    
@lockstep: rotating is the wrong tag for context! –  Herbert Jun 19 '11 at 9:01
    
@Herbert: {rotating} is ambiguous because it may stand for a) the general concept of "rotating" b) the LaTeX package of the same name. I'd still prefer to have one tag, however named. Maybe the naming question could be discussed at our meta site. –  lockstep Jun 19 '11 at 9:05
add comment

1 Answer

up vote 7 down vote accepted

In ConTeXt, all floats support rotation.

\placetable[90]{Caption}{Table content}

You can also try 180 and 270 to get other rotation angles.

share|improve this answer
    
+1, and deleted my over-complicated answer. –  Taco Hoekwater Jun 19 '11 at 15:29
    
wow, that's nice. Is it documented anywhere? –  urso Jun 19 '11 at 15:46
    
@urso: I don't know whether it is documented or not. I guessed the solution by trial and error. I "knew" that such a basic feature must be supported. Now the only way to pass options to \place<float> is as parameters. The "obvious" choice for such parameters is 90, 180, 270 (similar arguments are also used for page rotation in \definepapersize). I tried it, and it worked. If you did not find it anywhere in the documentation, please add it to the ConTeXt wiki –  Aditya Jun 19 '11 at 16:30
add comment

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.