From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60354 Path: news.gmane.org!not-for-mail From: varmaz@uni-bremen.de Newsgroups: gmane.comp.tex.context Subject: Re: width of definetextbackground Date: Fri, 23 Jul 2010 08:49:37 +0200 Message-ID: <20100723084937.10213955jvy2mb29@webmail.uni-bremen.de> References: <000d01cb2437$13441020$39cc3060$@de> <4C48A769.4010403@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="Yes" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1279867793 17502 80.91.229.12 (23 Jul 2010 06:49:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Jul 2010 06:49:53 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 23 08:49:51 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OcC4n-0007To-Mk for gctc-ntg-context-518@m.gmane.org; Fri, 23 Jul 2010 08:49:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 12E0DC9CD2; Fri, 23 Jul 2010 08:49:45 +0200 (CEST) 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 6HWeXBD-GaPK; Fri, 23 Jul 2010 08:49:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F400AC9AE3; Fri, 23 Jul 2010 08:49:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C2F84C9ABB for ; Fri, 23 Jul 2010 08:49:40 +0200 (CEST) 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 YI-YljhQzMlX for ; Fri, 23 Jul 2010 08:49:38 +0200 (CEST) Original-Received: from gabriel-1.zfn.uni-bremen.de (gabriel-1.zfn.uni-bremen.de [134.102.20.34]) by balder.ntg.nl (Postfix) with ESMTP id 72D09C9BAE for ; Fri, 23 Jul 2010 08:49:37 +0200 (CEST) Original-Received: from uni-bremen.de (bladez02.zfn.uni-bremen.de [134.102.20.92]) by gabriel-1.zfn.uni-bremen.de (Postfix) with ESMTP id F0D36B9D24; Fri, 23 Jul 2010 08:49:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=uni-bremen.de; s=dkim; t=1279867776; bh=/uF7SHI21MXEt4p26NdRgDE38PcPdgpihFZEKQBvb9s=; h=Message-ID:Date:From:To:Cc:References:In-Reply-To:MIME-Version: Content-Type:Content-Transfer-Encoding; b=NH5pAd0eizLCB6CDkpmn4O9P xA7TZXpw2R4rGhWbdEwyTZUdmURbjljEWoRrwd2d19ovO35+AQRdH8wskXLpSC0Chwr VLeGDHqKuMdK3PqtYxPw75PDI/c4aKGD+OV64ALR66lUtuWR9+Bn1a0KYZqXxee3f/q nBdRk1mkJA3O8= Original-Received: from p54896351.dip.t-dialin.net (p54896351.dip.t-dialin.net [84.137.99.81]) by webmail.uni-bremen.de (Horde Framework) with HTTP; Fri, 23 Jul 2010 08:49:37 +0200 In-Reply-To: <4C48A769.4010403@wxs.nl> Content-Disposition: inline User-Agent: Internet Messaging Program (IMP) H3 (4.3.6) X-ZfN: varmaz 84.137.99.81 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:60354 Archived-At: Hi Hans, hi guys, thanks for your answer, but, at least in my ConTeXt installation, it does not affect the width of the textbackground (see example 1). I also tried other approaches to set the width of a textbackground being larger than the actual text width. So far I solved it using \startnarrower. However when a page break happens within the textbackground ConTeXt does not set it properly. The dimensions of the defined textbackground are correct. however you will see the color of the background only at the first page but not after the page break. below an example (example 2). Similar happens when I have double sided pages. do you have an idea how to fix this issue? Thanks! Armin ********** EXAMPLE 1 \definetextbackground[zhu] [location=paragraph, background=color,backgroundcolor=orange, %frame=off,topframe=on, leftoffset=0.5\bodyfontsize,rightoffset=.5\bodyfontsize, topoffset=.5\bodyfontsize,bottomoffset=.5\bodyfontsize, before={\startnarrower[left,right]}, after={\stopnarrower}, width=\paperwidth, frame=off] \starttext \dorecurse{1}{\input knuth\endgraf} \startzhu \dorecurse{2}{\input bryson\endgraf} \stopzhu \dorecurse{1}{\input knuth\endgraf} \stoptext *********** EXAMPLE 2 \setupnarrower[right=-1.0cm,left=-1.0cm] \definetextbackground[zhu] [location=paragraph, background=color,backgroundcolor=orange, leftoffset=0.5\bodyfontsize,rightoffset=.5\bodyfontsize, topoffset=.5\bodyfontsize,bottomoffset=.5\bodyfontsize, before={\startnarrower[left,right]}, after={\stopnarrower}, frame=off] \startsetups important:start \starttextbackground[zhu] \stopsetups \startsetups important:stop \endgraf \stoptextbackground \stopsetups \definestartstop [important] [before=\setups{important:start}, after=\setups{important:stop}] \starttext \dorecurse{1}{\input knuth\endgraf} \startimportant \dorecurse{2}{\input bryson\endgraf} \stopimportant \dorecurse{1}{\input knuth\endgraf} \startimportant \dorecurse{3}{\input bryson\endgraf} \stopimportant \dorecurse{1}{\input knuth\endgraf} \startimportant \input bryson\endgraf \stopimportant \stoptext Zitat von Hans Hagen : > On 15-7-2010 6:02, Armin Varmaz wrote: >> Hallo, >> >> >> >> I am wondering if there is an option in \definetextbackground to get the >> output over the entire width of a page? I mean to go over the width of the >> \textwidth (for example like >> \setlayout[width=\textwidth+\outermargintotal])? > > \paperwidth > > ----------------------------------------------------------------- > 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 ___________________________________________________________________________________