From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/23926 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: margin displacement when using backgrounds? Date: Tue, 29 Nov 2005 17:33:43 +0100 Message-ID: <438C82E7.3010408@elvenkind.com> References: <438C73B4.6000404@elvenkind.com> <438C7D6D.5000300@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1133282647 30944 80.91.229.2 (29 Nov 2005 16:44:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2005 16:44:07 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 29 17:44:03 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 1Eh8Pe-0003IK-BL for gctc-ntg-context-518@m.gmane.org; Tue, 29 Nov 2005 17:33:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E754A127BD; Tue, 29 Nov 2005 17:33:01 +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 24657-03; Tue, 29 Nov 2005 17:32:58 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BDF9F127F0; Tue, 29 Nov 2005 17:32:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 60A69127F0 for ; Tue, 29 Nov 2005 17:32:56 +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 24683-08 for ; Tue, 29 Nov 2005 17:32:55 +0100 (CET) Original-Received: from glenfiddich.elvenkind.com (elvenknd.xs4all.nl [213.84.171.68]) by ronja.ntg.nl (Postfix) with ESMTP id 70D6A127BD for ; Tue, 29 Nov 2005 17:32:55 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id 284141833D for ; Tue, 29 Nov 2005 17:32:55 +0100 (CET) Original-Received: from glenfiddich.elvenkind.com ([127.0.0.1]) by localhost (glenfiddich.elvenkind.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20753-04 for ; Tue, 29 Nov 2005 17:32:54 +0100 (CET) Original-Received: from [10.10.0.6] (glenlivet.elvenkind.com [10.10.0.6]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id D0497181F3 for ; Tue, 29 Nov 2005 17:32:54 +0100 (CET) User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <438C7D6D.5000300@wxs.nl> X-Virus-Scanned: by amavisd-new at elvenkind.net X-Virus-Scanned: 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:23926 Archived-At: Hans Hagen wrote: > probably some interaction, best use > > \definetextbackground[taco][location=paragraph,frame=off] > > A\inleft{test1} b > > \starttextbackground[taco] > A\inleft{test2} b > \stoptextbackground No problem since \startbackground has a number of other problems as well (esp. regarding float placements) that I'd be happy to get away from, but (never having used textbackgrounds seriously before) is there a simple way to get the equivalent of \setupbackground[frame=off,leftframe=on] using textbackgrounds? My previous set of definitions was: %D how examples look \defineenumeration [Example] [style={\switchtobodyfont[9pt]}, headstyle={\ss\bf}, before=, after=, inbetween=\noindent, text=Voorbeeld, indentnext=no, indenting=yes, chapternumber=yes] \def\startexample% {\blank \start \setupbackground [frame=off, leftframe=on, offset=0pt, width=broad, background=, rulethickness=2pt, framecolor=examplecolor] \startbackground \startnarrower[left] \startExample } \def\stopexample% {\stopExample \stopnarrower \stopbackground \stop \blank }