* issue with images in frames
@ 2019-10-17 19:51 Pablo Rodriguez
2019-10-17 21:31 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Pablo Rodriguez @ 2019-10-17 19:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
Dear list,
I have the following sample:
\setupexternalfigures[location=default]
\starttext
\startxtable[option={stretch, width}]
\startxrow
\startxcell
\dontleavehmode\dorecurse{100}{
\externalfigure[cow.pdf][scale=50] }
\stopxcell
\startxcell
\input zapf
\stopxcell
\stopxrow
\stopxtable
\stoptext
Some time ago, there were no difference between images and text
remaining inside the frame.
Have I hit a bug or what am I missing there?
Many thanks for your help,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: issue with images in frames
2019-10-17 19:51 issue with images in frames Pablo Rodriguez
@ 2019-10-17 21:31 ` Wolfgang Schuster
2019-10-18 8:08 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2019-10-17 21:31 UTC (permalink / raw)
To: mailing list for ConTeXt users, Pablo Rodriguez
Pablo Rodriguez schrieb am 17.10.2019 um 21:51:
> Dear list,
>
> I have the following sample:
>
> \setupexternalfigures[location=default]
> \starttext
> \startxtable[option={stretch, width}]
> \startxrow
> \startxcell
> \dontleavehmode\dorecurse{100}{
> \externalfigure[cow.pdf][scale=50] }
> \stopxcell
> \startxcell
> \input zapf
> \stopxcell
> \stopxrow
> \stopxtable
> \stoptext
>
> Some time ago, there were no difference between images and text
> remaining inside the frame.
Not a solution but closer to the problem.
Commenting the \local(left|right)box settings brings the line breaks back.
\everyforgetall\emptytoks
\appendtoks
\localleftbox {}%
\localrightbox{}%
\to \everyforgetall
\setupexternalfigures[location=default]
\starttext
\vbox
{\dontleavehmode
\dorecurse{100}
{\externalfigure[cow.pdf][scale=50] }}
\stoptext
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: issue with images in frames
2019-10-17 21:31 ` Wolfgang Schuster
@ 2019-10-18 8:08 ` Hans Hagen
2019-10-18 14:19 ` Pablo Rodriguez
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2019-10-18 8:08 UTC (permalink / raw)
To: mailing list for ConTeXt users, Wolfgang Schuster, Pablo Rodriguez
On 10/17/2019 11:31 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 17.10.2019 um 21:51:
>> Dear list,
>>
>> I have the following sample:
>>
>> \setupexternalfigures[location=default]
>> \starttext
>> \startxtable[option={stretch, width}]
>> \startxrow
>> \startxcell
>> \dontleavehmode\dorecurse{100}{
>> \externalfigure[cow.pdf][scale=50] }
>> \stopxcell
>> \startxcell
>> \input zapf
>> \stopxcell
>> \stopxrow
>> \stopxtable
>> \stoptext
>>
>> Some time ago, there were no difference between images and text
>> remaining inside the frame.
>
> Not a solution but closer to the problem.
>
> Commenting the \local(left|right)box settings brings the line breaks back.
>
> \everyforgetall\emptytoks
>
> \appendtoks
> \localleftbox {}%
> \localrightbox{}%
> \to \everyforgetall
>
> \setupexternalfigures[location=default]
>
> \starttext
>
> \vbox
> {\dontleavehmode
> \dorecurse{100}
> {\externalfigure[cow.pdf][scale=50] }}
>
> \stoptext
Ah, a pretty clever analysis!
This side effect has puzzled me for a while (adding an \allowbreak also
works). The solution is simple:
- i don't reset when not set (only happens in some special delimiters case)
- i added a safeguard to luametatex (we can't change luatex behaviour)
not to inject an unneeded local par node (which is the cause of the
problem) when there is no local box in use
(As setting these boxes can be changed mid par their state is registered
in the node list in order to be taken into account when a paragraph is
made. It's a bit pain-in-the-butt mechanism with potential side effects,
also in terms of memory management. When it was incorporated (irr it
comes from aleph) it was basically broken but stepwise it got fixed. So,
it seems another corner case had to be catched. Thanks for noticing.)
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 / 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: issue with images in frames
2019-10-18 8:08 ` Hans Hagen
@ 2019-10-18 14:19 ` Pablo Rodriguez
0 siblings, 0 replies; 4+ messages in thread
From: Pablo Rodriguez @ 2019-10-18 14:19 UTC (permalink / raw)
To: ntg-context
On 10/18/19 10:08 AM, Hans Hagen wrote:
> On 10/17/2019 11:31 PM, Wolfgang Schuster wrote:
>> [...]
> > Ah, a pretty clever analysis!
> [...]
> (As setting these boxes can be changed mid par their state is registered
> in the node list in order to be taken into account when a paragraph is
> made. It's a bit pain-in-the-butt mechanism with potential side effects,
> also in terms of memory management. When it was incorporated (irr it
> comes from aleph) it was basically broken but stepwise it got fixed. So,
> it seems another corner case had to be catched. Thanks for noticing.)
Many thanks for your help and for the fix in LMTX, Wolfgang and Hans.
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-10-18 14:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-17 19:51 issue with images in frames Pablo Rodriguez
2019-10-17 21:31 ` Wolfgang Schuster
2019-10-18 8:08 ` Hans Hagen
2019-10-18 14:19 ` Pablo Rodriguez
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).