Placing identical images in a n x m grid shows extra space every two rows. Also the vertical and horizontal spaces are different. There is probably a reason for this to happen, but how to avoid it ? .Floris [MWE] \starttext \startTEXpage[offset=10mm, pagestate=start] \startcombination[nx=3, ny=5] \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \stopcombination \stopTEXpage \stoptext [/MWE]
vm via ntg-context schrieb am 15.08.2023 um 21:13:
Placing identical images in a n x m grid shows extra space every two rows.
Also the vertical and horizontal spaces are different.
There is probably a reason for this to happen, but how to avoid it ?
1. You're missing the caption (even if it's empty) entry for each cell. \startcontent ... \stopcontent \startcaption \stopcaption 2. You create 15 cells but include 16 images. 3. When you need a combination without caption/label you can just use natural tables or extreme tables. Wolfgang
On 8/15/2023 9:13 PM, vm via ntg-context wrote:
Placing identical images in a n x m grid shows extra space every two rows.
you're missing \startcaption \stopcaption after each content section and have one content too many
Also the vertical and horizontal spaces are different.
There is probably a reason for this to happen, but how to avoid it ?
.Floris
[MWE]
\starttext \startTEXpage[offset=10mm, pagestate=start] \startcombination[nx=3, ny=5] \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \stopcombination \stopTEXpage \stoptext
[/MWE]
___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
thanks! On 15/08/2023 21:26, Hans Hagen via ntg-context wrote:
you're missing \startcaption \stopcaption after each content section
indeed, adding \startcaption\stopcaption at each line will make the spacing equal. A different approach is to use \dontleavehmode \dontleavehmode \framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.\textwidth,width=.2\textwidth]} \framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]} \framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]} \dontleavehmode \framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]} \framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]} \framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]} .F
On 8/15/23 21:48, vm via ntg-context wrote:
[...] A different approach is to use \dontleavehmode
In that case, \dorecurse is your friend, such as in: \starttext \startTEXpage[offset=10mm, pagestate=start] \dorecurse{5}{ \dontleavehmode \framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]} \framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]} \framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]} \par} \stopTEXpage \stoptext Just in case it helps, Pablo
participants (4)
-
Hans Hagen
-
Pablo Rodriguez
-
vm
-
Wolfgang Schuster