From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81358 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Framed: Individual background offsets Date: Sat, 23 Mar 2013 17:49:17 +0100 Message-ID: References: <20130323135636.GE9268@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1364057367 26080 80.91.229.3 (23 Mar 2013 16:49:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Mar 2013 16:49:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 23 17:49:53 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UJRdd-0003dK-FN for gctc-ntg-context-518@m.gmane.org; Sat, 23 Mar 2013 17:49:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7C519101E3; Sat, 23 Mar 2013 17:49:25 +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 2s8XD8xNcQA9; Sat, 23 Mar 2013 17:49:24 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E14C3101E4; Sat, 23 Mar 2013 17:49:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4FC09101E4 for ; Sat, 23 Mar 2013 17:49:22 +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 o1OQ3oz0WdCT for ; Sat, 23 Mar 2013 17:49:21 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 96D09101E3 for ; Sat, 23 Mar 2013 17:49:21 +0100 (CET) Original-Received: from mail-ee0-f51.google.com (mail-ee0-f51.google.com [74.125.83.51]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r2NGnLHM009827 for ; Sat, 23 Mar 2013 17:49:21 +0100 Original-Received: by mail-ee0-f51.google.com with SMTP id d17so2615562eek.10 for ; Sat, 23 Mar 2013 09:49:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=DkO+8LI9B23dbquKDZ8alvxy+RcOQkzKB0/g9IckZVI=; b=SuyVh/4pyNze3UREcFcUbHIMgwJnNVLf9NQoU+X5qMNMk8Uw4mY8cu/XIhzH1BUZkL P1JVWtt+yHXk0P/xXYX24RNeSPTSev0vTaTKnFtVUeP8bgucssHzMhSHWLNE4zvTcLDn 3eyuoYUv1WeujaDdDinKyMRzAFKwEvG/mDNDTVNuS8k9BB7znBA3DXsklPGY16wt3733 ilG9+AJGEjJz9iR2bYGGVU8P6pEZBO8OydGK1jibACjZNpYoP0Bt+4M6uIejg+7y1iWj 5GlURGN7quKxTEkC8rg8ez6F7rBV1TTrisvZNnjQMQt9FqT8vQR8TTsq6jzJvS2zhzpB GgUA== X-Received: by 10.14.207.200 with SMTP id n48mr16182087eeo.4.1364057360995; Sat, 23 Mar 2013 09:49:20 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4d07522a.pool.mediaWays.net. [77.7.82.42]) by mx.google.com with ESMTPS id 46sm9186773eea.3.2013.03.23.09.49.19 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 23 Mar 2013 09:49:19 -0700 (PDT) In-Reply-To: <20130323135636.GE9268@homerow> X-Mailer: Apple Mail (2.1503) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.51; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QJf4Nl45 - 5c825d1973d1 - 20130323 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:81358 Archived-At: Am 23.03.2013 um 14:56 schrieb Marco Patzer : > Hi, > > how can I set individual offsets for the background, similar to > loffset, roffset, etc.? > > \defineframedtext > [foo] > [frame=off, > offset=none, > backgroundoffset=1cm, > %% backgroundloffset=1cm, %% there is no backgroundloffset > background=screen] > > \starttext > > %% backgroundoffset is applied on all four sides > \startfoo > \input ward > \stopfoo > > \input knuth > > %% this is what I'm aiming for > \startnarrower [-1cm] > \startfoo [backgroundoffset=0cm, loffset=1cm] > \input ward > \stopfoo > \stopnarrower > > \stoptext \startuseMPgraphic{framed:background} fill unitsquare xyscaled(OverlayWidth,OverlayHeight) leftenlarged 1cm withcolor \MPcolor{lightgray}; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[framed:background][\useMPgraphic{framed:background}] \defineframedtext [foo] [frame=off, offset=none, background=framed:background] \starttext \startfoo \input ward \stopfoo \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________