From: Matthias Weber <matthiasweber64@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: Inline figures
Date: Mon, 15 Sep 2025 23:40:31 -0400 [thread overview]
Message-ID: <7A499D29-0838-4794-BD39-0D7E6BD92010@gmail.com> (raw)
In-Reply-To: <CAE0RQykwTpJqJnFaDECRtPy0uVBRG=RqL2nz7NjYnzzd9E1VUA@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 3418 bytes --]
Thanks Hans, Henning, and John,
This has been very helpful!
Matthias
> On Sep 15, 2025, at 4:32 AM, John Was <johnoxuk@gmail.com> wrote:
>
> Hello Matthias
>
> I'm still very inexperienced with Context - and will probably have to start again since I've been busy with other matters recently and have forgotten nearly everything - but the following clumsy code might work until some Contexpert comes up with a proper solution:
>
> Can the \im{12\times 9} rectangle be tiled with the\llap{\externalfigure[cow] [width=0pt,height=0pt,label={Here we have a picture of a cow}]} \externalfigure[cow.pdf][inline]{}-hexomino?
>
>
> If it is any good at all, it could be condensed into a cs such as:
>
> \intextlabel{Here we have a picture of a cow}
>
> (the cow figure could remain since it's always available and is only used to create an invisible (zero width and height) graphic).
>
>
> Best wishes
>
> John
>
>
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free.www.avg.com <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <x-msg://8/#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> On Mon, 15 Sept 2025 at 00:44, Matthias Weber <matthiasweber64@gmail.com <mailto:matthiasweber64@gmail.com>> wrote:
>> Dear All,
>>
>> I am occasionally using inline figures instead of characters/words where it seems suggestive and appropriate(to me), like in the example below:
>>
>> \setupexternalfigures[location=default]
>> \starttext
>> Can the \im{12\times 9} rectangle be tiled with the \externalfigure[cow.pdf][inline]{}-hexomino?
>> \stoptext
>>
>> (I am actually using instead of cow.pdf the attached file R-hexomino.pdf, in case someone is interested in what this is good for)
>>
>> Two questions: The inline figure is a little bit raised and too big. How can I lower and scale it?
>>
>> Also, adding alternativetext={Cow} after inline undoes the inline effect. Is it possible to have an alternative text for inline images?
>>
>> Or are there other options I should consider?
>>
>> Thanks,
>>
>> Matthias
>>
>>
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to the Wiki!
>>
>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
>> webpage : https://www.pragma-ade.nl <https://www.pragma-ade.nl/> / https://context.aanhet.net <https://context.aanhet.net/> (mirror)
>> archive : https://github.com/contextgarden/context
>> wiki : https://wiki.contextgarden.net <https://wiki.contextgarden.net/>
>> ___________________________________________________________________________________
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 6201 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2025-09-16 3:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-14 23:43 [NTG-context] " Matthias Weber
2025-09-15 6:28 ` [NTG-context] " Henning Hraban Ramm
2025-09-15 6:36 ` Henning Hraban Ramm
2025-09-15 8:32 ` John Was
2025-09-16 3:40 ` Matthias Weber [this message]
2025-09-15 15:14 ` Hans Hagen 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=7A499D29-0838-4794-BD39-0D7E6BD92010@gmail.com \
--to=matthiasweber64@gmail.com \
--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).