ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: layer placement question
Date: Sun, 15 Jan 2006 23:39:33 +0100	[thread overview]
Message-ID: <43CACF25.50002@wxs.nl> (raw)
In-Reply-To: <5BAC624E-94F8-4816-B014-362B275390B4@fiee.net>

Henning Hraban Ramm wrote:

> Am 2006-01-15 um 19:36 schrieb Hans Hagen:
>
>>> I would expect that the x/y coordinates in \setlayer(framed)  
>>> relate  to the layer's origin (-3, -3) and thus my logo gets  placed 
>>> at (130,  -3).
>>> But in fact it's placed at (133, -3), i.e. x starts at 0 instead  
>>> of  -3. Why?
>>
>> x and y are unique for each \setlayer, use hoffset/voffset instead
>
> Thank you, I didn't understand that from the docs.
> And in fact not even from your statement.
>
> Seems like x/y always use the upper left corner of the paper,
> while hoffset/voffset use the upper left corner of the layer.

no, it depends on the combination of align and corner (in core-box.tex 
you can see presets being defined, so with preset=rightbottom, x/y start 
from the rightbottom)

>
> But if I use \placelayer instead of backgrounds, x/y is relative to  
> the text area.
> Is that intended? (See my mail "layer question".)

indeed, put it in a \ruledhbox and you will see

(there is \tightlayer and such in order to get different results)

Hans

      reply	other threads:[~2006-01-15 22:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-14 22:15 layer question Henning Hraban Ramm
2006-01-15 12:43 ` layer placement question Henning Hraban Ramm
2006-01-15 18:36   ` Hans Hagen
2006-01-15 20:36     ` Henning Hraban Ramm
2006-01-15 22:39       ` Hans Hagen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43CACF25.50002@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).