<div dir="ltr">Thank you very much Aditya for looking into this. But I still have the same baseline grid offset problem. Interestingly, when I remove the columns, the text shifts downwards by two lines.<div>My code:</div><div><br></div><div><p style="margin:0px;line-height:100%;white-space:pre-wrap">\definemeasure[xheight][0.1in]</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">\definemeasure[base][3\measured{xheight}]</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap"><br></p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">% Since all distances are in terms of base units, specify the paper size in those</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">% terms as well.</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">\definepapersize[slide][width=26\measured{base},height=20\measured{base}]</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">\setuppapersize[slide]</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap"><br></p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">\setupinterlinespace[line=\measure{base}]</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap"><br></p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">\setuplayout</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">    [</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">      topspace=2\measured{base},</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">      header=\zeropoint,</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">      headerdistance=\zeropoint,</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">      height=middle, % Space for 20-4=16 lines</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">      footerdistance=\zeropoint,</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">      footer=\zeropoint,</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">      bottomspace=2\measured{base},</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">      %</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">      cutspace=2\measured{base},</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">      leftmargin=\zeropoint,</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">      leftmargindistance=\zeropoint,</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">      width=middle, % space for 26-4=22 col</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">      rightmargindistance=\zeropoint,</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">      rightmargin=\zeropoint,</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">      backspace=2\measured{base}</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">      grid=yes,</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">      ]</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap"><br></p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap"><br></p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">\showframe</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">\showgrid</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap"><br></p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">\starttext</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">\input tufte</p>
<p style="margin:0px;line-height:100%;white-space:pre-wrap">\stoptext</p><p style="margin:0px;line-height:100%;white-space:pre-wrap"><br></p><p style="margin:0px;line-height:100%;white-space:pre-wrap">I'm attaching the pdf output.</p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 27, 2022 at 5:00 PM Aditya Mahajan <<a href="mailto:adityam@umich.edu">adityam@umich.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 25 May 2022, Stefan Nedeljkovic via ntg-context wrote:<br>
<br>
> Dear list,<br>
> <br>
> My adventures into the world of grids continue. In the linked file<br>
> (slide_grid_overlay.pdf) there are two things I cannot yet achieve:<br>
> <br>
>     1. I want the baseline grid to evenly (vertically) divide the text<br>
> area, but my code produces a smaller height of the first line and an<br>
> additional space at the bottom.<br>
<br>
You did not set footerdistance to zero. So, that takes up some space.<br>
<br>
>     2. The number of columns is 21.5, that is the first column is 0.5 units<br>
> wide and the rest are 1 unit wide.<br>
<br>
I believe that columns has to be an integer. Why do you want fractional columns? Columns are useful because you can say:<br>
<br>
\setlayer[name][line=2,column=3]{....}<br>
<br>
for absolute positioning of layers. So, you can always use:<br>
<br>
\setlayer[name][line=2,column=3,x=0.5\measured{base}]{....}<br>
<br>
to move everything to the right by 0.5 units.  <br>
<br>
Another option is not to use columns at all, and simply do:<br>
<br>
\setlayer[name][line=2,x=3.5\measured{base}]<br>
<br>
which will place the layer at 3.5 units from the left edge of the text area. <br>
<br>
> Here is what I got right now:<br>
<br>
Currently your textwidth is not a multiple of base units. I have tweaked the code below so that it is.<br>
<br>
\definemeasure[xheight][0.1in]<br>
\definemeasure[base][3\measured{xheight}]<br>
<br>
% Since all distances are in terms of base units, specify the paper size in those<br>
% terms as well.<br>
\definepapersize[slide][width=26\measured{base},height=20\measured{base}]<br>
\setuppapersize[slide]<br>
<br>
\setupinterlinespace[line=\measure{base}]<br>
<br>
\setuplayout<br>
    [<br>
      topspace=2\measured{base},<br>
      header=\zeropoint,<br>
      headerdistance=\zeropoint,<br>
      height=middle, % Space for 20-4=16 lines<br>
      footerdistance=\zeropoint,<br>
      footer=\zeropoint,<br>
      bottomspace=2\measured{base},<br>
      %<br>
      cutspace=2\measured{base},<br>
      leftmargin=\zeropoint,<br>
      leftmargindistance=\zeropoint,<br>
      width=middle, % space for 26-4=22 col<br>
      rightmargindistance=\zeropoint,<br>
      rightmargin=\zeropoint,<br>
      backspace=2\measured{base},<br>
      %<br>
      columns=22,<br>
      columndistance=1pt,<br>
      %<br>
      grid=yes,<br>
    ]<br>
<br>
<br>
\showframe<br>
\showgrid<br>
<br>
\starttext<br>
\input tufte<br>
\stoptext<br>
<br>
<br>
Aditya<br>
</blockquote></div>