From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93601 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: not able to change paper sizes Date: Thu, 04 Feb 2016 19:54:14 +0100 Message-ID: <56B39E56.2000805@gmail.com> References: <56AFA620.2030004@gmx.es> <56B2075B.10501@wxs.nl> <56B37A16.4080708@gmx.es> <56B37EA8.9070603@gmail.com> <56B38571.3090703@gmx.es> <56B39287.5060309@gmail.com> <56B39BCF.4030600@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8274830261695182077==" X-Trace: ger.gmane.org 1454612100 19907 80.91.229.3 (4 Feb 2016 18:55:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Feb 2016 18:55:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 04 19:54:47 2016 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 1aRP3A-0006yu-Ia for gctc-ntg-context-518@m.gmane.org; Thu, 04 Feb 2016 19:54:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 793C0679E; Thu, 4 Feb 2016 19:54: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 jI9m0KZB8btU; Thu, 4 Feb 2016 19:54:29 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id CC6BB678C; Thu, 4 Feb 2016 19:54:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 13048678C for ; Thu, 4 Feb 2016 19:54:29 +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 beXuh_ics6GL for ; Thu, 4 Feb 2016 19:54:28 +0100 (CET) Original-Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) (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 9AB88677F for ; Thu, 4 Feb 2016 19:54:18 +0100 (CET) Original-Received: by mail-wm0-f42.google.com with SMTP id p63so130998095wmp.1 for ; Thu, 04 Feb 2016 10:54:18 -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=IjADQYD0D71arVF9XaVGcuNU/butsO/2hHFgURe6JIg=; b=01ScyPFX4bUr/fe/SHIwoez/ZwQrKEwZkyVuVBDpf+jG/UPUJgKs1Wtp+xFueGpGfd F1LK33DyeEx+luo06To1JhEcRRfZqXwRY8P6hwgV6yIR6xx3pXAOpxTM9ggjgminQjj7 m0bmVLE+a3HgkIYv1i27pZgvtUPFJJrcVDgVCxxMyJv4tlNr9Zi48FK/cxKi8bXfXc+p KavgpmJqeJoyRmaybyusuiUdCi5+1uM2+nxzewNdnRlzpkBr2pwn98ycu9KIZh/Zf/to CwdNF5EnLRmR2cHtKTALqvTfEHIXWcOOlC442HkE7Nh8WHIxKuBQcNlmd2H35xgmqgP2 F+Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type; bh=IjADQYD0D71arVF9XaVGcuNU/butsO/2hHFgURe6JIg=; b=Ww096nQhSwCZ8DNVowif4Oo1GB2MM5n5grWFgrUNe0pTPLj/0FFxndqg90EdDPaLbV FapbBSUmp8mtRdWCS6q+QRTEVRwp9YlRB8dZzY37DDcyRJprw0oZCQOULrHZW9xlg+Pu 9m4/OrBM12mQv2w0uwG5f6VryszI4KiegStAz2yJmlULdd/EAbJvyiPPjt2OMQip6RVs qGqpZSnsPHboOMJpc6ftnSHoVLtIcspjOpy7jfgGbdZS4fd0cDxj+8FiSZ5gHiyTdIj5 CGNwxRTA8Ou8OsRJHxA9LqZc6bfcOaEb7Jk11sVY03jw61WnE5XTBIzCVaXugk11hoGq 7rPA== X-Gm-Message-State: AG10YOQKbbWmqrkpdT/G16oKhMidRAu/82oE/G64+f90JgNdsv9Kv4ysdTQ0cKb09uEvMQ== X-Received: by 10.194.52.8 with SMTP id p8mr9525072wjo.62.1454612058361; Thu, 04 Feb 2016 10:54:18 -0800 (PST) Original-Received: from keima.localdomain (x2f290cc.dyn.telefonica.de. [2.242.144.204]) by smtp.gmail.com with ESMTPSA id hm9sm12526906wjb.34.2016.02.04.10.54.17 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 04 Feb 2016 10:54:17 -0800 (PST) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <56B39BCF.4030600@gmx.es> 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:93601 Archived-At: This is a multi-part message in MIME format. --===============8274830261695182077== Content-Type: multipart/alternative; boundary="------------070307020102090009030208" This is a multi-part message in MIME format. --------------070307020102090009030208 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Pablo Rodriguez > 4. Februar 2016 um 19:43 > > But I get two test2 on page 2: > > \definelayer[test1][x=.5\paperwidth, y=.5\paperheight, state=start] > \setlayer[test1]{page1} Set the layer content after \starttext or load a font before you set it, otherwise context uses a monospace font as fallback. > \definelayer[test2][x=.5\paperwidth, y=.5\paperheight, state=continue] Remove "state=continue". > \startsetups[testlayer] > \setlayer[test2]{page2} > \stopsetups You have to include a check for the first page, possible are \startsetups[testlayer] \ifnum\rawcountervalue[userpage]=1\else \setlayer[test2]{page2} \fi \stopsetups or \startsetups[testlayer] \doifnot{\rawcountervalue[userpage]}{1}{\setlayer[test2]{page2}} \stopsetups Wolfgang --------------070307020102090009030208 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
4.= =20 Februar 2016 um 19:43

But I get two test2 on page 2:

=20 \definelayer[test1][x=3D.5\paperwidth, y=3D.5\paperheight, state=3Dstart]=
=20 \setlayer[test1]{page1}
Set the layer content after \starttext or load a font before you set it,<= br> otherwise context uses a monospace font as fallback.
\definelayer[test2][x=3D.5\paperwidth, y=3D.5\paperheight,=20 state=3Dcontinue]
Remove "state=3Dcontinue".
\startsetups[testlayer]
\setlayer[test2]{page2}
=20 \stopsetups
You have to include a check for the first page, possible are

\startsetups[testlayer]
=C2=A0=C2=A0=C2=A0 \ifnum\rawcountervalue[userpage]=3D1\else
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 \setlayer[test2]{page2}
=C2=A0=C2=A0=C2=A0 \fi
\stopsetups

or

\startsetups[testlayer]
=C2=A0=C2=A0=C2=A0 \doifnot{\rawcountervalue[userpage]}{1}{\setlayer[test= 2]{page2}}
\stopsetups

Wolfgang
--------------070307020102090009030208-- --===============8274830261695182077== 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= --===============8274830261695182077==--