From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93914 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \setupsectionblock and \setupbackgrounds page-break problem Date: Sun, 28 Feb 2016 22:11:01 +0100 Message-ID: <56D36265.6070907@gmail.com> References: <6A79DCA3-0983-4CD6-B578-A9AFFCA2908D@csiro.au> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7285248896046066433==" X-Trace: ger.gmane.org 1456693913 17421 80.91.229.3 (28 Feb 2016 21:11:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Feb 2016 21:11:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 28 22:11:42 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 1aa8cv-0003qW-3p for gctc-ntg-context-518@m.gmane.org; Sun, 28 Feb 2016 22:11:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 502297589; Sun, 28 Feb 2016 22:11:17 +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 bZeVbJwoavoB; Sun, 28 Feb 2016 22:11:16 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 8047975A7; Sun, 28 Feb 2016 22:11:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4B5C87584 for ; Sun, 28 Feb 2016 22:11:15 +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 JFowq8EUWT_r for ; Sun, 28 Feb 2016 22:11:14 +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 2A6C97583 for ; Sun, 28 Feb 2016 22:11:03 +0100 (CET) Original-Received: by mail-wm0-f42.google.com with SMTP id l68so13615688wml.0 for ; Sun, 28 Feb 2016 13:11:03 -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; bh=O0ESfXkxc2yYnPdS3rDMfUzxnGiIboer94wLQ2zaTVw=; b=uWHnJEfMvmnVel0eUpuFuBwjv2b0scya/AHbAWpQL6U4LDJESgYXHsKEN7w77HjHIn 4HtVBZ5kddtYPN66I1HgJrUDN421LOBb3RhJFU2rXCxNK6eU2RHngAcBWwfkAVIpc7e2 sme85YP3rBPe9zhz8B7mvIYx/a9Vn4JMX5A1NOisRy5C2FfsED6p5OQ69F7LQG1NoOjF ZMpRFLYSSCzKz/gACLqOWz+o3qF3eQl2FGplCzWrdHFPmtlALPwFtMZ87LMIJRr95eqz dpZg2Hi18HvOF9prndMy7cMIShRhJNRboGjsHngv9HPM2dehA7e90N8umr65vKgGg6Kj uj3A== 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=O0ESfXkxc2yYnPdS3rDMfUzxnGiIboer94wLQ2zaTVw=; b=bt0UPvGJkIJf4lVSRYvsrkgyt/hgVRUlglRrMOztFzHal+yWS56NYIp5yDUYPHBRyC /GNfRx/3zdRCp7Io1jBUv7xgI43IM1O1NcXcfE57eFVlF9iHOEzIjQoVUu9PNxy6Dlod gd1i/1OT0Zk613H2wVZItVpLXkXzABv+IMacpzRHb105YFQVc9kRhSxwzrf0asUeIvWU +g69h2XMVHNUuNuxHSUxlYUrxAe1oIKZIVZgIVURDtrTolH5h64sTsQgQmDsOSs4kVit wRvAkIa0eiY2e8wl1kwHqGw9Lw8lSrZ+l4dSWCQ+ThZMnbU+mXn1rNzvfPdB6ocZkVUs tE4w== X-Gm-Message-State: AD7BkJI3Ipt8UXqAvzAT4LL/87KBiO+HT/Fg7J56neG0fqArNRS4Zk4udROlqP01ltThCA== X-Received: by 10.194.109.161 with SMTP id ht1mr2096055wjb.43.1456693863654; Sun, 28 Feb 2016 13:11:03 -0800 (PST) Original-Received: from keima.localdomain (x2f278d0.dyn.telefonica.de. [2.242.120.208]) by smtp.gmail.com with ESMTPSA id hx10sm15035066wjb.25.2016.02.28.13.11.02 for (version=TLSv1/SSLv3 cipher=OTHER); Sun, 28 Feb 2016 13:11:03 -0800 (PST) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <6A79DCA3-0983-4CD6-B578-A9AFFCA2908D@csiro.au> 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:93914 Archived-At: This is a multi-part message in MIME format. --===============7285248896046066433== Content-Type: multipart/alternative; boundary="------------090506070309010007050200" This is a multi-part message in MIME format. --------------090506070309010007050200 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Robin.Kirkham@csiro.au > 28. Februar 2016 um 14:49 > Folks, > > I want \startfrontmatter to trigger a background image, but I can only=20 > get this to appear if I use page=3Dyes (see example below). > > However, I don=E2=80=99t want any page break between the front-matter a= nd=20 > body-matter. If I use page=3Dno (as in the line commented out) this pag= e=20 > break disappears =E2=80=94 but so does the background image! > > How can I get the background behind the page where the front-matter=20 > text appears, but with no page break before the body-matter? Set the page background outside of the sectionblock. \setupexternalfigures[location=3Ddefault] \definelayer[frontbackground] \setupbackgrounds[page][background=3Dfrontbackground] \startsectionblockenvironment[frontpart] =20 \setlayer[frontbackground]{\externalfigure[mill][width=3D\paperwidth,heig= ht=3D\paperheight]} \stopsectionblockenvironment \setupsectionblock[frontpart][page=3Dno] \setupsectionblock[bodypart][page=3Dno] \starttext \startfrontmatter Should be on a first page \stopfrontmatter \startbodymatter Should follow frontmatter with no page break \stopbodymatter \stoptext Wolfgang --------------090506070309010007050200 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
28= .=20 Februar 2016 um 14:49
Folks,

I want=20 \startfrontmatter to trigger a background image, but I can only get this to appear if I use page=3Dyes (see example below).

However, I=20 don=E2=80=99t want any page break between the front-matter and body-matte= r. If I use page=3Dno (as in the line commented out) this page break disappears = =E2=80=94 but so does the background image!

How can I get the background=20 behind the page where the front-matter text appears, but with no page=20 break before the body-matter?
Set the page background outside of the sectionblock.

\setupexternalfigures[location=3Ddefault]

\definelayer[frontbackground]

\setupbackgrounds[page][background=3Dfrontbackground]

\startsectionblockenvironment[frontpart]
=C2=A0=C2=A0=C2=A0=20 \setlayer[frontbackground]{\externalfigure[mill][width=3D\paperwidth,heig= ht=3D\paperheight]}
\stopsectionblockenvironment

\setupsectionblock[frontpart][page=3Dno]
\setupsectionblock[bodypart][page=3Dno]

\starttext

\startfrontmatter
Should be on a first page
\stopfrontmatter

\startbodymatter
Should follow frontmatter with no page break
\stopbodymatter

\stoptext

Wolfgang
--------------090506070309010007050200-- --===============7285248896046066433== 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= --===============7285248896046066433==--