ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* avoiding space on top of a page
@ 2018-02-11 15:00 Henning Hraban Ramm
  2018-02-11 17:18 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Henning Hraban Ramm @ 2018-02-11 15:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 597 bytes --]

Ahoi,
I configured my section titles to have a line of space (\blank[big]) before and after the title.
But if the section starts on a new page, the title should start in the first line.
I couldn’t find the right combination of \blank options...

\setuplayout[grid=yes]
\setuphead[section][
    page=no,
    style={\bf},
    before={\testpage[4]\startlinecorrection\blank[medium,back]},
    after={\blank[small,max]\stoplinecorrection},
    ]

(Please find working example attached.)

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

[-- Attachment #2: sectiontest.tex --]
[-- Type: application/octet-stream, Size: 421 bytes --]


\usemodule[visual]
\setuplayout[grid=yes]
\setuphead[
  align={flushleft,nothyphenated},
	tolerance=verytolerant,
	grid=line]
\setuphead[section][
    page=no,
    style={\bf},
    before={\testpage[4]\startlinecorrection\blank[medium,back]},
    after={\blank[small,max]\stoplinecorrection},
    ]
\showgrid

\starttext
\dorecurse{10}{
\startsection[title=\fakewords{2}{5}]
\fakewords{20}{200}
\stopsection
}
\stoptext

[-- Attachment #3: Type: text/plain, Size: 492 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: avoiding space on top of a page
  2018-02-11 15:00 avoiding space on top of a page Henning Hraban Ramm
@ 2018-02-11 17:18 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2018-02-11 17:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


> Henning Hraban Ramm <mailto:texml@fiee.net>
> 11. Februar 2018 um 16:00
> Ahoi,
> I configured my section titles to have a line of space (\blank[big]) 
> before and after the title.
> But if the section starts on a new page, the title should start in the 
> first line.
> I couldn’t find the right combination of \blank options...
>
> \setuplayout[grid=yes]
> \setuphead[section][
> page=no,
> style={\bf},
> before={\testpage[4]\startlinecorrection\blank[medium,back]},
> after={\blank[small,max]\stoplinecorrection},
> ]

\setuphead
   [...]
   [before={\testpage[5]\blank[...]\startlinecorrection},
    after={\stoplinecorrection\blank[...]}]

Wolfgang

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

[-- Attachment #2: Type: text/plain, Size: 492 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-02-11 17:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-11 15:00 avoiding space on top of a page Henning Hraban Ramm
2018-02-11 17:18 ` Wolfgang Schuster

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).