ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Henning Hraban Ramm <texml@fiee.net>
Subject: cld, postponing and images
Date: Mon, 6 Sep 2021 23:04:38 +0200	[thread overview]
Message-ID: <CFD4F7A7-6F96-44BF-B267-ACF73EEC0EEF@fiee.net> (raw)

I think I tangled myself...

- I’ve a macro defined in Lua that uses fullpagemakeup and \setlayer to place an image on an empty page.
- This macro is called from within a postponing environment.
- I check figures.current().status.fullname if the image is found ...
- and then read xsize and ysize from figures.current().status.private

- I there is no image placed before the postponed ones, figures.current() is nil
– If I place one, figures.current() is always the last “normal” one, never that from my macro call.

– If I call context.getfiguredimensions({imagename}) within the macro where I calculate the size, and again before context.externalfigure(), then the images are found and have the right size according to figures.currents(), but...
- if I didn’t place the same image before anywhere, the previous image is used, and if there was none, the place just stays empty (no dummy box).

I don’t know how to resolve this, spent already the whole day to understand the problem this far.

At the moment my workaround is to place all used images somewhere outside of the visible page.


Hraban


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

                 reply	other threads:[~2021-09-06 21:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CFD4F7A7-6F96-44BF-B267-ACF73EEC0EEF@fiee.net \
    --to=ntg-context@ntg.nl \
    --cc=texml@fiee.net \
    /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).