ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Switching form portrait to landscape and back to portrait
@ 2003-02-17 11:52 Willi Egger
  2003-02-20  5:09 ` Guy Worthington
  0 siblings, 1 reply; 5+ messages in thread
From: Willi Egger @ 2003-02-17 11:52 UTC (permalink / raw)


Dear list,

I am struggling with a document, where from time to time a landscape page is
inserted.

\chapter{One}

running tex A4

\chapter{Two}

landscape table A4

\chapter{Three}

running text A4


It sounds maybe stupid, but I tried different variations and I do not get
what I need ... How do I setup a correct switching?

Thanks for advice! Willi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Switching form portrait to landscape and back to portrait
  2003-02-17 11:52 Switching form portrait to landscape and back to portrait Willi Egger
@ 2003-02-20  5:09 ` Guy Worthington
  2003-02-20 16:15   ` Willi Egger
  0 siblings, 1 reply; 5+ messages in thread
From: Guy Worthington @ 2003-02-20  5:09 UTC (permalink / raw)


Willi Egger wrote:

> I am struggling with a document, where from time to time a landscape
> page is inserted.

If you've got your text in a float type environment (such as
\placetable), you can use the \rotate{} command.  Here's a small
example.  This will literally insert a landscape page, without a
header and without a footer.

----------

%output=pdf
\starttext

\input tufte

\startTEXpage

\rotate [height=210mm,
         width=297mm,
	 rotation=90]
    {\placetable{My Caption}{
       \bTABLE
       \bTR \bTD \eTD \bTD aaa\eTD \bTD b\eTD \eTR
       \bTR \bTD \eTD \bTD aaa\eTD \bTD b\eTD \eTR
       \bTR \bTD 11\eTD \bTD 111\eTD \bTD 5555\eTD \eTR
       \bTR \bTD 22\eTD \bTD 221\eTD \bTD 6655\eTD \eTR
       \eTABLE}}

\stopTEXpage

\doincrementpagenumber

\input tufte

\stoptext

----------

This example will float the table to the centre of the page, if you'd
like to anchor the float to the bottom of the page, you make have to
get out the \frame{} toolkit.

> How do I setup a correct switching [for this type of structure]?

> \chapter{One}
> 
> running tex A4
> 
> \chapter{Two}
> 
> landscape table A4
> 
> \chapter{Three}
> 
> running text A4

You want rotated chapter headings, headers and footers, etc., I've
never done that.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: Switching form portrait to landscape and back to portrait
  2003-02-20  5:09 ` Guy Worthington
@ 2003-02-20 16:15   ` Willi Egger
  2003-02-20 17:29     ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Willi Egger @ 2003-02-20 16:15 UTC (permalink / raw)


> %output=pdf
> \starttext
>
> \input tufte
>
> \startTEXpage
>
> \rotate [height=210mm,
>          width=297mm,
> rotation=90]
>     {\placetable{My Caption}{
>        \bTABLE
>        \bTR \bTD \eTD \bTD aaa\eTD \bTD b\eTD \eTR
>        \bTR \bTD \eTD \bTD aaa\eTD \bTD b\eTD \eTR
>        \bTR \bTD 11\eTD \bTD 111\eTD \bTD 5555\eTD \eTR
>        \bTR \bTD 22\eTD \bTD 221\eTD \bTD 6655\eTD \eTR
>        \eTABLE}}
>
> \stopTEXpage
>
> \doincrementpagenumber
>
> \input tufte
>
> \stoptext
>

Thanks a lot! This is the clue I needed. At least I am able to typeset the
landscape pages and can have following pages in portrait again!

> ----------
>
> This example will float the table to the centre of the page, if you'd
> like to anchor the float to the bottom of the page, you make have to
> get out the \frame{} toolkit.
>
> > How do I setup a correct switching [for this type of structure]?
>
> > \chapter{One}
> >
> > running tex A4
> >
> > \chapter{Two}
> >
> > landscape table A4
> >
> > \chapter{Three}
> >
> > running text A4
>
> You want rotated chapter headings, headers and footers, etc., I've
> never done that.

Basically I think, that it could be a good idea, to have a heder beeing
rotatet with the content of the page. Sofar one can include the \chapter[]{}
in the \rotate[]{} command and it is nicely rotated with the rest of the
page.

I will try further.... Thanks for your example!

Willi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: Switching form portrait to landscape and back to portrait
  2003-02-20 16:15   ` Willi Egger
@ 2003-02-20 17:29     ` Hans Hagen
  2003-02-20 21:32       ` Willi Egger
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2003-02-20 17:29 UTC (permalink / raw)


