ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Stefan Nedeljkovic via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Stefan Nedeljkovic <tsar.srb@gmail.com>
Subject: Offseting the baseline grid, and irregular columnsets
Date: Wed, 25 May 2022 21:53:21 +0200	[thread overview]
Message-ID: <CAGraPNfgoNsuFXSZ0gtjxjRdUoKo_rGa_VDYqj0JHu+7E23dsg@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1346 bytes --]

Dear list,

My adventures into the world of grids continue. In the linked file
(slide_grid_overlay.pdf) there are two things I cannot yet achieve:

    1. I want the baseline grid to evenly (vertically) divide the text
area, but my code produces a smaller height of the first line and an
additional space at the bottom.
    2. The number of columns is 21.5, that is the first column is 0.5 units
wide and the rest are 1 unit wide.

How would I achieve this?
Here is what I got right now:

\definemeasure[xheight][0.1in]
\definemeasure[base][3\measured{xheight}]

\definepapersize[slide][width=80\measured{xheight},height=60\measured{xheight}]
\setuppapersize[slide]

\setupinterlinespace[line=\measure{base},top=1]

\setuplayout[
leftedge=\zeropoint,
rightedge=\measure{zero},
leftedgedistance=\zeropoint,
rightedgedistance=\zeropoint,
leftmargin=\zeropoint,
rightmargin=\zeropoint,
leftmargindistance=\zeropoint,
rightmargindistance=\zeropoint,
width=middle,
cutspace=2\measured{base},
backspace=2\measured{base},
topspace=2\measured{base},
header=\zeropoint,
height=middle,
bottomspace=2\measured{base},
footer=\zeropoint,
grid=yes,
columndistance=1pt,
columns=21.5]


\showframe
\showgrid

\starttext
\input tufte
\stoptext

Link to file:
https://drive.google.com/drive/folders/1KpYbDlukvSCirKkFvJICOX3wABl_83bW?usp=sharing

Sincerely,
Stefan

[-- Attachment #1.2: Type: text/html, Size: 1631 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2022-05-25 19:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-25 19:53 Stefan Nedeljkovic via ntg-context [this message]
2022-05-27 15:00 ` Aditya Mahajan via ntg-context
2022-05-27 16:03   ` Stefan Nedeljkovic via ntg-context
2022-05-27 16:15     ` Rik Kabel via ntg-context
2022-05-27 16:48       ` Stefan Nedeljkovic via ntg-context
2022-05-27 20:31         ` Aditya Mahajan via ntg-context
2022-05-28  4:48           ` Stefan Nedeljkovic via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGraPNfgoNsuFXSZ0gtjxjRdUoKo_rGa_VDYqj0JHu+7E23dsg@mail.gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=tsar.srb@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).