* [NTG-context] a different, but not zero, blank at the top of a page
@ 2024-07-09 13:02 mf
2024-07-09 14:11 ` [NTG-context] " mf
0 siblings, 1 reply; 2+ messages in thread
From: mf @ 2024-07-09 13:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hello,
I need advice on blanks at the start of a page.
Usually a blank is ignored when it's at the top of a page.
You can force it with \blank[...,force], but its value is the same as in
the remainder of the text.
So, if the blank over a heading is 2 lines, forcing it at the top of the
page produces 2 empty lines (not exactly, because TeX uses a glue at the
top for line alignment, if I remember well).
What I need is a non zero blank at the top, to align the following text
to the grid.
A solution could be checking whether we are at the top of the page, and
choose the blank amount accordingly.
How can I make such a test?
Massi
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* [NTG-context] Re: a different, but not zero, blank at the top of a page
2024-07-09 13:02 [NTG-context] a different, but not zero, blank at the top of a page mf
@ 2024-07-09 14:11 ` mf
0 siblings, 0 replies; 2+ messages in thread
From: mf @ 2024-07-09 14:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
Found this solution:
\ifdim \pagetotal=0pt \blank[attop,force] \else \blank[normal] \fi
Il 09/07/24 15:02, mf ha scritto:
> Hello,
>
> I need advice on blanks at the start of a page.
>
> Usually a blank is ignored when it's at the top of a page.
>
> You can force it with \blank[...,force], but its value is the same as in
> the remainder of the text.
>
> So, if the blank over a heading is 2 lines, forcing it at the top of the
> page produces 2 empty lines (not exactly, because TeX uses a glue at the
> top for line alignment, if I remember well).
>
> What I need is a non zero blank at the top, to align the following text
> to the grid.
>
> A solution could be checking whether we are at the top of the page, and
> choose the blank amount accordingly.
> How can I make such a test?
>
> Massi
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry
> to the Wiki!
>
> maillist : ntg-context@ntg.nl /
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-07-09 14:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-09 13:02 [NTG-context] a different, but not zero, blank at the top of a page mf
2024-07-09 14:11 ` [NTG-context] " mf
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).