* [NTG-context] [ odd spacing ] [not found] <31ead058-8489-037f-b531-bb35c226b780@klankschap.nl> @ 2023-08-15 19:13 ` vm via ntg-context 2023-08-15 19:22 ` [NTG-context] " Wolfgang Schuster 2023-08-15 19:26 ` Hans Hagen via ntg-context 0 siblings, 2 replies; 5+ messages in thread From: vm via ntg-context @ 2023-08-15 19:13 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: vm [-- Attachment #1: Type: text/plain, Size: 2049 bytes --] 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] [-- Attachment #2: Screenshot from 2023-08-15 21-11-16.png --] [-- Type: image/png, Size: 23918 bytes --] [-- Attachment #3: 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: [ odd spacing ] 2023-08-15 19:13 ` [NTG-context] [ odd spacing ] vm via ntg-context @ 2023-08-15 19:22 ` Wolfgang Schuster 2023-08-15 19:26 ` Hans Hagen via ntg-context 1 sibling, 0 replies; 5+ messages in thread From: Wolfgang Schuster @ 2023-08-15 19:22 UTC (permalink / raw) To: mailing list for ConTeXt users, vm via ntg-context 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 ___________________________________________________________________________________ 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: [ odd spacing ] 2023-08-15 19:13 ` [NTG-context] [ odd spacing ] vm via ntg-context 2023-08-15 19:22 ` [NTG-context] " Wolfgang Schuster @ 2023-08-15 19:26 ` Hans Hagen via ntg-context 2023-08-15 19:48 ` vm via ntg-context 1 sibling, 1 reply; 5+ messages in thread From: Hans Hagen via ntg-context @ 2023-08-15 19:26 UTC (permalink / raw) To: ntg-context; +Cc: Hans Hagen 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 ----------------------------------------------------------------- ___________________________________________________________________________________ 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: [ odd spacing ] 2023-08-15 19:26 ` Hans Hagen via ntg-context @ 2023-08-15 19:48 ` vm via ntg-context 2023-08-15 20:12 ` Pablo Rodriguez 0 siblings, 1 reply; 5+ messages in thread From: vm via ntg-context @ 2023-08-15 19:48 UTC (permalink / raw) To: ntg-context; +Cc: vm 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 ___________________________________________________________________________________ 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: [ odd spacing ] 2023-08-15 19:48 ` vm via ntg-context @ 2023-08-15 20:12 ` Pablo Rodriguez 0 siblings, 0 replies; 5+ messages in thread From: Pablo Rodriguez @ 2023-08-15 20:12 UTC (permalink / raw) To: ntg-context 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 ___________________________________________________________________________________ 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-15 20:14 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <31ead058-8489-037f-b531-bb35c226b780@klankschap.nl> 2023-08-15 19:13 ` [NTG-context] [ odd spacing ] vm via ntg-context 2023-08-15 19:22 ` [NTG-context] " Wolfgang Schuster 2023-08-15 19:26 ` Hans Hagen via ntg-context 2023-08-15 19:48 ` vm via ntg-context 2023-08-15 20:12 ` 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).