From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31851 Path: news.gmane.org!not-for-mail From: Martin Becker Newsgroups: gmane.comp.tex.context Subject: Avoiding page breaks in self-defined Note environment Date: Tue, 14 Nov 2006 15:54:50 +0000 (UTC) Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1163520059 28951 80.91.229.2 (14 Nov 2006 16:00:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Nov 2006 16:00:59 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 14 17:00:56 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gk0i2-0007em-NT for gctc-ntg-context-518@m.gmane.org; Tue, 14 Nov 2006 17:00:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9905A1FE2E; Tue, 14 Nov 2006 17:00:16 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29099-09-19; Tue, 14 Nov 2006 17:00:10 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3980E1FE2C; Tue, 14 Nov 2006 17:00:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7F2E61FE34 for ; Tue, 14 Nov 2006 17:00:08 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29134-04-17 for ; Tue, 14 Nov 2006 16:59:58 +0100 (CET) Original-Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by ronja.ntg.nl (Postfix) with SMTP id 24D061FE2C for ; Tue, 14 Nov 2006 16:59:56 +0100 (CET) Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Gk0he-0007Yr-D7 for ntg-context@ntg.nl; Tue, 14 Nov 2006 17:00:02 +0100 Original-Received: from vpn.astaro.com ([213.144.15.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Nov 2006 17:00:02 +0100 Original-Received: from mbecker by vpn.astaro.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Nov 2006 17:00:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ntg-context@ntg.nl Original-Lines: 29 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 213.144.15.2 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31851 Archived-At: Dear all, I'm having a problem with unwanted page breaks using ConTeXt. Imagine a note environment that is separated from normal text by horizontal rules: -------------------------- Note - Notice that this text is embedded in... -------------------------- The problem however is that ConTeXt sometimes breaks the page after the first rule or just before the second, which, as you can image, is pretty ugly. I have defined a command to avoid this: \def\MyHR{nobreak\hairline\nobreak } The tex file looks like this: \MyHR{} {\bf{Note --}} Notice that this text is embedded in... \MyHR{} However, this does not work. The background is that I am using a parser to translate MediaWiki markup to PDF using ConTeXt. Any help would be appreciated. Thanks in advance. Martin Becker