From: <Robin.Kirkham@csiro.au>
To: <ntg-context@ntg.nl>
Subject: \setupsectionblock and \setupbackgrounds page-break problem
Date: Sun, 28 Feb 2016 13:49:16 +0000 [thread overview]
Message-ID: <6A79DCA3-0983-4CD6-B578-A9AFFCA2908D@csiro.au> (raw)
Folks,
I want \startfrontmatter to trigger a background image, but I can only get this to appear if I use page=yes (see example below).
However, I don’t want any page break between the front-matter and body-matter. If I use page=no (as in the line commented out) this page break disappears — but so does the background image!
How can I get the background behind the page where the front-matter text appears, but with no page break before the body-matter?
Robin
\setupexternalfigures[location=default]
\definelayer[frontbackground]
\setlayer[frontbackground]{%
\externalfigure[mill.png]
[width=\paperwidth,height=\paperheight]
}
\unexpanded\def\frontpartbefore{
\setupbackgrounds[page]
[background=frontbackground]
}
\setupsectionblock[frontpart][page=yes,before=\frontpartbefore]
%\setupsectionblock[frontpart][page=no,before=\frontpartbefore]
\setupsectionblock[bodypart][page=no]
\starttext
\startfrontmatter
Should be on a first page
\stopfrontmatter
\startbodymatter
Should follow frontmatter with no page break
\stopbodymatter
\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2016-02-28 13:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-28 13:49 Robin.Kirkham [this message]
2016-02-28 21:11 ` Wolfgang Schuster
[not found] <mailman.683.1456693876.2231.ntg-context@ntg.nl>
2016-02-29 8:33 ` Robin.Kirkham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6A79DCA3-0983-4CD6-B578-A9AFFCA2908D@csiro.au \
--to=robin.kirkham@csiro.au \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).