* background offsets
@ 2002-09-24 11:18 Jens-Uwe Morawski
2002-09-27 9:04 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Jens-Uwe Morawski @ 2002-09-24 11:18 UTC (permalink / raw)
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) ;
This overlay is centered under the text-area giving a 3pt offset
to every side.
I would prefer to specify the offset in the \setupbackgrounds
command:
\setupbackgrounds[text][text][offset=3pt,background=<overlay-name>]
and use in the MP-figure only:
fill unitsquare yxscaled(\overlaywidth,\overlayheight)
withcolor transparent (1,0.7,white) ;
but this only works for \framed, not for \setupbackgrounds. Why?
Thanks.
Best,
Jens
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: background offsets
2002-09-24 11:18 background offsets Jens-Uwe Morawski
@ 2002-09-27 9:04 ` Hans Hagen
2002-09-27 10:46 ` Jens-Uwe Morawski
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2002-09-27 9:04 UTC (permalink / raw)
Cc: ConTeXt
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 ;
>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?
>I would prefer to specify the offset in the \setupbackgrounds
>command:
>\setupbackgrounds[text][text][offset=3pt,background=<overlay-name>]
backgroundoffset=3pt
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: background offsets
2002-09-27 9:04 ` Hans Hagen
@ 2002-09-27 10:46 ` Jens-Uwe Morawski
0 siblings, 0 replies; 3+ messages in thread
From: Jens-Uwe Morawski @ 2002-09-27 10:46 UTC (permalink / raw)
On Fri, 27 Sep 2002 11:04:44 +0200
Hans Hagen <pragma@wxs.nl> 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=<overlay-name>]
>
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-09-27 10:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-24 11:18 background offsets Jens-Uwe Morawski
2002-09-27 9:04 ` Hans Hagen
2002-09-27 10:46 ` Jens-Uwe Morawski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).