From: jbf via ntg-context <ntg-context@ntg.nl>
To: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>,
mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: jbf <roma83537@gmail.com>
Subject: Re: help with facing page image
Date: Thu, 10 Mar 2022 09:02:17 +1100 [thread overview]
Message-ID: <fdccb785-2c71-1ff2-0af8-6c3a4bbfa295@gmail.com> (raw)
In-Reply-To: <040448ab-6a61-44f1-5231-eada85494199@gmail.com>
Am endeavouring to explore Wolfgang's very 'elegant' solution to this
facing page challenge. The exploration has included a look at
base/mkxl/page-inj.mklx (thanks Sreeram for reminding me of this) where
I see immediately that the approach is experimental and where it says
also that 'probably more alternatives will be added'. I wonder if that
last phrase also includes the ability to manipulate the image(s) either
generally or in individual cases?
So, for example., say I need (and in fact I do!) to change some aspect
of individual images, e.g. I might want to scale=500, or fiddle with
width/height of a particular image. At the moment I cannot see a way of
doing this for each image. I wondered if the commented out setups in the
response to this question might be a clue, but so far haven't been able
to get that to have any effect.
Julian
On 8/3/22 05:35, Wolfgang Schuster wrote:
> 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-09 22:02 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
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 [this message]
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=fdccb785-2c71-1ff2-0af8-6c3a4bbfa295@gmail.com \
--to=ntg-context@ntg.nl \
--cc=roma83537@gmail.com \
--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).