ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* placing layers
@ 2020-01-24 20:16 Pablo Rodriguez
  0 siblings, 0 replies; only message in thread
From: Pablo Rodriguez @ 2020-01-24 20:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I have the following sample:

    \setupexternalfigures[location=default]
    \starttext

    \definelayer[abc][hoffset=1cm, voffset=5cm]
    \setlayer[abc]{\externalfigure[cow.pdf][frame=on]}

    \definelayer[xyz][hoffset=12cm, voffset=5cm]
    \setlayer[xyz]{\externalfigure[spider.eps]}

    \setupbackgrounds[page][background={abc, xyz}]

    \null
    \stoptext

Is therea way to set the voffset value of the xyz layer to the value of
voffset of the abc layer plus the half of the height of that layer?

I mean, something like: voffset = ( abc.voffset() + (abc.height()/2) )

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-24 20:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-24 20:16 placing layers Pablo Rodriguez

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).