From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9393 Path: main.gmane.org!not-for-mail From: Jens-Uwe Morawski Newsgroups: gmane.comp.tex.context Subject: Re: background offsets Date: Fri, 27 Sep 2002 12:46:15 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <20020927124615.0fb250a1.morawski@gmx.net> References: <20020924131810.1f3a0a5d.morawski@gmx.net> <5.1.0.14.1.20020927110256.02dffd38@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035399722 2781 80.91.224.250 (23 Oct 2002 19:02:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 19:02:02 +0000 (UTC) Original-To: ConTeXt In-Reply-To: <5.1.0.14.1.20020927110256.02dffd38@server-1> Xref: main.gmane.org gmane.comp.tex.context:9393 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9393 On Fri, 27 Sep 2002 11:04:44 +0200 Hans Hagen wrote: > At 01:18 PM 9/24/2002 +0200, Jens-Uwe Morawski wrote: > > > >Hi, > > > >for a screen-document i draw an overlay under the text-area. > >The overlay is a simple MP-figure: > > > >fill unitsquare yxscaled(\overlaywidth+6pt,\overlayheight+6pt) > > withcolor transparent (1,0.7,white) > > fill unitsquare xyscaled(OverlayWidth,OverlayHeight) enlarged 6pt ; ahh, so many MetaFun commands i don't know about :) BTW, i've tried hyperpath, hyperlink but it corrupts my PDF file. Have you used it successfully? > >This overlay is centered under the text-area giving a 3pt offset > >to every side. > > so it's under the text, then why is it transparent? because it looks nice -) Using a transparent white text background on top of a colored page background gives a not totally white background for the text. Thus there is enough contrast for the text but it looks not that flashy. > >I would prefer to specify the offset in the \setupbackgrounds > >command: > >\setupbackgrounds[text][text][offset=3pt,background=] > > backgroundoffset=3pt in the MetaFun manual is written that offset applies to both frame _and_ background. Thus i thought using offset would be enough. Thanks. Jens