Re: [NTG-context] Avoiding widows and orphans (again?)
On 23-11-2011 15:45, Christian wrote: Good day to you, I saw the related messages in the archive, but I don't really get it. I'm looking for a (global) setting, that prevents the last line of a paragraph to slip on the next page. If it really must, it shall also drag another one with it for company. \setuplayout[preset=strict] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___
Re: [NTG-context] Avoiding widows and orphans (again?)
Am 23.11.2011 um 16:29 schrieb Hans Hagen: On 23-11-2011 15:45, Christian wrote: Good day to you, I saw the related messages in the archive, but I don't really get it. I'm looking for a (global) setting, that prevents the last line of a paragraph to slip on the next page. If it really must, it shall also drag another one with it for company. \setuplayout[preset=strict] It’s also possible to set a certain number of lines with the following: \starttext \setpenalties\widowpenalties{3}{1} \dorecurse{740}{text } \stoptext The number of lines is always “n+1” (3+1) because the penalty is added before the last three lines. Wolfgang ___ 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 ___
Re: [NTG-context] No widows and orphans
On Mar 1, 2011, at 3:41 PM, Cecil Westerhof wrote: I do not want to have widows and orphans. Because of this I use: \clubpenalty=1 \widowpenalty=1 But this has no effect. Still the last two lines of a paragraph are put on the next page instead of the complete paragraph. I think you are confusing things here: orphans and widows refer to single lines on the following/preceding page. So if you get two lines, you get exactly what you ask for. If I understand you correctly, you do not want to break paragraphs vertically at all? Thomas ___ 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 ___
Re: [NTG-context] No widows and orphans
2011/3/1 Thomas A. Schmitz thomas.schm...@uni-bonn.de On Mar 1, 2011, at 3:41 PM, Cecil Westerhof wrote: I do not want to have widows and orphans. Because of this I use: \clubpenalty=1 \widowpenalty=1 But this has no effect. Still the last two lines of a paragraph are put on the next page instead of the complete paragraph. I think you are confusing things here: orphans and widows refer to single lines on the following/preceding page. So if you get two lines, you get exactly what you ask for. If I understand you correctly, you do not want to break paragraphs vertically at all? Okay, I did not understand the terminology correctly. Yes, in this particular case I would like not to break them. What would also be acceptable is when there are at least five lines on the page. -- Cecil Westerhof ___ 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 ___
Re: [NTG-context] No widows and orphans
On Tue, Mar 1, 2011 at 3:56 PM, Cecil Westerhof cldwester...@gmail.com wrote: 2011/3/1 Thomas A. Schmitz thomas.schm...@uni-bonn.de On Mar 1, 2011, at 3:41 PM, Cecil Westerhof wrote: I do not want to have widows and orphans. Because of this I use: \clubpenalty=1 \widowpenalty=1 But this has no effect. Still the last two lines of a paragraph are put on the next page instead of the complete paragraph. I think you are confusing things here: orphans and widows refer to single lines on the following/preceding page. So if you get two lines, you get exactly what you ask for. If I understand you correctly, you do not want to break paragraphs vertically at all? Okay, I did not understand the terminology correctly. http://en.wikipedia.org/wiki/Widow_%28typesetting%29 -- luigi ___ 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 ___
Re: [NTG-context] No widows and orphans
Am 01.03.2011 um 16:03 schrieb ntg-context-requ...@ntg.nl: Von: Cecil Westerhof cldwester...@gmail.com Datum: 1. März 2011 15:56:03 MEZ An: mailing list for ConTeXt users ntg-context@ntg.nl Betreff: Re: [NTG-context] No widows and orphans Antwort an: mailing list for ConTeXt users ntg-context@ntg.nl 2011/3/1 Thomas A. Schmitz thomas.schm...@uni-bonn.de On Mar 1, 2011, at 3:41 PM, Cecil Westerhof wrote: I do not want to have widows and orphans. Because of this I use: \clubpenalty=1 \widowpenalty=1 But this has no effect. Still the last two lines of a paragraph are put on the next page instead of the complete paragraph. I think you are confusing things here: orphans and widows refer to single lines on the following/preceding page. So if you get two lines, you get exactly what you ask for. If I understand you correctly, you do not want to break paragraphs vertically at all? Okay, I did not understand the terminology correctly. Yes, in this particular case I would like not to break them. I don't know whether that still works in ConTeXt, but try \interlinepenalty=1 What would also be acceptable is when there are at least five lines on the page. Try this (again untested): \clubpenalties 5 1 1 1 1 1 \widowpenalties 5 1 1 1 1 1 ___ 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 ___
Re: [NTG-context] No widows and orphans
2011/3/1 Philipp Stephani st_phil...@yahoo.de Yes, in this particular case I would like not to break them. I don't know whether that still works in ConTeXt, but try \interlinepenalty=1 That made havoc of my document. What would also be acceptable is when there are at least five lines on the page. Try this (again untested): \clubpenalties 5 1 1 1 1 1 \widowpenalties 5 1 1 1 1 1 Does not seem to have any effect. -- Cecil Westerhof ___ 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 ___
Re: [NTG-context] No widows and orphans
Am 01.03.2011 um 17:06 schrieb Philipp Stephani: I don't know whether that still works in ConTeXt, but try \interlinepenalty=1 It works but it’s to low level. There is also \interlinepenalties and ConTeXts \keeplinestogether (which use it) command but it doesn’t work \starttext \dorecurse{4}{\input tufte\par} \keeplinestogether{10} \input tufte\par \stoptext Wolfgang ___ 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 ___
Re: [NTG-context] No widows and orphans
2011/3/1 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 01.03.2011 um 17:06 schrieb Philipp Stephani: I don't know whether that still works in ConTeXt, but try \interlinepenalty=1 It works but it’s to low level. There is also \interlinepenalties and ConTeXts \keeplinestogether (which use it) command but it doesn’t work \starttext \dorecurse{4}{\input tufte\par} \keeplinestogether{10} \input tufte\par \stoptext If you add before starttext \interlinepenalty=1 it works. But alas, not in my case. -- Cecil Westerhof ___ 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 ___
Re: [NTG-context] No widows and orphans
Am 01.03.2011 um 18:05 schrieb Cecil Westerhof: 2011/3/1 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 01.03.2011 um 17:06 schrieb Philipp Stephani: I don't know whether that still works in ConTeXt, but try \interlinepenalty=1 It works but it’s to low level. There is also \interlinepenalties and ConTeXts \keeplinestogether (which use it) command but it doesn’t work \starttext \dorecurse{4}{\input tufte\par} \keeplinestogether{10} \input tufte\par \stoptext If you add before starttext \interlinepenalty=1 it works. But alas, not in my case. This will change the settings for all paragraphs while \keeplinestogether only applies for a given number of line for the next paragraph. Maybe this is what you want: \starttext \dorecurse{4}{\input tufte\par} \start\interlinepenalty=1 % keep the setting local \input tufte\par \stop \stoptext Wolfgang ___ 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 ___
Re: [NTG-context] No widows and orphans
2011/3/1 Wolfgang Schuster schuster.wolfg...@googlemail.com If you add before starttext \interlinepenalty=1 it works. But alas, not in my case. This will change the settings for all paragraphs while \keeplinestogether only applies for a given number of line for the next paragraph. That is exactly what I want: keeping all my paragraphs together. But when I use it in my file, I get a few lines pro page. -- Cecil Westerhof ___ 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 ___
Re: [NTG-context] No widows and orphans
Am 01.03.2011 um 19:06 schrieb Cecil Westerhof: 2011/3/1 Wolfgang Schuster schuster.wolfg...@googlemail.com If you add before starttext \interlinepenalty=1 it works. But alas, not in my case. This will change the settings for all paragraphs while \keeplinestogether only applies for a given number of line for the next paragraph. That is exactly what I want: keeping all my paragraphs together. But when I use it in my file, I get a few lines pro page. % engine=pdftex \setupparagraphintro[each][\keeplinestogether{10}] \starttext \dorecurse{5}{\input tufte\par} \stoptext The \setupparagraphintro command doesn’t work currently in mkiv. Wolfgang ___ 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 ___
Re: [NTG-context] No widows and orphans
2011/3/1 Wolfgang Schuster schuster.wolfg...@googlemail.com \setupparagraphintro[each][\keeplinestogether{10}] Wrecks havoc with my document. -- Cecil Westerhof ___ 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 ___
Re: [NTG-context] No widows and orphans
Am 01.03.2011 um 20:31 schrieb Cecil Westerhof: 2011/3/1 Wolfgang Schuster schuster.wolfg...@googlemail.com \setupparagraphintro[each][\keeplinestogether{10}] Wrecks havoc with my document. Without seeing your document there is no way to help you. Wolfgang ___ 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 ___
Re: [NTG-context] No widows and orphans
2011/3/1 Wolfgang Schuster schuster.wolfg...@googlemail.com \setupparagraphintro[each][\keeplinestogether{10}] Wrecks havoc with my document. Without seeing your document there is no way to help you. I'll try to make a synopsis. Will properly be Friday before I'll post it. -- Cecil Westerhof ___ 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 ___