On 3/8/26 17:48, [email protected] wrote:
> Here is a minimal sample,

Hi Milan,

I forgot to mention that the sample should be working (with just copy
and paste).

This makes it easier to start testing and avoids different results due
to different ways of getting the complete sample (I already experienced
that).

> If there are no tables on multiple pages, your previous advice with
> \startlinecorrection … \stoplinecorrection works, but I would like
> to know whether grid typesetting is also possible when we have tables
> on multiple pages.

This is the closest I can get to grid typesetting (but it isn’t real
grid typesetting): `offset=overlay` in your xtable setup.

With minimal additions to your sample, this is what you seem to get
(although someone more experienced could get full grid typesetting):

  \showframe\showgrid
  \setuplayout[grid=yes]
  \setupcolumns[n=2]
  \starttext
  \startbuffer[cols]
  \startcolumns %just before
  \subject{A list}
    \dorecurse{3}{\input knuth\par}
  \stopcolumns
  \stopbuffer
  \getbuffer[cols]

  \blank[2st]

  \startbuffer[xtab]
  \startxtable[
      split=yes,
      option={stretch,width},
      textwidth=1tw,
      % 1. Handle external page grid (spacing before/after)
      %~ before={\blank[line]\begstrut},
      %~ after={\endstrut\blank[line]},
      offset=none,
      frame=on,
      %after={\blank[line]},
      % 2. STOP internal grid snapping (The fix for "too apart")
      %grid=no,
  ]
    \startxtablehead
      \startxrow
        \startxcell[style=bold] Column 1 \stopxcell
        \startxcell[style=bold] Column 2 \stopxcell
      \stopxrow
    \stopxtablehead
    \startxtablebody
      \dorecurse{20}{
        \startxrow
          \startxcell Full width data #1 \stopxcell
          \startxcell More full width data \stopxcell
        \stopxrow
      }
    \stopxtablebody
  \stopxtable
  \stopbuffer
  \getbuffer[xtab]

  \getbuffer[cols]

  \blank[2st]

  \getbuffer[xtab]
  \stoptext

I hope it might help,

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

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to