[NTG-context] Re: [ odd spacing ]

2023-08-15 Thread Pablo Rodriguez
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
___


[NTG-context] Re: [ odd spacing ]

2023-08-15 Thread vm via ntg-context

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
___


[NTG-context] Re: [ odd spacing ]

2023-08-15 Thread Hans Hagen via ntg-context

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
___


[NTG-context] Re: [ odd spacing ]

2023-08-15 Thread Wolfgang Schuster

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
___