ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: <josephcanedo@gmail.com>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: Fill up "bottom" space of page with some content
Date: Thu, 3 Dec 2015 21:04:42 +0000	[thread overview]
Message-ID: <8bc829d6775446b5aad2b37381b97723@gmail.com> (raw)
In-Reply-To: <6491d269336441b1828134bbd235a71e@gmail.com>


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

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




Joseph





From: Thangalin
Sent: ‎Thursday‎, ‎December‎ ‎3‎, ‎2015 ‎9‎:‎27‎ ‎PM
To: ntg-context@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@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
___________________________________________________________________________________

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

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

\starttext

\startsection[title={Section 1}]

\input knuth
\input tufte
\input zapf
\input tufte

\stopsection

\startsection[title={Section 2}]

\starthanging{\externalfigure[L1.pdf]} \input tufte
\stophanging

\stopsection

\stoptext

[-- Attachment #3: fill2_mwe.tex --]
[-- Type: application/octet-stream, Size: 274 bytes --]

\starttext

\startsection[title={Section 1}]

\input knuth
\input tufte
\input zapf
\input tufte

\stopsection

\startsection[title={Section 2}]

\setpenalties\clubpenalties{5}{10000}
\starthanging{\externalfigure[L1.pdf]} \input tufte
\stophanging

\stopsection

\stoptext

[-- Attachment #4: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2015-12-03 21:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-02 21:19 josephcanedo
2015-12-03 20:27 ` Thangalin
     [not found]   ` <6491d269336441b1828134bbd235a71e@gmail.com>
2015-12-03 21:04     ` josephcanedo [this message]

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=8bc829d6775446b5aad2b37381b97723@gmail.com \
    --to=josephcanedo@gmail.com \
    --cc=ntg-context@ntg.nl \
    /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).