From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95327 Path: news.gmane.org!not-for-mail From: Mohammad Hossein Bateni Newsgroups: gmane.comp.tex.context Subject: \pushbackground for header/footer Date: Mon, 4 Jul 2016 01:13:06 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0715255663400006976==" X-Trace: ger.gmane.org 1467609230 25432 80.91.229.3 (4 Jul 2016 05:13:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2016 05:13:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 04 07:13:37 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 1bJwCN-0003wg-Ba for gctc-ntg-context-518@m.gmane.org; Mon, 04 Jul 2016 07:13:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 83ACF10BCA; Mon, 4 Jul 2016 07:13:20 +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 QsNieOH-Z-aX; Mon, 4 Jul 2016 07:13:19 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id C967F10C1C; Mon, 4 Jul 2016 07:13:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EF2D810BE1 for ; Mon, 4 Jul 2016 07:13:18 +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 wGdHcQ-Xy3Do for ; Mon, 4 Jul 2016 07:13:18 +0200 (CEST) Original-Received: from mail-oi0-f48.google.com (mail-oi0-f48.google.com [209.85.218.48]) (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 4058110BCA for ; Mon, 4 Jul 2016 07:13:08 +0200 (CEST) Original-Received: by mail-oi0-f48.google.com with SMTP id r2so181640436oih.2 for ; Sun, 03 Jul 2016 22:13:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=IlCt95UermHTK+7Yafsv94KxQoO0LeHqSKCsXszPfAU=; b=XO2h+nje96oKvkRkxLjjL1aLJrqsp5grFPn30t7qShxAGjI/68LnwvRZC3YEyd1QU/ u+zfem/hUk9a0HvXs9O3sUcWVC53LJvMOy0aCPqwgv+HeDEIiUeP1cYpugPkANQ/p1Kv TqrFu5ZYTCebMf9HQHIsE9f+JscjLlAUC8GLKLSzS/9Uu9hZ2g/fSdr0Wcsc3MlDRehW B68NSBQGtZG3gemDQAVgsG/Lsh/otHNpZB+FutQ7I5Q/fWoZYZwpFaZ2M0gtySgIRE/u wt/zaroCQZhPJDdSRwH8ZCrgNmnAfrZvxoxb6jOWMex3sImusTrSYvrbZiLgKF9k82wo 37YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=IlCt95UermHTK+7Yafsv94KxQoO0LeHqSKCsXszPfAU=; b=DT3SH4PJo+7LbaStnkisPaxM+F5IgPFJ4B8CYjOozDwVMH+P4OGNuWztnjz1iZCdwo TbRvIkGP08kBR9MhtSEGOyywSZfFsmZCJf4WPfAeHdCOTa2Pzrld3jTeeILTl0IpEtzd 2DbnYC0FLgjZQ9fxKKtzpZeFR9andDc79cAUoWqErHmg68HQ0Hgc6BpGlIH5BLRpnFoE RB7k2jPwXYwP92Yfwdo9rbhyY/1EulxzZYOAsFzGoq5OxD8YC2TJr9YLJ2lZvMkepfRJ Aiqoa46c4WMDlNMGUpBsMFl3Qpf23mFKTPMPk/3TMpECdu3UdEBuBnD4RbJIBN/S1c1M HweA== X-Gm-Message-State: ALyK8tLG23frnSRkJEPt4xca0+q4m8P9reA4YmWW4TgJF9sCzZxGolYnQVaWya34nKZEDyUJnwdz4YRs/vP5sg== X-Received: by 10.157.27.243 with SMTP id v48mr651826otv.96.1467609186442; Sun, 03 Jul 2016 22:13:06 -0700 (PDT) Original-Received: by 10.157.46.104 with HTTP; Sun, 3 Jul 2016 22:13:06 -0700 (PDT) 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:95327 Archived-At: --===============0715255663400006976== Content-Type: multipart/alternative; boundary=001a113e92123a34540536c86429 --001a113e92123a34540536c86429 Content-Type: text/plain; charset=UTF-8 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] \setupbackgrounds[header][text][background=color,backgroundcolor=gray] Two \page \popbackground Three \stoptext Thanks, MHB --001a113e92123a34540536c86429 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

Can one use {push,pop}background to= save/restore backgrounds for header*text and/or footer*text areas?=C2=A0 I= 'm trying to typeset a document where one page has a special background= , which I set using \setupbackgrounds[header][text][background=3Dcolor,back= groundcolor=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 p= ut in \setupbackgrounds[page] using \pushbackground[page] and \popbackgroun= d.=C2=A0 I could not get it to work with header/footer.

\setupcolo= rs[state=3Dstart]
\showframe
\setupbackgrounds[header][text][backgrou= nd=3Dcolor,backgroundcolor=3Dyellow]

\starttext

One
\page<= br>
%\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]
\setupbackgrounds[header][te= xt][background=3Dcolor,backgroundcolor=3Dgray]

Two
\page
\popb= ackground

Three
\stoptext


Thanks,
MHB
--001a113e92123a34540536c86429-- --===============0715255663400006976== 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= --===============0715255663400006976==--