From: Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
To: jbf via ntg-context <ntg-context@ntg.nl>
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: Re: repeat layer recto pages
Date: Tue, 9 Nov 2021 16:05:31 +0100 [thread overview]
Message-ID: <39ddf8ba-da3a-bead-f405-741a4ded4cf6@gmx.es> (raw)
In-Reply-To: <3c99c470-e3d5-f75d-2e71-612380136a98@gmail.com>
On 11/9/21 4:18 AM, jbf via ntg-context wrote:
> I want a particular layer to repeat on recto pages only, but I don't
> want this to happen in frontmatter, only in bodymatter.
>
> This is what I have done, just before the first chapter after
> \startbodymatter (but unsuccessfully; the layer repeats for every page
> at the moment. I must have omitted something).
Hi Julian,
this is what you want:
\startsectionblockenvironment[bodypart]
\setupbackgrounds
[rightpage]
[background=butterfly]
\stopsectionblockenvironment
> \startbodymatter
>
> \setupbackgrounds
> [rightpage]
> [background=butterfly]
>
> \startchapter[title={Chapter title}]
> \definelayer[butterfly]
> [x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight]
> \setlayer[butterfly]
> [hoffset=.99\textwidth, voffset=1cm]
> {\externalfigure[bfly.jpg][width=1.5cm]}
> \setupbackgrounds[page][background=butterfly]
The last line adds backgrounds to every page. And without doublesided,
there are not right and left pages.
And you don’t need the \define and \setlayer after \startchapter.
A complete sample would read:
\setuppagenumbering[alternative=doublesided]
\definelayer[butterfly][state=repeat]
\setlayer[butterfly]
[hoffset=.99\textwidth, voffset=1cm]
{butterfly}
\startsectionblockenvironment[bodypart]
\setupbackgrounds
[rightpage]
[background=butterfly]
\stopsectionblockenvironment
\def\rubbish%
{\dorecurse{2}
{\chapter{Chapter}
\dorecurse{25}{\input knuth}}}
\starttext
\startfrontmatter
\rubbish
\stopfrontmatter
\startbodymatter
\rubbish
\stopbodymatter
\startappendices
\rubbish
\stopappendices
\startbackmatter
\rubbish
\stopbackmatter
\stoptext
I hope it helps,
Pablo
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2021-11-09 15:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-09 3:18 jbf via ntg-context
2021-11-09 15:05 ` Pablo Rodriguez via ntg-context [this message]
2021-11-09 22:12 ` jbf via ntg-context
2021-11-10 15:27 ` Pablo Rodriguez via ntg-context
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=39ddf8ba-da3a-bead-f405-741a4ded4cf6@gmx.es \
--to=ntg-context@ntg.nl \
--cc=oinos@gmx.es \
/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).