From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/2072 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: setup -- when is it expanded? Date: Sun, 21 May 2000 22:32:33 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20000521223233.00830d50@pop.wxs.nl> References: <3.0.6.32.20000518144918.01784cf0@pop.wxs.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035392862 5629 80.91.224.250 (23 Oct 2002 17:07:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:07:42 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Michal Kvasnicka In-Reply-To: <39266FAC.CC2FECF4@econ.muni.cz> Xref: main.gmane.org gmane.comp.tex.context:2072 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:2072 At 12:57 PM 5/20/2000 +0200, Michal Kvasnicka wrote: >Well, my fault -- bad example. But anyway, how does it work? Let's suppose >I want to set some distance in the \setup... macro to a \baselineskip. Will >it be >relative to the current baselineskip in the document, or is it set up to the >\baselineskip >in the time when \setup... macro is processed? It depends. In many cases context does what you expect. Nearly all setup macros only store values and switch states. This means that setting something to \somedimension results in an adapting something. Some setups indeed so some pre-processing, for instance to save re-processing time. If you want a fixed something, you can always say something: \expanded{\setupwhatever[height=\the\baselineskip]} This will expand \the\baselineskip into a fixed value. There are (as far as I know) no setups that are dependant of the order in which they appear. [in the back of my mind there are a few, but I think I already adapted them] It's different with \define macros; \definecolor[red][r=.6] \definecolor[veryred][red] In this case, very red is fixed at definition time. I may change this -) So, the answer to your question is: when needed. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl -----------------------------------------------------------------