From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93902 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: =?utf-8?b?SXMgdGhlcmUg4oCcdG9mZnNldOKAnSBvcHRpb24g?= =?utf-8?q?for_=5Csetupbackgrounds_in_context?= Date: Fri, 26 Feb 2016 13:03:36 +0100 Message-ID: <56D03F18.2000704@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8111574558147810539==" X-Trace: ger.gmane.org 1456488272 15063 80.91.229.3 (26 Feb 2016 12:04:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Feb 2016 12:04:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 26 13:04:17 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aZH85-0002x4-F2 for gctc-ntg-context-518@m.gmane.org; Fri, 26 Feb 2016 13:04:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 128867357; Fri, 26 Feb 2016 13:03:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DZqUgmQpfLn1; Fri, 26 Feb 2016 13:03:52 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 278B5735D; Fri, 26 Feb 2016 13:03:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9D7177357 for ; Fri, 26 Feb 2016 13:03:51 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HXiqOJ1kRaSq for ; Fri, 26 Feb 2016 13:03:49 +0100 (CET) Original-Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 8C82C734D for ; Fri, 26 Feb 2016 13:03:39 +0100 (CET) Original-Received: by mail-wm0-f45.google.com with SMTP id a4so67082721wme.1 for ; Fri, 26 Feb 2016 04:03:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=xokHXOynEUpgiqZdNayhCmKyLMr/eZAM9kCJ9q68lVc=; b=RWG1DEVTPSBaobVikfiVeRMP27tG3eJ+Cy5nPKS4fF8KoEy5k9kvl7jzRtwgPs70fg 3XUFZcOvnafuFX7Lbl34RcDDIYIIN9Llc5d9ZAnSNkThXWmWGO1sQvvPTyzDKyN7WEM0 Jjt9NONnYcMlIoph7rauIwzM5eCFH22yBPDQ1tERjxhJyF2+R3Bl318QvMVmnhBkvra6 vaoTkpa7/gdNTnyRHuSrPK0jP9KEkXpl0gg0zE43soZ6pr8gMpBVbItSu0k/kUGsnJU2 C66Ls68qzNx2zONRW8wQGJ2D3oqRVdWHGtiwXuyLk28HPNibCUNBfgolfP5xU0HvBTkI E+kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=xokHXOynEUpgiqZdNayhCmKyLMr/eZAM9kCJ9q68lVc=; b=JXwyuNfeFsiq/zj2gcWEtwJBQyKG4LEJYUB18ZY9NPSEuoXRF3h4IgTBcLoliSS4Fn 4b19zS+RfbeWDaqEx6bLrni89bktSMFfU14wM3VtZkkLcsoDQtaUxyEMVwwBTIzAFLba xIERXoumsd08Ep0p/qgibJMmvrNCUonUGTweJCnSvyW/uSzWCByKq5EzA5BIWmDHZ3xy acoikFDFlKazufc/XLpyGR2ZSWcH9RzHh2lrfsHKZW6Fyj+tBh9nkdNgdAtYyGOy/fDg zxATEspu6V02E/Ea3QbQU6F/cZOIVG8x3I0WUCM5diIOqrNTcIKJueBFIPp1eoaZQvMo DfeA== X-Gm-Message-State: AD7BkJIzWdaYn8KKNzNOQ2s3ImDW5K1G+SMYbL4PnbqHuuco/PXSusyKk8k05gdndIty2Q== X-Received: by 10.194.71.46 with SMTP id r14mr1496153wju.100.1456488219307; Fri, 26 Feb 2016 04:03:39 -0800 (PST) Original-Received: from keima.localdomain (x2f259d0.dyn.telefonica.de. [2.242.89.208]) by smtp.gmail.com with ESMTPSA id gt7sm12200915wjc.1.2016.02.26.04.03.38 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 26 Feb 2016 04:03:38 -0800 (PST) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:93902 Archived-At: This is a multi-part message in MIME format. --===============8111574558147810539== Content-Type: multipart/alternative; boundary="------------030109050508070900090803" This is a multi-part message in MIME format. --------------030109050508070900090803 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Bou Salim > 26. Februar 2016 um 12:44 > I'm trying to learn `context`, and I'm satisfied with their capacities. > > I read in contextgarden=20 > that options=20 > of `\setupbackgrounds` inherit from `\setupframed`, but if I setup=20 > `toffset=3D5mm` for=20 > `\setupbackgrounds[text][text][frame=3Don,toffset=3D5mm]` I have no ef= fect? > > With `frameoffset` you can modify the four directions but how about a=20 > single direction? The background mechanism for the text areas supports only a fraction of=20 the normal framed options but you can do a lot when you use Metapost to=20 draw the background. \startuniqueMPgraphic{TextBackground} path p ; p :=3D unitsquare xscaled OverlayWidth yscaled OverlayHeigh= t ; draw p topenlarged 5mm ; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \defineoverlay[TextBackground][\uniqueMPgraphic{TextBackground}] \setuppapersize[A4] \setuppagenumbering[state=3Dnone] \setupbackgrounds[text][text][background=3DTextBackground] \starttext \input knuth \stoptext BTW: It=E2=80=99s rude to crosspost without mentioning this=20 (http://tex.stackexchange.com/questions/296037/is-there-toffset-option-fo= r-setupbackgrounds-in-context) Wolfgang --------------030109050508070900090803 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
26= .=20 Februar 2016 um 12:44
I'm tr= ying=20 to learn `context`, and I'm satisfied with their capacities.
I read in =C2=A0contextga= rden that options of `\setupbackgrounds` inherit from `\setupframed`, but if I setup `toffset=3D5mm` for=20 =C2=A0`\setupbackgrounds[text][text][frame=3Don,toffset=3D5mm]` I have no= =20 effect?=C2=A0

With `frameoffset` you can modify = the=20 four directions but how about a single direction?
The background mechanism for the text areas supports only a fraction of=20 the normal framed options but you can do a lot when you use Metapost to=20 draw the background.

\startuniqueMPgraphic{TextBackground}
=C2=A0=C2=A0=C2=A0 path p ; p :=3D unitsquare xscaled OverlayWidth yscale= d OverlayHeight ;
=C2=A0=C2=A0=C2=A0 draw p topenlarged 5mm ;
=C2=A0=C2=A0=C2=A0 setbounds currentpicture to OverlayBox ;
\stopuniqueMPgraphic

\defineoverlay[TextBackground][\uniqueMPgraphic{TextBackground}]

\setuppapersize[A4]
\setuppagenumbering[state=3Dnone]

\setupbackgrounds[text][text][background=3DTextBackground]

\starttext

\input knuth

\stoptext

BTW: It=E2=80=99s rude to crosspost without mentioning this=20 (http://tex.stackexchange.com/questions/296037/is-there-toffset-option-fo= r-setupbackgrounds-in-context)

Wolfgang
--------------030109050508070900090803-- --===============8111574558147810539== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============8111574558147810539==--