ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Switching to landscape
Date: Tue, 29 Dec 2015 21:28:16 +0100	[thread overview]
Message-ID: <5682ECE0.6@gmail.com> (raw)
In-Reply-To: <op.yac1petwtpjj8f@lpr>


[-- Attachment #1.1: Type: text/plain, Size: 1584 bytes --]

> Procházka Lukáš Ing. - Pontex s. r. o. <mailto:LPr@pontex.cz>
> 28. Dezember 2015 um 16:37
> Hello,
>
> On Mon, 28 Dec 2015 00:06:08 +0100, Wolfgang Schuster 
> <schuster.wolfgang@gmail.com> wrote:
>
>> It’s a bug but for the moment you can call \setuplayout (no arguments
>> are necessary) after \setupapersize to have the correct sizes in the 
>> PDF.
>
> OK, it works.
>
> One question related to this theme:
>
> How width and height of the current layout are adopted when switching 
> to landscape?
>
> I noticed that once I have set the layout "height", I have to reset 
> the value manually.
> If the default "height" is kept, no manual reset is necessary.
>
> See this:
>
> ----
> %\setuplayout[height=277mm] % This value is useful for portrait 
> orientation; try to un/comment
>
> \starttext
>   Aaa
>
>   \page
>   \setuppapersize[A4,landscape] % "Height" should be reset
>   \setuplayout
>
>   Bbb
>
>   \typefile{Text.txt}
> \stoptext
> ----
>
> Is there a way to "reset" to the default (landscape) layout?
> (Even \setuplayout[reset] doesn't do the job.)
There is no reset possible because you change the default layout.

You can fix this with a custom layout for your document because 
afterwards you can
just switch back to the default setting when the papersize changes.

\definelayout[start][height=277mm]
\setuplayout [start]

\showframe

\starttext

\dorecurse{5}{\input knuth\par}

\page \setuppapersize[A4,landscape] \setuplayout[reset]

\dorecurse{5}{\input knuth\par}

\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2823 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2015-12-29 20:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-27 21:19 Lukáš Procházka
2015-12-27 23:06 ` Wolfgang Schuster
2015-12-28 15:37   ` Procházka Lukáš Ing. - Pontex s. r. o.
2015-12-29 20:28     ` Wolfgang Schuster [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5682ECE0.6@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).