ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] floatcombinations seem to not work correctly after lmtx update
@ 2023-06-19 11:53 Gerion Entrup via ntg-context
  2023-06-22 13:21 ` Hans Hagen via ntg-context
  2023-08-01 17:34 ` [NTG-context] " Gerion Entrup
  0 siblings, 2 replies; 5+ messages in thread
From: Gerion Entrup via ntg-context @ 2023-06-19 11:53 UTC (permalink / raw)
  To: ntg-context; +Cc: Gerion Entrup


[-- Attachment #1.1.1: Type: text/plain, Size: 1437 bytes --]

Hi,

I recently updated my Context (lmtx). Unfortunately, I'm not aware of
the previous version anymore. The current one is 2023.06.04 18:58.

After the update one of my documents broke at floatcombinations.
The relevant code is this one:
```
\useMPlibrary[dum]
\setupcombinations[alternative=text]

\definefloat[subfigure][local=yes]
\setupcaption[subfigure][numberconversion=a, prefix=no, headseparator={)}]
\setuplabeltext[subfigure=]

\appendvalue{stopplacefigure}{\resetcounter[subfigure]}

\starttext
test sdlkf jlsdjf lksjdf
\startplacefigure[title=Test]
    \startfloatcombination[nx=3]
      \startplacesubfigure[title=Test]
        \externalfigure[dummy][width=0.3\textwidth]
      \stopplacesubfigure
      \startplacesubfigure[title=Test]
        \externalfigure[dummy][width=0.3\textwidth]
      \stopplacesubfigure
      \startplacesubfigure[title=Test]
        \externalfigure[dummy][width=0.3\textwidth]
      \stopplacesubfigure
    \stopfloatcombination
\stopplacefigure
lskdjf lskjfd lksjdfljsdkjf
\stoptext
```
In this minimal example everything works. However, in my real document
the subfigures have enormous space between them so just two pictures are
visible (see the attached png).

Do you have a clue, why this happens? Otherwise, I would take the
preamble of the real document and try to lower it down to have a
reproducible example (but that takes a lot of time, so I wanted to ask
beforehand).

Best,
Gerion

[-- Attachment #1.1.2: Screenshot_20230619_134802.png --]
[-- Type: image/png, Size: 63885 bytes --]

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [NTG-context] floatcombinations seem to not work correctly after lmtx update
  2023-06-19 11:53 [NTG-context] floatcombinations seem to not work correctly after lmtx update Gerion Entrup via ntg-context
@ 2023-06-22 13:21 ` Hans Hagen via ntg-context
  2023-07-06 11:13   ` Gerion Entrup
  2023-08-01 17:34 ` [NTG-context] " Gerion Entrup
  1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen via ntg-context @ 2023-06-22 13:21 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen

On 6/19/2023 1:53 PM, Gerion Entrup via ntg-context wrote:
> Hi,
> 
> I recently updated my Context (lmtx). Unfortunately, I'm not aware of
> the previous version anymore. The current one is 2023.06.04 18:58.
> 
> After the update one of my documents broke at floatcombinations.
> The relevant code is this one:
the fact that you don't see a) coudl point to some mismatsh in 
start/stop or { }

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://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: floatcombinations seem to not work correctly after lmtx update
  2023-06-22 13:21 ` Hans Hagen via ntg-context
@ 2023-07-06 11:13   ` Gerion Entrup
  0 siblings, 0 replies; 5+ messages in thread
From: Gerion Entrup @ 2023-07-06 11:13 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1.1: Type: text/plain, Size: 1838 bytes --]

Am Donnerstag, 22. Juni 2023, 15:21:12 CEST schrieb Hans Hagen via ntg-context:
> On 6/19/2023 1:53 PM, Gerion Entrup via ntg-context wrote:
> > Hi,
> > 
> > I recently updated my Context (lmtx). Unfortunately, I'm not aware of
> > the previous version anymore. The current one is 2023.06.04 18:58.
> > 
> > After the update one of my documents broke at floatcombinations.
> > The relevant code is this one:
> the fact that you don't see a) coudl point to some mismatsh in 
> start/stop or { }

I checked that again but don't think that this is the reason:
- This place is not the only one in the document where floatcombinations
  failed (there where 2 more, in fact all places with
  floatcombinations).
- It happened directly after the update of lmtx without changing the
  document. Before that, it looked fine.

I experienced around a little bit more. When I increase or decrease the
pictures in the document they shift around but the captions do not fit
to the pictures. Attached are the renderings for 1 picture (1.png), 2
pictures (2.png) up to 5 pictures.

This is the respective source code in the document for 3 pictures. I
simplified the title additionally so that there is no error.
"rendering.of.example.code.png" is the direct rendering of this specific
code:
```
\startplacefigure[title={foo},
                  location=top,
                  reference={fig:04-sstg-mapping}]
	\startfloatcombination[nx=3]
      	\startplacesubfigure[title=Test]
      	  \externalfigure[dummy][width=0.2\paperwidth]
      	\stopplacesubfigure
      	\startplacesubfigure[title=Test]
      	  \externalfigure[dummy][width=0.2\paperwidth]
      	\stopplacesubfigure
      	\startplacesubfigure[title=Test]
      	  \externalfigure[dummy][width=0.2\paperwidth]
      	\stopplacesubfigure
	\stopfloatcombination
\stopplacefigure
```

Gerion

[-- Attachment #1.1.2: 1.png --]
[-- Type: image/png, Size: 88820 bytes --]

[-- Attachment #1.1.3: 2.png --]
[-- Type: image/png, Size: 105968 bytes --]

[-- Attachment #1.1.4: 4.png --]
[-- Type: image/png, Size: 108400 bytes --]

[-- Attachment #1.1.5: rendering.of.example.code.png --]
[-- Type: image/png, Size: 46452 bytes --]

[-- Attachment #1.1.6: 5.png --]
[-- Type: image/png, Size: 92698 bytes --]

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

[-- Attachment #2: Type: text/plain, Size: 495 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: floatcombinations seem to not work correctly after lmtx update
  2023-06-19 11:53 [NTG-context] floatcombinations seem to not work correctly after lmtx update Gerion Entrup via ntg-context
  2023-06-22 13:21 ` Hans Hagen via ntg-context
@ 2023-08-01 17:34 ` Gerion Entrup
  2023-08-01 18:48   ` Hans Hagen
  1 sibling, 1 reply; 5+ messages in thread
From: Gerion Entrup @ 2023-08-01 17:34 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 608 bytes --]

Am Montag, 19. Juni 2023, 13:53:02 CEST schrieb Gerion Entrup via ntg-context:
> In this minimal example everything works. However, in my real document
> the subfigures have enormous space between them so just two pictures are
> visible (see the attached png).

I finally found the cause. I had these lines in my header:
```
\setupcaptions[minwidth=0.95\textwidth,
               way=bychapter,
               prefixsegments=chapter]
```
In the new context, this seem to apply to all captions, while in the old
context, it seems to apply only to those captions that are not specified
otherwise.

Best
Gerion

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

[-- Attachment #2: Type: text/plain, Size: 495 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: floatcombinations seem to not work correctly after lmtx update
  2023-08-01 17:34 ` [NTG-context] " Gerion Entrup
@ 2023-08-01 18:48   ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2023-08-01 18:48 UTC (permalink / raw)
  To: ntg-context

On 8/1/2023 7:34 PM, Gerion Entrup wrote:
> Am Montag, 19. Juni 2023, 13:53:02 CEST schrieb Gerion Entrup via ntg-context:
>> In this minimal example everything works. However, in my real document
>> the subfigures have enormous space between them so just two pictures are
>> visible (see the attached png).
> 
> I finally found the cause. I had these lines in my header:
> ```
> \setupcaptions[minwidth=0.95\textwidth,
>                 way=bychapter,
>                 prefixsegments=chapter]
> ```
> In the new context, this seem to apply to all captions, while in the old
> context, it seems to apply only to those captions that are not specified
> otherwise.

gnerally a command like this applies to apply instances, contrary to
  \setupcaptions[instance][...]

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://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-01 18:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-19 11:53 [NTG-context] floatcombinations seem to not work correctly after lmtx update Gerion Entrup via ntg-context
2023-06-22 13:21 ` Hans Hagen via ntg-context
2023-07-06 11:13   ` Gerion Entrup
2023-08-01 17:34 ` [NTG-context] " Gerion Entrup
2023-08-01 18:48   ` Hans Hagen

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).