onntag, 27. Juni 2021 16:57
> An: ntg-context@ntg.nl
> Betreff: Re: [NTG-context] First line of larger font paragraph on grid
>
> Thanks, Garulfo. I don't use \definedfont in my real document so I should be
> able to port it to my use case. And now I've learned about foregroundstyle
the
underlying issue?
Denis
> -Ursprüngliche Nachricht-
> Von: ntg-context Im Auftrag von Garulfo
> Gesendet: Samstag, 26. Juni 2021 12:37
> An: ntg-context@ntg.nl
> Betreff: Re: [NTG-context] First line of larger font paragraph on grid
>
> To have
To have the two pages similar
There is something linked with the use of \definefont.
Don't know if it properly impacts the interlinespace for example.
%--
\setuplayout[grid=yes]
\showgrid
\definefont [BigFont] [Bold at 20pt] [28pt]
A proposal
===
\setuplayout[grid=yes]
\showgrid
\definefont [BigFont] [Bold at 20pt] [28pt]
\unprotect
\unexpanded\def\section_command#1#2{%
\framed [
width=\textwidth,
frame=off,
rulethickness=0pt,
Hi,
I have some text in a larger font where the first line should be on the grid.
Therefore, I've tried to adapt the solution from the wiki:
https://wiki.contextgarden.net/Grid_typesetting#Placing_titles_on_the_grid
The interesting thing is that the section command indeed places the first line