[NTG-context] short last line

2007-05-09 Thread Steffen Wolfrum
Hi,

looking for a solution to avoid short snippets in a paragraph's last line I 
found lefthyphenmin/righthyphenmin.
But as this affects all hyphenations it is not useful.

Is there also a command that only cares for the last line of a paragraph, 
controlling that this last line should consist of e.g. at least 5 characters 
(all in all, or at least righthyphenmin 4 characters)?

Steffen
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] short last line

2007-05-09 Thread Peter Rolf
Steffen Wolfrum wrote:
 Hi,
 
 looking for a solution to avoid short snippets in a paragraph's last line I 
 found lefthyphenmin/righthyphenmin.
 But as this affects all hyphenations it is not useful.
 
 Is there also a command that only cares for the last line of a paragraph, 
 controlling that this last line should consist of e.g. at least 5 characters 
 (all in all, or at least righthyphenmin 4 characters)?

I think you mean

\parfillskip (page 100 in the TeX Book)

Grep for it in the 'base', to see where it is used and what values are
assigned in your context.

Peter

 Steffen
 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] short last line

2007-05-09 Thread Steffen Wolfrum
On Wed, 09 May 2007 12:55:41 +0200, Peter Rolf wrote:
 Steffen Wolfrum wrote:
 Hi,
 
 looking for a solution to avoid short snippets in a paragraph's last 
 line I found lefthyphenmin/righthyphenmin.
 But as this affects all hyphenations it is not useful.
 
 Is there also a command that only cares for the last line of a 
 paragraph, controlling that this last line should consist of e.g. at 
 least 5 characters (all in all, or at least righthyphenmin 4 
 characters)?
 
 I think you mean
 
 \parfillskip (page 100 in the TeX Book)
 
 Grep for it in the 'base', to see where it is used and what values are
 assigned in your context.
 
 Peter


Yes, it seems to be what I was looking for. 

At least on my testfiles the result is very nice.
Now comes debugging /  checking what negative side-effects \parfillskip 0pt 
plus .6\hsize can have in real life (footnotes, tables etc.) ...

Any traps known?

Steffen
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] short last line

2007-05-09 Thread Peter Rolf
Steffen Wolfrum wrote:
 On Wed, 09 May 2007 12:55:41 +0200, Peter Rolf wrote:
 Steffen Wolfrum wrote:
 Hi,

 looking for a solution to avoid short snippets in a paragraph's last 
 line I found lefthyphenmin/righthyphenmin.
 But as this affects all hyphenations it is not useful.

 Is there also a command that only cares for the last line of a 
 paragraph, controlling that this last line should consist of e.g. at 
 least 5 characters (all in all, or at least righthyphenmin 4 
 characters)?

 I think you mean

 \parfillskip (page 100 in the TeX Book)

 Grep for it in the 'base', to see where it is used and what values are
 assigned in your context.

 Peter
 
 
 Yes, it seems to be what I was looking for. 
 
 At least on my testfiles the result is very nice.
 Now comes debugging /  checking what negative side-effects \parfillskip 0pt 
 plus .6\hsize can have in real life (footnotes, tables etc.) ...
 
 Any traps known?


Sorry, no (experience). So you better keep an eye on it :)


 Steffen
 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___