From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95330 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \pushbackground for header/footer Date: Mon, 04 Jul 2016 16:34:43 +0200 Message-ID: <577A7403.6030503@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0713905060014750307==" X-Trace: ger.gmane.org 1467642942 23663 80.91.229.3 (4 Jul 2016 14:35:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2016 14:35:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 04 16:35:31 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 1bK4yA-0005M2-TJ for gctc-ntg-context-518@m.gmane.org; Mon, 04 Jul 2016 16:35:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3B93410E01; Mon, 4 Jul 2016 16:34:57 +0200 (CEST) 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 qYsIn5L2_U92; Mon, 4 Jul 2016 16:34:56 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 80F8410E04; Mon, 4 Jul 2016 16:34:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AC85310E04 for ; Mon, 4 Jul 2016 16:34:55 +0200 (CEST) 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 7EhH9pFss-Ef for ; Mon, 4 Jul 2016 16:34:54 +0200 (CEST) Original-Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) (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 B747510E01 for ; Mon, 4 Jul 2016 16:34:44 +0200 (CEST) Original-Received: by mail-wm0-f53.google.com with SMTP id a66so118221279wme.0 for ; Mon, 04 Jul 2016 07:34:44 -0700 (PDT) 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; bh=C3haMee7YmqREAzHZy1ZKvBroRHoO2dLVTtheBUoNec=; b=oct3ojXkmMYkbfgPiA9x0mEQFCNXo+BQV3OS5QIMrI5oELZX2aTlptJV1t0OrJP4W5 vLaBNlD0/FwPxLu+6WzEEw72F9J+udR/6X0spO0Vc+SGt3ca3YXOoZCcQwMTJ67pNbBi qx1a8Xz31WGxo6sf7XXXGG0UEbPHlXKAJ9QBKSr2R6tPsOFbuHKyqnxFXMKrcGixJ5fp ixKIfqpOwv3f8v7uHAbgbddmjDR93Kn1BbMkUvN7p15OgsSy9ETY/6dGd2RaFSzhfKRZ FB5h2QBAaTk/OHg+TVPd1ultHgVMr6g1cdrUuSEyVVoP4uqwcsF8KBJs23McNQntBSHW ojuA== 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; bh=C3haMee7YmqREAzHZy1ZKvBroRHoO2dLVTtheBUoNec=; b=XXHFoE96BVZNQM1SSiwyLxDtYYwuPk2czv1WB/I1wBIashjQBvp7mEj2KdWsCFQTfE gnAIKeL0o/RR3A63Q9SupdNQSXHwYj9bMbH7a5511ONMzxrphAAHNkgGsE59Rme+Pnsx hZYenepNUFWCp1U9Q7XmFme3AaSHno0O1pWXUt64XQs451QZUErF8t98cSlJoV5nT076 RZHD8Yf3JcA2/74DqZ2jVXlD2VZ2sSXN0efUFFD8ZVdUA33q3W0qOA08Pxz01vU6l4HH 3LXnJGz3iX09lo8WAEhtr168G9+YvqlW1wntrOsocCBTjL0iwjk+RGLV7LhrX/v8DMF1 MAQw== X-Gm-Message-State: ALyK8tLoWx37iMymPAQDhoPIxmgYTCRofmyA9w/JZ3M1pi+F+d5fDgrboQgIvKWFInt3zQ== X-Received: by 10.194.161.196 with SMTP id xu4mr12424159wjb.175.1467642883951; Mon, 04 Jul 2016 07:34:43 -0700 (PDT) Original-Received: from keima.localdomain (x2f2aa33.dyn.telefonica.de. [2.242.170.51]) by smtp.gmail.com with ESMTPSA id bc9sm2365614wjc.45.2016.07.04.07.34.43 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Jul 2016 07:34:43 -0700 (PDT) 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:95330 Archived-At: This is a multi-part message in MIME format. --===============0713905060014750307== Content-Type: multipart/alternative; boundary="------------000404000205040305000805" This is a multi-part message in MIME format. --------------000404000205040305000805 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Mohammad Hossein Bateni > 4. Juli 2016 um 07:13 > Hi, > > Can one use {push,pop}background to save/restore backgrounds for > header*text and/or footer*text areas? I'm trying to typeset a > document where one page has a special background, which I set using > \setupbackgrounds[header][text][background=color,backgroundcolor=gray]. > Can I go back to the default setting afterwards or do I need to > specify it explicitly. I know I can save whatever I put in > \setupbackgrounds[page] using \pushbackground[page] and > \popbackground. I could not get it to work with header/footer. > > \setupcolors[state=start] > \showframe > \setupbackgrounds[header][text][background=color,backgroundcolor=yellow] > > \starttext > > One > \page > > %\pushbackground[page] > \pushbackground[header][text] \pushbackground[headertext] Wolfgang --------------000404000205040305000805 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
4.= =20 Juli 2016 um 07:13
Hi,

Can one use {push,pop}background to=20 save/restore backgrounds for header*text and/or footer*text areas?=C2=A0 = I'm=20 trying to typeset a document where one page has a special background,=20 which I set using=20 \setupbackgrounds[header][text][background=3Dcolor,backgroundcolor=3Dgray= ].=C2=A0 Can I go back to the default setting afterwards or do I need to specify it explicitly.=C2=A0 I know I can save whatever I put in=20 \setupbackgrounds[page] using \pushbackground[page] and \popbackground.=C2= =A0 I could not get it to work with header/footer.

\setupcolors[sta= te=3Dstart]
\showframe
\setupbackgrounds[header][text][background=3D= color,backgroundcolor=3Dyellow]

\starttext

One
\page
=
%\pushbackground[page] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0
\pushbackground[header][text]
\pushbackground[headertext]

Wolfgang
--------------000404000205040305000805-- --===============0713905060014750307== 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= --===============0713905060014750307==--