From: Sietse Brouwer <sbbrouwer@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Layers, overlays
Date: Thu, 24 Jan 2013 17:06:04 +0100 [thread overview]
Message-ID: <CAF=dkzzq-8auPykhrR7_6_00KqugFT_VPH2h4kG8axvcjTksmQ@mail.gmail.com> (raw)
In-Reply-To: <op.wq3lxqdctpjj8f@lpr>
Hello Lukáš,
I don't understand layers and overlays. This is what I could learn
about \tightlayer from the source; I hope that reviving your question
will help somebody else actually answer it.
\tightlayer is defined in pack-lyr.mkiv.
\unexpanded\def\tightlayer[#1]%
{\hbox
{\def\currentlayer{#1}% todo: left/right
\setbox\nextbox\emptybox % hoogte/breedte are
\wd\nextbox/\ht\nextbox
\hsize\layerparameter\c!width % \overlaywidth = \hsize
\vsize\layerparameter\c!height % \overlaywheight = \vsize
\composedlayer{#1}}}
The last command flushes the layer we are about to place:
\composedlayer{x} is syntactic sugar for \flushlayer[x]. (Braces vs.
brackets.)
So it seems that what \tightlayer does is create a layer object
exactly as large as its contents? What this is good for, and how it
relates to overlays, I do not know.
Good luck!
--Sietse
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2013-01-24 16:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-18 8:30 Procházka Lukáš Ing. - Pontex s. r. o.
2013-01-24 16:06 ` Sietse Brouwer [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='CAF=dkzzq-8auPykhrR7_6_00KqugFT_VPH2h4kG8axvcjTksmQ@mail.gmail.com' \
--to=sbbrouwer@gmail.com \
--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).