From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19643 Path: news.gmane.org!not-for-mail From: "GEERT@telefonica.net" Newsgroups: gmane.comp.tex.context Subject: hyphenation within columnsets with background Date: Wed, 06 Apr 2005 12:21:49 +0200 Message-ID: <73f5573532.7353273f55@teleline.es> 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 1112782821 5333 80.91.229.2 (6 Apr 2005 10:20:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Apr 2005 10:20:21 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 06 12:20:19 2005 Return-path: 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 1DJ7db-0005AH-95 for gctc-ntg-context-518@m.gmane.org; Wed, 06 Apr 2005 12:19:55 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E8D8812822; Wed, 6 Apr 2005 12:22:01 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18343-09; Wed, 6 Apr 2005 12:21:57 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 35C5C127B1; Wed, 6 Apr 2005 12:21:57 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B2B33127B1 for ; Wed, 6 Apr 2005 12:21:55 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18349-05 for ; Wed, 6 Apr 2005 12:21:54 +0200 (CEST) Original-Received: from tefdsmtp2.mail.isp (unknown [213.4.129.49]) by ronja.ntg.nl (Postfix) with ESMTP id C8D6612788 for ; Wed, 6 Apr 2005 12:21:54 +0200 (CEST) Original-Received: from teleline.es ([10.20.4.99]) by tefdsmtp2.mail.isp (Netscape Messaging Server 4.15 tefdsmtp2 Mar 14 2002 21:29:48) with ESMTP id IEISSD00.WS2 for ; Wed, 6 Apr 2005 12:21:49 +0200 Original-To: ntg-context@ntg.nl X-Mailer: Netscape Webmail Content-Language: es X-Accept-Language: es Content-Disposition: inline X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:19643 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19643 Hi, I am preparing a rather large text, completely set in 3 columns, which has lots of text with grey backgrounds. During the preparation of this text, some questions came up : 1 - At first I put a grey background to my texts defining the following macros (they are used within columnsets): ===================================================================== %start setting the text with a light grey background \def\startlightgreybox{\setupframedtexts[frame=off, background=color, backgroundcolor=lightgrey, width=broad] \startframedtext {\bf Some frame title}} %stop setting the text with a light grey background \def\stoplightgreybox{\stopframedtext} ===================================================================== After a while, and to see what difference there was between both, I redefined both macros as : ======================================================================= = %start setting the text with a light grey background \def\startlightgreybox{\setupbackground[background=color, backgroundcolor=lightgrey] \startbackground {\bf Some frame title}} %stop setting the text with a light grey background \def\stoplightgreybox{\stopbackground} ======================================================================= == And to my surprise, I saw, that hyphenation works clearly better when my backgrounds are defined with the second set of macros, which is of course good news, especially when using 3 columns, but : is there an explanation for this behaviour ? 2 - Another problem I have with those backgrounds is the following : they seem to work well when the text spreads over several columns/pages, as long as I don't force a 'next column' in the text. The following piece of context causes a 'TeX capacity exceeded' error: \setupcolors[state=start] \definecolumnset[driekol][n=3] \setupbackground[background=color, backgroundcolor=gray] \starttext \startcolumnset[driekol] \startbackground this is the text I would like to have with a grey background \column and with a possibility to split columns ``manually'' when necessary \stopbackground \stopcolumnset \stoptext In the rare cases where I want to force a jump to the next column, I replace the \column command with: \stopbackground \column \startbackground Is this the only way to force column jumps when using backgrounds ? Thanks, Geert