[NTG-context] Justifying last line of paragraph

Elias Oltmanns eo at nebensachen.de
Sun Sep 26 18:01:50 CEST 2010

Taco Hoekwater <taco at elvenkind.com> wrote:
> On 09/25/2010 08:03 PM, Elias Oltmanns wrote:
>> The first couple of lines of the paragraph beginning on page two should
>> really go on the previous page. Since the hang mechanism of \placefigure
>> doesn't work due to the page break, I'd like to split this paragraph
>> into two logical entities, so TeX can put the first on the first page
>> and treat the second as a separate paragraph flowing around the picture.
>> However, the reader should not be aware of this split.
>> Any help much appreciated,
> I don't know of any automatic solution to this problem (except _perhaps_
> columnsets could help) but the simplest way to split a paragraph into
> two paragraphs while still looking like one is by inserting a macro
> like this at an existing break point:

Thanks Taco, this appears to be exactly what I was looking for. One more
thing though: is there a simple way to arrange for all arguments
provided to \splitpar to be passed on to \placefigure in a definition
like this:

> \def\splitpar
>  {\bgroup
>   \parfillskip\zeropoint
>   \par
    \aftergroup \placefigure    % arguments to \splitpar should be passed on
>   \aftergroup \parskip
>   \aftergroup \zeropoint
>   \aftergroup \noindentation
>   \egroup }

Thanks for your help,


More information about the ntg-context mailing list