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: what about "textdisplay"?
Date: Tue, 2 Apr 2024 07:44:19 +0200	[thread overview]
Message-ID: <db8338f3-41c6-481b-bf58-5e5527e60d5a@fiee.net> (raw)
In-Reply-To: <552ddfa7-7a14-4f60-0211-22e2e4f6610c@gmail.com>

Am 01.04.24 um 18:54 schrieb Wolfgang Schuster:
> Henning Hraban Ramm schrieb am 01.04.2024 um 18:29:
>> Am 01.04.24 um 18:21 schrieb Wolfgang Schuster:
>>> Henning Hraban Ramm schrieb am 01.04.2024 um 17:19:
>>>> A while ago, I was pointed (by Wolfgang or Hans, I guess) to 
>>>> \start/stoptextdisplay to enhance whitespace handling around images.
>>>
>>> My guess is Mikael because I saw the command the first time in the 
>>> source of a presentation from him.
>>
>> Oh, that’s probably where I saw it, too.
> 
> Here is a short example which two other solution to get a similar effect 
> as \starttextdisplay.
> 
> \usemodule[visual]
> 
> \setupfloat[figure][location=left]
> 
> \starttext
> 
> \fakewords{10}{20}
> \startlinecorrection
> \fakeimage{4cm}{3cm}{6cm}{4cm}
> \stoplinecorrection
> \fakewords{10}{20}
> 
> \blank[2*line]
> 
> \fakewords{10}{20}
> \startplacefigure[location={force,none}]
> \fakeimage{4cm}{3cm}{6cm}{4cm}
> \stopplacefigure
> \fakewords{10}{20}
> 
> \blank[2*line]
> 
> \fakewords{10}{20}
> \starttextdisplay
> \fakeimage{4cm}{3cm}{6cm}{4cm}
> \stoptextdisplay
> \fakewords{10}{20}
> 
> \stoptext

Thank you!
And when would you suggest what?

A float I’d use only if I need caption/numbering or the floating feature.

When I tried line correction, it never helped; probably I used it wrong 
(e.g. around section titles).

>>>> I wanted to document it, but can’t find it in the sources:
>>>
>>> The definition is in spac-ver.mkxl.
>>
>> Thank you!
>>
>> So, "context --find" does not what I thought it would.
> 
> AFAIR the find option searches only the manual sources.

Looks like it. So I should use grep (mtxrun --script grep).

Hraban

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

  reply	other threads:[~2024-04-02  5:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-01 15:19 [NTG-context] " Henning Hraban Ramm
2024-04-01 16:21 ` [NTG-context] " Wolfgang Schuster
2024-04-01 16:29   ` Henning Hraban Ramm
2024-04-01 16:54     ` Wolfgang Schuster
2024-04-02  5:44       ` Henning Hraban Ramm [this message]
2024-04-02  8:28         ` 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=db8338f3-41c6-481b-bf58-5e5527e60d5a@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).