From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
jbf via ntg-context <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Subject: Re: help with facing page image
Date: Mon, 7 Mar 2022 19:35:15 +0100 [thread overview]
Message-ID: <040448ab-6a61-44f1-5231-eada85494199@gmail.com> (raw)
In-Reply-To: <fcd0b4a9-a358-004b-7dcb-9258d04b3351@gmail.com>
jbf via ntg-context schrieb am 07.03.2022 um 09:27:
> Appreciate your assistance. I'll do my best with what you offer here.
> Of course, I've always said these images are at the beginning, not
> "the end of their respective chapters" and I've already indicated how
> the images are named, simply as Chapter1.jpg and so on, so I'll need
> to work around these differences in your example. But with trial and
> error, let's hope I get there!
The example below uses a different mechanism to add images at the start
of a chapter. In the example you have to pass the name of image as
userdata argument of \startchapter but in the commented \setuphead
setting you can see how this can be automated.
%%%% begin example
% \definepageinjectionalternative
% [chapter:image]
% [renderingsetup=pageinjection:chapter:image]
%
% \startsetups [pageinjection:chapter:image]
% \clip
% [width=\framedwidth,height=\framedheight]
% {\centerbox{\externalfigure[\dummyparameter{name}][factor=min]}}
% \stopsetups
\definepageinjection
[chapter:start]
[empty]
[page=left]
\definepageinjection
[chapter:insert]
[previouspage]
[%alternative=chapter:image,
pagestate=stop]
\setuphead
[chapter]
[beforesection={\pageinjection[chapter:start]},
insidesection={\pageinjection[chapter:insert][name=\structureuservariable{image}]}]
% \setuphead
% [chapter]
% [beforesection={\pageinjection[chapter:start]},
%
insidesection={\pageinjection[chapter:insert][name={chapter\namedheadnumber{chapter}}]}]
\setuppagenumbering
[alternative=doublesided]
\setupexternalfigures
[location=default]
\starttext
\startchapter [title={Mill}] [image=mill]
\dorecurse{7}{\samplefile{lorem}}
\stopchapter
\startchapter [title={Mill}] [image=mill]
\dorecurse{11}{\samplefile{lorem}}
\stopchapter
\startchapter [title={Mill}] [image=mill]
\dorecurse{7}{\samplefile{lorem}}
\stopchapter
\stoptext
%%%% end example
Wolfgang
___________________________________________________________________________________
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:[~2022-03-07 18:35 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-07 3:49 jbf via ntg-context
2022-03-07 5:38 ` śrīrāma via ntg-context
2022-03-07 5:41 ` śrīrāma via ntg-context
2022-03-07 6:20 ` jbf via ntg-context
2022-03-07 7:01 ` śrīrāma via ntg-context
2022-03-07 8:27 ` jbf via ntg-context
2022-03-07 18:35 ` Wolfgang Schuster via ntg-context [this message]
2022-03-08 2:51 ` śrīrāma via ntg-context
2022-03-08 3:46 ` śrīrāma via ntg-context
2022-03-09 22:02 ` jbf via ntg-context
2022-03-10 5:35 ` Aditya Mahajan via ntg-context
2022-03-10 5:48 ` jbf via ntg-context
2022-03-10 6:51 ` śrīrāma via ntg-context
2022-03-10 8:49 ` jbf via ntg-context
2022-03-11 12:36 ` Wolfgang Schuster via ntg-context
2022-03-11 23:50 ` jbf via ntg-context
2022-03-08 0:52 ` jbf via ntg-context
2022-03-07 20:08 ` Bruce Horrocks via ntg-context
2022-03-07 20:23 ` Henning Hraban Ramm 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=040448ab-6a61-44f1-5231-eada85494199@gmail.com \
--to=ntg-context@ntg.nl \
--cc=wolfgang.schuster.lists@gmail.com \
/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).