3

Is there a way to rotate visually in PDF reader portrait page into landscape orientation in ConTeXt?

The idea is to have a document in portrait mode with, for example, a wide table rotated 90 degrees and rotate the page with the mentioned table too, retaining all page setups including size, header, footer, etc. Thus, what I need is an analogue of pdflscape.sty package, but for ConTeXt.

5

1 Answer 1

1

I don't completely understand what pdflscape.sty does and it's documentation doesn't say much. But based on the comments above, I guess what you want is the following:

\setuppapersize[A4,rotated][A4,landscape]

In the terminology of the context page layout, this rotates the paper and makes the print to be landscape.

Here is an example showing the result:

\setuppapersize[A4][A4]

\starttext

\input knuth

\page
\setuppapersize[A4,rotated][A4,landscape]
\input knuth
\page
\setuppapersize[A4][A4]
\input knuth
\page

\stoptext
1
  • Thank you, this works correctly for one-sided layout. For double-sided layout, this tends to odd and even pages rotated in different directions. In your setup, even pages are rotated as required for table heading to be horizontal, but odd pages appear to be upside-down. In case of usage \setuppapersize[A4,270][A4,landscape] odd pages have correct orientation, but even - upside-down one. Aug 13, 2021 at 6:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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