From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86139 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?=22H=2E_=D6zoguz=22?= Newsgroups: gmane.comp.tex.context Subject: Testpage with extras Date: Thu, 30 Jan 2014 10:37:27 +0100 Message-ID: <52EA1D57.9060008@mmnetz.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1391074649 10973 80.91.229.3 (30 Jan 2014 09:37:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2014 09:37:29 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 30 10:37:38 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W8o41-0006d8-QE for gctc-ntg-context-518@m.gmane.org; Thu, 30 Jan 2014 10:37:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CC3B6101F7; Thu, 30 Jan 2014 10:37:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id f2oJAnaRffCa; Thu, 30 Jan 2014 10:37:34 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 2153B101E6; Thu, 30 Jan 2014 10:37:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AE79F101E6 for ; Thu, 30 Jan 2014 10:37:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6Q+rfxVg6fpt for ; Thu, 30 Jan 2014 10:37:31 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 7FB64101E1 for ; Thu, 30 Jan 2014 10:37:31 +0100 (CET) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.10]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0U9bUbR031069 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 30 Jan 2014 10:37:30 +0100 Original-Received: from [192.168.0.190] (dyndsl-091-096-147-157.ewe-ip-backbone.de [91.96.147.157]) by mrelayeu.kundenserver.de (node=mreue006) with ESMTP (Nemesis) id 0LzDgT-1VE6kC493p-014WER; Thu, 30 Jan 2014 10:37:30 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 X-Provags-ID: V02:K0:sbEP3u43vDY/JXRVIxWxyLpOjYCjpyGTwt/3ZQSPiF1 h2Fjqv1Eg3XZhyuXEbCI1HtjiQrFLyTkrIVWdEyiq6ATlGhxSO kMH6CXAmO5QinZYE/Gf+TFzuB8CiRjI1W661A3INBIcRe3rVnX phXZ2cxNfCrg1/ivsUXLR6hNEgflRhpFzu8ngIfliTSOL59Qbv KUc3U6Oj4b6azbcXjpot1qeVlusDLn7n5KJErgf6BYuQudLoWL 5pZBKhiz0FJyOuxkyO/TUjoBSRhymeBkqn11TQWAwC8R6f9O3f v3wHIs4sVLF7c3dWQYHcz/uWSv4l25hd7e3KPyJLt/rCGzuQhI i/inLbaFOa30uuw+zHyY= X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=212.227.17.10; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03Lk9Bu03 - 1f10342adea2 - 20140130 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86139 Archived-At: Hi there, I asked a similar question before, but I try it again (in a bit different way): The command \testpage[n] Paragraph sets the next paragraph on the next page, if there are less than n lines left on the current page. I use this command very often, but need it with some extension: If \testpage is "active" (meaning, there are indeed less than n lines left), then it should not only input an pagebreak, but also some other command. E.g.: somewhat like \testpage[n,{\noindentation}] should add "\noindentation" before the paragraph, if and only if, there are less than n lines left. Or maybe: "\testpage[n, {TESTPAGE IS ACTIV}" to simply add this text infront of the next paragraph (of course the first one is more interesting). At the moment I use \testpage[n]\noindentation but that fails, if the document has changed and there are >= n lines left => no pagebreak, but still \noindentation of course - but they only should act simultaneously. Is that possible in some way? Best regards! Huseyin ___________________________________________________________________________________ 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 ___________________________________________________________________________________