[NTG-context] Fill up "bottom" space of page with some content

josephcanedo at gmail.com josephcanedo at gmail.com
Thu Dec 3 22:04:42 CET 2015

Hi Thangalin,

Thanks a lot for replying,

Sure, I attach 2 mwe’s. First one (fill_mwe.tex) shows a “lettrine” + paragraph cut in bottom of 1st page (not desirable).

To fix this problem I add \setpenalties\clubpenalties{5}{10000} to make sure the 6 first lines of paragraph are all together (5 lines for lettrine + 1 line to cover down the “lettrine”). This is shown in fill2_mwe.tex. There is another problem if the paragraph is too short (less than 5-6 lines) as the next paragraph will overlap with the figure, but that’s another story.

Now of course, in the bottom of the page 1 there is a large space and I would like to insert some decorative item. But my problem is that I do not know how to write some logic to insert this decorative stuff only if the title of Section 2 is moved to second page (if it is not, ie the section 1 is shorter, the section 2 title and beginning would follow in page 1). I was hoping there was a possibility to have some “filling” function that’s called if the page has still some space (I remember there is a setting called \setuplayout[line] that arranges to do this with the lines in the page.)

Hope this clarifies a bit,

Best regards


From: Thangalin
Sent: ‎Thursday‎, ‎December‎ ‎3‎, ‎2015 ‎9‎:‎27‎ ‎PM
To: ntg-context at ntg.nl

Hi Joseph,

Mind posting a minimum working example to illustrate what you're
trying to accomplish?
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20151203/f0c8f38c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fill_mwe.tex
Type: application/octet-stream
Size: 236 bytes
Desc: fill_mwe.tex
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20151203/f0c8f38c/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fill2_mwe.tex
Type: application/octet-stream
Size: 274 bytes
Desc: fill2_mwe.tex
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20151203/f0c8f38c/attachment-0003.obj>

More information about the ntg-context mailing list