ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jan Tosovsky" <j.tosovsky@email.cz>
To: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Re: Paragraph - the last line handling
Date: Wed, 19 Feb 2014 23:00:29 +0100	[thread overview]
Message-ID: <37084.6340120353$1392847251@news.gmane.org> (raw)
In-Reply-To: <5290B7A5.9060202@wxs.nl>

On 2013-11-23 Hans Hagen wrote:
> On 11/23/2013 2:43 PM, Jan Tosovsky wrote:
> > On 2013-11-23 Hans Hagen wrote:
> >> On 11/22/2013 11:07 PM, Jan Tosovsky wrote:
> >>>
> >>> in my document there are lot of cases when the last line in the
> >>> paragraph has a very narrow gap on the right.
> >>
> >> \hsize 15.4cm
> >>
> >> \input tufte
> >>
> >> \parfillskip30pt plus 1 fill  \input tufte
> >
> > Wow, exactly! Thanks a lot.
> >
> > Sorry for a dumb question, but is there any way how to use it
> > globally for all paragraphs in my document?
> 
> no, as i need to think of a decent interface to that (so remind me in a
> few months)

When this gap (parfillskip) is set in the beginning of the document, it is
shared for all paragraphs within the document. I was not aware of that.

But I've encountered this weird edge case. When the text is followed with
\stopregister command, the last line has no gap at all:


\starttext

\hsize 15.3cm % in older versions this value has to be set to 15.4cm

\input tufte

\parfillskip 30pt plus 1 fill  

\input tufte
 
\startregister[index][test]{test}
\input{tufte}
\stopregister[index][test]

\stoptext

It can be fixed by a blank line inserted before \stopregister command, but
this is unacceptable in my case for other reasons.

Any idea?

Thanks, Jan

___________________________________________________________________________________
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:[~2014-02-19 22:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <012e01cee7cf$2d36b690$87a423b0$@tosovsky@email.cz>
2013-11-23 12:29 ` Hans Hagen
2013-11-23 13:43   ` Jan Tosovsky
     [not found]   ` <002701cee852$00817710$01846530$@tosovsky@email.cz>
2013-11-23 14:11     ` Hans Hagen
2013-11-23 14:44       ` Jan Tosovsky
2014-02-19 22:00       ` Jan Tosovsky [this message]
     [not found]       ` <01c401cf2dbe$01385960$03a90c20$@tosovsky@email.cz>
2014-02-22 13:06         ` Jan Tosovsky
2013-11-22 22:07 Jan Tosovsky

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='37084.6340120353$1392847251@news.gmane.org' \
    --to=j.tosovsky@email.cz \
    --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).