ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter Rolf <indiego@gmx.net>
Subject: Re: absolute positioning of figures
Date: Fri, 13 Oct 2006 19:58:52 +0200	[thread overview]
Message-ID: <452FD3DC.3050006@gmx.net> (raw)
In-Reply-To: <95ffd647a24c1e63979d6d1fc239ee12@di.unito.it>

andrea valle wrote:
> Example:
> 
> \definelayer    [layer2a][width=.15\paperwidth]
> 
> \setlayer       [layer2a]
>                  [x=.15\paperwidth, y=.5\paperheight]
>                  {\externalfigure[layTest][width=.75\paperwidth]}
>
extend your example with

\clip[width=.15\paperwidth,height=<define
one>,hoffset=0pt,voffset=0pt]{\externalfigure..}

and you can see the difference.. (no picture in the smaller layer).

As I already mentioned, the size is (only?) significant, if you change
the default positioning (reference point). For example, you want to
place something with an offset of 2cm to the right bottom corner of the
layer. Therefore you need the exact width and height of the layer.
All default positioning (relative to top left corner of the layer)
doesn't care about the size, as there is no difference (no calculation
is needed).

I hope I have made myself clear.

Greetings, Peter

> 
> I was expecting to have the layTest figure cut after its width exceeds 
> the layer's width. It seems that this is unrelevant, i.e.
> 
> If I have instead of this:
> 
> \definelayer    [layer2a][width=.15\paperwidth]
> 
> this:
> \definelayer    [layer2a][width=.75\paperwidth]
> 
> It's the same.
> 
> So, I cannot understand what width means for layers, as changing it has 
> no consequences (in my example).
> 
> Best
> 
> -a-
> 
> 
> 
> 
> 
> 
> On 13 Oct 2006, at 18:31, Hans Hagen wrote:
>> \definelayer[blabla][width=20cm,height30cm]
>>
>> etc etc
>>
>> -- 
>>
>> -----------------------------------------------------------------
>>                                           Hans Hagen | PRAGMA ADE
>>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>>                                              | www.pragma-pod.nl
>> -----------------------------------------------------------------
>>
>> _______________________________________________
>> ntg-context mailing list
>> ntg-context@ntg.nl
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>
>>
> Andrea Valle
> DAMS - Facoltà di Scienze della Formazione
> Università degli Studi di Torino
> http://www.semiotiche.it/andrea
> andrea.valle@unito.it
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 

      reply	other threads:[~2006-10-13 17:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-12 21:30 andrea valle
2006-10-12 22:00 ` Hans Hagen
2006-10-12 22:45   ` andrea valle
2006-10-13 14:33     ` andrea valle
2006-10-13 15:54       ` Peter Rolf
2006-10-13 16:22         ` andrea valle
2006-10-13 16:31           ` Hans Hagen
2006-10-13 16:56             ` andrea valle
2006-10-13 17:58               ` Peter Rolf [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=452FD3DC.3050006@gmx.net \
    --to=indiego@gmx.net \
    --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).