ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
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: Sat, 9 Sep 2023 12:56:31 +0200	[thread overview]
Message-ID: <9325c09d-f2ae-74d1-a594-4121e918048b@fiee.net> (raw)
In-Reply-To: <63c413cf-3949-b7f1-b8fc-7dd2e243281f@fiee.net>

Am 08.09.23 um 19:37 schrieb Henning Hraban Ramm:

> 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.

I gave up, ran into too many problems.

Tried to avoid injections and put everything in before/beforesection 
macros, but \structureuservariable there also always picks up the values 
from the next chapter (while I would expect the current or maybe the 
previous).

So I copy-pasted the whole bunch of ugly commands in front of every 
chapter, and it works.

It’s only for one book with 18 chapters, doesn’t make much sense to 
spend even more time on a more elegant solution.

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
___________________________________________________________________________________

      reply	other threads:[~2023-09-09 10:59 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
2023-09-09 10:56           ` Henning Hraban Ramm [this message]

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=9325c09d-f2ae-74d1-a594-4121e918048b@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).