From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93203 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Switching to landscape Date: Tue, 29 Dec 2015 21:28:16 +0100 Message-ID: <5682ECE0.6@gmail.com> References: <56806EE0.6010602@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5069837484255992154==" X-Trace: ger.gmane.org 1451420959 17276 80.91.229.3 (29 Dec 2015 20:29:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Dec 2015 20:29:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 29 21:29:05 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aE0tF-0000dY-JQ for gctc-ntg-context-518@m.gmane.org; Tue, 29 Dec 2015 21:29:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2B5375A53; Tue, 29 Dec 2015 21:28:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wkb0otcmYKUW; Tue, 29 Dec 2015 21:28:31 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 730D65A5B; Tue, 29 Dec 2015 21:28:31 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2BA0E5A3B for ; Tue, 29 Dec 2015 21:28:30 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZnajBqy8pWxn for ; Tue, 29 Dec 2015 21:28:29 +0100 (CET) Original-Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 8F6185A18 for ; Tue, 29 Dec 2015 21:28:19 +0100 (CET) Original-Received: by mail-wm0-f51.google.com with SMTP id b14so26354094wmb.1 for ; Tue, 29 Dec 2015 12:28:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=aGGlWLt3efHx+fQofJse3vxwPBAwEHx4bC6Y8ELXprU=; b=Z+tb8VuDbWCccM0nfNk8RsnmYhuEHw1xoHzgifRczNvpkhQlTvMi938LjaUssSsG0C 43QzElZx2Gz2rl5jUMyGKoiTnoKC11+htQxeYWvILetdcDHmQOryd47OH6wo2k/FlK8X lru5ZxSuDiRpMNb9VZec+Ro+kMVM1MQLVHmm/Om2kxoJCmEYWwl3P3pNnV3/XcSW9Q+w wybf4gR86MyqvwZYOg3h9aSkvrpcwL+pnoXxnYbKfFQyfynnREB8Z14y6QfZzZaoNH3s UWzizETS9MATLUvmkptTYLZrXkHuGw5FbVqDD38xHAqy+Mqvp5uI29U6Vd36PsFmgb3L Rt/g== X-Received: by 10.28.51.135 with SMTP id z129mr66944815wmz.19.1451420899079; Tue, 29 Dec 2015 12:28:19 -0800 (PST) Original-Received: from keima.localdomain (x2f25ca3.dyn.telefonica.de. [2.242.92.163]) by smtp.gmail.com with ESMTPSA id u126sm54250008wme.3.2015.12.29.12.28.17 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Dec 2015 12:28:18 -0800 (PST) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:93203 Archived-At: This is a multi-part message in MIME format. --===============5069837484255992154== Content-Type: multipart/alternative; boundary="------------060006050900000607050200" This is a multi-part message in MIME format. --------------060006050900000607050200 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Proch=C3=A1zka Luk=C3=A1=C5=A1 Ing. - Pontex s. r. o. > 28. Dezember 2015 um 16:37 > Hello, > > On Mon, 28 Dec 2015 00:06:08 +0100, Wolfgang Schuster=20 > wrote: > >> It=E2=80=99s a bug but for the moment you can call \setuplayout (no ar= guments >> are necessary) after \setupapersize to have the correct sizes in the=20 >> PDF. > > OK, it works. > > One question related to this theme: > > How width and height of the current layout are adopted when switching=20 > to landscape? > > I noticed that once I have set the layout "height", I have to reset=20 > the value manually. > If the default "height" is kept, no manual reset is necessary. > > See this: > > ---- > %\setuplayout[height=3D277mm] % This value is useful for portrait=20 > 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=20 afterwards you can just switch back to the default setting when the papersize changes. \definelayout[start][height=3D277mm] \setuplayout [start] \showframe \starttext \dorecurse{5}{\input knuth\par} \page \setuppapersize[A4,landscape] \setuplayout[reset] \dorecurse{5}{\input knuth\par} \stoptext Wolfgang --------------060006050900000607050200 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

On Mon, 28 Dec 2015 00:06:08 +0100, Wolfgang Schuster=20 <schuster.wolfgang@gmail.com> wrote:

It=E2=80=99s a bug but for the moment you c= an call=20 \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=20 switching to landscape?

I noticed that once I have set the layout "height", I have to reset=20 the value manually.
If the default "height" is kept, no manual reset is necessary.

See this:

----
%\setuplayout[height=3D277mm] % This value is useful for portrait=20 orientation; try to un/comment

\starttext
=C2=A0 Aaa

=C2=A0 \page
=C2=A0 \setuppapersize[A4,landscape] % "Height" should be reset
=C2=A0 \setuplayout

=C2=A0 Bbb

=C2=A0 \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=20 afterwards you can
just switch back to the default setting when the papersize changes.

\definelayout[start][height=3D277mm]
\setuplayout [start]

\showframe

\starttext

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

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

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

\stoptext

Wolfgang
--------------060006050900000607050200-- --===============5069837484255992154== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============5069837484255992154==--