Typeset multiple pictures not in a strict matrix (\startfloatcombination)
Hi, I'm trying to typeset several pictures as a floatcombination but not in the form of strict cells of a matrix. Here is some ASCII art to demonstrate the positions of the pictures: --------------------------- | | | | --------------------------- a) Some caption ------------ ------------- | | | | | | | | | | | | ------------ ------------- b) foo c) foo Figure 1.1: Foo Bar I tried to typeset it with this code (based on https://tex.stackexchange.com/a/502903): \useMPlibrary[dum] \setupcombinations[alternative=text] \definefloat[subfigure][local=yes] \setupcaption[subfigure][numberconversion=a] \setuplabeltext[subfigure=] \appendvalue{stopplacefigure}{\resetcounter[subfigure]} \starttext \startplacefigure[title=Test] \startfloatcombination[nx=1, ny=2] \startplacesubfigure[title=Test] \externalfigure[dummy][width=4cm,height=1cm] \stopplacesubfigure \startfloatcombination[nx=2, ny=1] \startplacesubfigure[title=Test] \externalfigure[dummy][width=4cm,height=1cm] \stopplacesubfigure \startplacesubfigure[title=Test] \externalfigure[dummy][width=4cm,height=1cm] \stopplacesubfigure \stopfloatcombination \stopfloatcombination \stopplacefigure \stoptext However, this does not work (the pictures are all in one row). Do you have some advice? Gerion
On 3/7/2023 6:54 PM, Gerion Entrup via ntg-context wrote:
Hi,
I'm trying to typeset several pictures as a floatcombination but not in the form of strict cells of a matrix.
Here is some ASCII art to demonstrate the positions of the pictures:
--------------------------- | | | | --------------------------- a) Some caption
------------ ------------- | | | | | | | | | | | | ------------ ------------- b) foo c) foo
Figure 1.1: Foo Bar
I tried to typeset it with this code (based on https://tex.stackexchange.com/a/502903):
\useMPlibrary[dum] \setupcombinations[alternative=text]
\definefloat[subfigure][local=yes] \setupcaption[subfigure][numberconversion=a] \setuplabeltext[subfigure=]
\appendvalue{stopplacefigure}{\resetcounter[subfigure]}
\starttext \startplacefigure[title=Test] \startfloatcombination[nx=1, ny=2] \startplacesubfigure[title=Test] \externalfigure[dummy][width=4cm,height=1cm] \stopplacesubfigure \startfloatcombination[nx=2, ny=1] \startplacesubfigure[title=Test] \externalfigure[dummy][width=4cm,height=1cm] \stopplacesubfigure \startplacesubfigure[title=Test] \externalfigure[dummy][width=4cm,height=1cm] \stopplacesubfigure \stopfloatcombination \stopfloatcombination \stopplacefigure \stoptext
However, this does not work (the pictures are all in one row). Do you have some advice? you can cheat:
\startplacefigure[title=Test] \bTABLE[frame=off] \bTR \bTD[nx=2,align=middle,offset=overlay] \dontleavehmode\externalfigure[dummy-1][width=4cm,height=1cm] \eTD \eTR \bTR[toffset=1ex] \bTD[nx=2,align=middle] % \placefloatcaption[figure][title=foo] a) foo \eTD \eTR \bTR[toffset=2ex] \bTD[align=middle,offset=overlay] \externalfigure[dummy-2][width=4cm,height=1cm] \eTD \bTD[align=middle,offset=overlay] \externalfigure[dummy-3][width=4cm,height=1cm] \eTD \eTR \bTR[toffset=1ex] \bTD[align=middle] % \placefloatcaption[figure][title=foo] b) foo \eTD \bTD[align=middle] % \placefloatcaption[figure][title=foo] c) foo \eTD \eTR \eTABLE \stopplacefigure ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Gerion Entrup
-
Hans Hagen