* [NTG-context] what about "textdisplay"?
@ 2024-04-01 15:19 Henning Hraban Ramm
2024-04-01 16:21 ` [NTG-context] " Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: Henning Hraban Ramm @ 2024-04-01 15:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
A while ago, I was pointed (by Wolfgang or Hans, I guess) to
\start/stoptextdisplay to enhance whitespace handling around images.
I wanted to document it, but can’t find it in the sources:
$ context --find=textdisplay
mtx-context |
…/tex/texmf-context/doc/context/sources/general/manuals/ontarget/ontarget-profiles.tex
mtx-context |
mtx-context | 196 \starttextdisplay
…
mtx-context | 277 \stoptextdisplay
mtx-context |
mtx-context |
…/tex/texmf-context/doc/context/sources/general/manuals/ontarget/ontarget-standardize.tex
mtx-context |
mtx-context | 888 \starttextdisplay
…
mtx-context | 941 \stoptextdisplay
mtx-context |
These two documents use it and compile flawlessly.
What’s on?
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: what about "textdisplay"?
2024-04-01 15:19 [NTG-context] what about "textdisplay"? Henning Hraban Ramm
@ 2024-04-01 16:21 ` Wolfgang Schuster
2024-04-01 16:29 ` Henning Hraban Ramm
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2024-04-01 16:21 UTC (permalink / raw)
To: mailing list for ConTeXt users, Henning Hraban Ramm
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.
> I wanted to document it, but can’t find it in the sources:
The definition is in spac-ver.mkxl.
> $ context --find=textdisplay
> [...]
>
> These two documents use it and compile flawlessly.
%%%% begin \definetextdisplay
1 2 3
\definetextdisplay [...] [...] [..,..=..,..]
OPT OPT
1 NAME
2 NAME
3 inherits: \setuptextdisplay
%%%% end \definetextdisplay
%%%% begin \setuptextdisplay
1 2
\setuptextdisplay [...,...] [..,..=..,..]
OPT
1 NAME
2 before = COMMAND
after = COMMAND
factor = NUMBER
%%%% end \setuptextdisplay
%%%% begin \starttextdisplay
*
\starttextdisplay [..,..=..,..] ... \stoptextdisplay
OPT
* inherits: \setuptextdisplay
%%%% end \starttextdisplay
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: what about "textdisplay"?
2024-04-01 16:21 ` [NTG-context] " Wolfgang Schuster
@ 2024-04-01 16:29 ` Henning Hraban Ramm
2024-04-01 16:54 ` Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: Henning Hraban Ramm @ 2024-04-01 16:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
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.
>> 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.
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: what about "textdisplay"?
2024-04-01 16:29 ` Henning Hraban Ramm
@ 2024-04-01 16:54 ` Wolfgang Schuster
2024-04-02 5:44 ` Henning Hraban Ramm
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2024-04-01 16:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
>>> 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.
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: what about "textdisplay"?
2024-04-01 16:54 ` Wolfgang Schuster
@ 2024-04-02 5:44 ` Henning Hraban Ramm
2024-04-02 8:28 ` Hans Hagen via ntg-context
0 siblings, 1 reply; 6+ messages in thread
From: Henning Hraban Ramm @ 2024-04-02 5:44 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: what about "textdisplay"?
2024-04-02 5:44 ` Henning Hraban Ramm
@ 2024-04-02 8:28 ` Hans Hagen via ntg-context
0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen via ntg-context @ 2024-04-02 8:28 UTC (permalink / raw)
To: ntg-context; +Cc: Hans Hagen
On 4/2/2024 7:44 AM, Henning Hraban Ramm wrote:
> 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).
linecorrection is older, textdisplay newer and both are mainly meant to
position boxed content (like images) in a way so that spacing looks
acceptable ... they are vboxes with spacing around them so not meant for
e.g. section heads or whatever text; it's for images, framed stuff,
maybe bTABLE etc
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-04-02 8:31 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-01 15:19 [NTG-context] what about "textdisplay"? 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
2024-04-02 8:28 ` Hans Hagen via ntg-context
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).