From: Henning Hraban Ramm <texml@fiee.net>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: how to define an environment with key=value arguments
Date: Fri, 8 Sep 2023 19:37:11 +0200 [thread overview]
Message-ID: <63c413cf-3949-b7f1-b8fc-7dd2e243281f@fiee.net> (raw)
In-Reply-To: <4c5dc0dc-c27a-7605-a360-47c8387dc5f8@fiee.net>
Am 08.09.23 um 17:02 schrieb Henning Hraban Ramm:
>> We can discuss the details next week and you put the resulting
>> template on the wiki.
>
> Ah, I guess I understand the template mechanism. Yet again glorious
> setups. Will probably manage.
So far:
\definepageinjection[chapter:start][
page=left,
alternative=setups,
setups=frontispiz,
color=white,
background=color,
backgroundcolor=Eifel,
]
\startsetups[frontispiz]
\starttransparent[tlumi]%
\externalfigure[\structureuservariable{image}][
width=\measure{MaxWidth},
]%
\stoptransparent%
\stopsetups
\setuphead[chapter][
page=right,
style=\ChapterFont,
beforesection={\pageinjection[chapter:start]},
command=\ChapterStart,
before={\startcolumnset[Spalten]},
after={\vskip-\lineheight}, % fix column start
inbetween=,
aftersection={\stopcolumnset},
]
\startchapter[title={Prolog 2: Reiseführer}][
motto={(quotation.}}, % used in \ChapterStart
image={00 Lavakeller Mendig g}, % wrong
blank=2,
]
Not a MWE, I know.
Here’s a screenshot:
https://yemaya.fiee.net/s/G2NcwE8qQrLAx8B
(Funny, I never needed all of before, after, beforesection and
aftersection so far.)
The injection is a frame, that’s great, because I can set the
background, and \externalfigure starts at (0,0).
But it uses its own page size, I don’t understand why. I need the
bleed/trim area.
If I use \setlayer in the setup, the content gets placed on the next
page, i.e. under the text.
\structureuservariable{image} in the setup gets the value from the
_next_ chapter. Maybe the approach in from the source with
\dummyparameter\c!name
would work better, but I don’t know how to transfer it.
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2023-09-08 17:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-08 10:22 [NTG-context] " Henning Hraban Ramm
2023-09-08 10:35 ` [NTG-context] " Wolfgang Schuster
2023-09-08 11:09 ` Henning Hraban Ramm
2023-09-08 14:21 ` Wolfgang Schuster
2023-09-08 15:02 ` Henning Hraban Ramm
2023-09-08 17:37 ` Henning Hraban Ramm [this message]
2023-09-09 10:56 ` Henning Hraban Ramm
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=63c413cf-3949-b7f1-b8fc-7dd2e243281f@fiee.net \
--to=texml@fiee.net \
--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).