At 05:15 PM 2/20/2003 +0100, you wrote:
> > %output=pdf
> > \starttext
> >
> > \input tufte
> >
> > \startTEXpage
> >
> > \rotate [height=210mm,
> >          width=297mm,
> > rotation=90]
> >     {\placetable{My Caption}{
> >        \bTABLE
> >        \bTR \bTD \eTD \bTD aaa\eTD \bTD b\eTD \eTR
> >        \bTR \bTD \eTD \bTD aaa\eTD \bTD b\eTD \eTR
> >        \bTR \bTD 11\eTD \bTD 111\eTD \bTD 5555\eTD \eTR
> >        \bTR \bTD 22\eTD \bTD 221\eTD \bTD 6655\eTD \eTR
> >        \eTABLE}}
> >
> > \stopTEXpage
> >
> > \doincrementpagenumber
> >
> > \input tufte
> >
> > \stoptext
> >
>
>Thanks a lot! This is the clue I needed. At least I am able to typeset the
>landscape pages and can have following pages in portrait again!
>
> > ----------
> >
> > This example will float the table to the centre of the page, if you'd
> > like to anchor the float to the bottom of the page, you make have to
> > get out the \frame{} toolkit.
> >
> > > How do I setup a correct switching [for this type of structure]?
> >
> > > \chapter{One}
> > >
> > > running tex A4
> > >
> > > \chapter{Two}
> > >
> > > landscape table A4
> > >
> > > \chapter{Three}
> > >
> > > running text A4
> >
> > You want rotated chapter headings, headers and footers, etc., I've

\starttext

\setuppapersize[A4,portrait][A4,portrait]

\input tufte \page

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

\input tufte \page

\setuppapersize[A4,portrait][A4,portrait]

\input tufte \page

\stoptext

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: Switching form portrait to landscape and  back to portrait
  2003-02-20 17:29     ` Hans Hagen
@ 2003-02-20 21:32       ` Willi Egger
  0 siblings, 0 replies; 5+ messages in thread
From: Willi Egger @ 2003-02-20 21:32 UTC (permalink / raw)



----- Original Message -----
From: "Hans Hagen" <pragma@wxs.nl>
To: <ntg-context@ntg.nl>
Sent: Thursday, February 20, 2003 6:29 PM
Subject: Re: [NTG-context] Re: Switching form portrait to landscape and back
to portrait


> At 05:15 PM 2/20/2003 +0100, you wrote:
> > > %output=pdf
> > > \starttext
> > >
> > > \input tufte
> > >
> > > \startTEXpage
> > >
> > > \rotate [height=210mm,
> > >          width=297mm,
> > > rotation=90]
> > >     {\placetable{My Caption}{
> > >        \bTABLE
> > >        \bTR \bTD \eTD \bTD aaa\eTD \bTD b\eTD \eTR
> > >        \bTR \bTD \eTD \bTD aaa\eTD \bTD b\eTD \eTR
> > >        \bTR \bTD 11\eTD \bTD 111\eTD \bTD 5555\eTD \eTR
> > >        \bTR \bTD 22\eTD \bTD 221\eTD \bTD 6655\eTD \eTR
> > >        \eTABLE}}
> > >
> > > \stopTEXpage
> > >
> > > \doincrementpagenumber
> > >
> > > \input tufte
> > >
> > > \stoptext
> > >
> >
> >Thanks a lot! This is the clue I needed. At least I am able to typeset
the
> >landscape pages and can have following pages in portrait again!
> >
> > > ----------
> > >
> > > This example will float the table to the centre of the page, if you'd
> > > like to anchor the float to the bottom of the page, you make have to
> > > get out the \frame{} toolkit.
> > >
> > > > How do I setup a correct switching [for this type of structure]?
> > >
> > > > \chapter{One}
> > > >
> > > > running tex A4
> > > >
> > > > \chapter{Two}
> > > >
> > > > landscape table A4
> > > >
> > > > \chapter{Three}
> > > >
> > > > running text A4
> > >
> > > You want rotated chapter headings, headers and footers, etc., I've
>
> \starttext
>
> \setuppapersize[A4,portrait][A4,portrait]
>
> \input tufte \page
>
> \setuppapersize[A4,landscape][A4,landscape]
>
> \input tufte \page
>
> \setuppapersize[A4,portrait][A4,portrait]
>
> \input tufte \page
>
> \stoptext

Ah, I need to say [A4,portrait] and \page. - I fiddled a long time with
\setuppapersize but never added portrait to the command! - And therefore it
did not work.

Thanks a lot, I have now what I was looking for! Willi

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-02-20 21:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-17 11:52 Switching form portrait to landscape and back to portrait Willi Egger
2003-02-20  5:09 ` Guy Worthington
2003-02-20 16:15   ` Willi Egger
2003-02-20 17:29     ` Hans Hagen
2003-02-20 21:32       ` Willi Egger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).