On Wed, Oct 16 2024, Henning Hraban Ramm wrote: >> I use img.scan() for that. > > are you sure that your code works with LMTX? Hi Hraban, No, sorry, I didn’t test it... > Find attached my version. Thanks, I have integrated your ideas in a new version here attached. > It seems to work, but only for the first instance of an image, Yes, you need to patch the file grph-inc.lmt: https://lists.contextgarden.net/archives/list/ntg-context@ntg.nl/message/ES7Q57MU5UIEV2B2AWEAPR66MMXI6ZHY/ Cheers, -- Peter