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
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 ___________________________________________________________________________________
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
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 ___________________________________________________________________________________
participants (2)
-
Peter Rolf
-
Steffen Wolfrum