From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66559 Path: news.gmane.org!not-for-mail From: Ian Lawrence Newsgroups: gmane.comp.tex.context Subject: A question about data types? Date: Wed, 2 Mar 2011 11:25:32 +0000 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0183133218==" X-Trace: dough.gmane.org 1299065165 12914 80.91.229.12 (2 Mar 2011 11:26:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2011 11:26:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 02 12:26:00 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PukBs-0005Gr-4f for gctc-ntg-context-518@m.gmane.org; Wed, 02 Mar 2011 12:26:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 97DD4CAA91; Wed, 2 Mar 2011 12:25:59 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id l3uj4oLtAWiF; Wed, 2 Mar 2011 12:25:47 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 854C9CAA8A; Wed, 2 Mar 2011 12:25:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DBED7CAA8A for ; Wed, 2 Mar 2011 12:25:45 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Bd9ZCsNEtkPz for ; Wed, 2 Mar 2011 12:25:34 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id BE58BCAA89 for ; Wed, 2 Mar 2011 12:25:34 +0100 (CET) Original-Received: from mail-iw0-f169.google.com (mail-iw0-f169.google.com [209.85.214.169]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p22BPXru001007 for ; Wed, 2 Mar 2011 12:25:33 +0100 Original-Received: by iwl42 with SMTP id 42so6696208iwl.14 for ; Wed, 02 Mar 2011 03:25:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=4oS/nObyNavRFkRqKoYivHZGZqqXSKbpKvUQiMJBJks=; b=JlVx/3sO5+xdyZM26ijVSGFqdF9gWvRaG+SVs8b3Mvqxkas9IOARRDBI0OHDZVgdyU o9x2BPo02dV3adOUyUpbY7a2T4Lf8oEFikEHp/75FINfHCi7Gn7qbHQa+s5wIqsiEdnC zbRIjc7ZF8mO2g2mWdP0e9TpoS9VZq9PBLeHM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=JlwlST3dsrEcj8jXaGn6k7CHWIOxGiPZexVNqY2sH4FiyYwgghFoZ6Qg5o59c3Cj00 qj5DFGxhPpZ2LEhGdoUONYVF9tmaDLyiAQGxRd51qpaMmVzu1L7+5HSLx2ErqVrWEHJp JG0HSLT28aNWeqSltTCLbg+QsIjWHA443ODSQ= Original-Received: by 10.231.30.70 with SMTP id t6mr7255786ibc.165.1299065132922; Wed, 02 Mar 2011 03:25:32 -0800 (PST) Original-Received: by 10.231.31.74 with HTTP; Wed, 2 Mar 2011 03:25:32 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06Eebpxzf - dac11cdaf10c - 20110302 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:66559 Archived-At: --===============0183133218== Content-Type: multipart/alternative; boundary=0003255735f2c9b719049d7e2b79 --0003255735f2c9b719049d7e2b79 Content-Type: text/plain; charset=ISO-8859-1 Sorry. me again...and I have been all over the wiki, mailing lists and manuals... I have this: \setlayer [progresssteps] % name of the layer [hoffset=904 px, voffset= 28\nuggetnumber px] % placement (from upper left corner of the layer) {\stepstack} % the actual contents of the layer And I am hoping that as I increase nuggetnumber the voffset of the layer will be 28*nuggetnumber I am setting nuggetnumber like this for the moment: \def \nuggetnumber{3} (in the other dev document it is the result of counter, so set dynamically) and this in the text \nuggetnumber which compiles to '3', so I assume the assignment is good to go. varying both nuggetnumber and the scale factor (28) shift the layer up and down, but not in a way that suggests that 28\nuggetnumber is being evaluated as a product (so a scale factor of 7 and a nuggetnumber of 2 do not give the same output as a scale factor of 2 and a nuggetnumber of 7). So I am led to think that there is something in the evaluating that is going wrong - data types / units? (if I hard code in the results I am expecting, say 28 px, 56 px or 84 px then I get exactly what I want... Thanks, as ever (Same result in ConTEXt ii or iv) Ian --0003255735f2c9b719049d7e2b79 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sorry. me again...and I have been all over the wiki, mailing lists and manu= als...

I have this:

\setlayer [progressste= ps] % name = of the layer
[hof= fset=3D904 px, voffset=3D 28\nuggetnumber px] =A0% placement (from upper le= ft corner of the layer)
{\stepstack} =A0% the actual contents of the layer=

And I am hoping that as I increase nuggetnumber the vof= fset of the layer will be 28*nuggetnumber

I am set= ting nuggetnumber like this for the moment:

\def \= nuggetnumber{3}

(in the other dev document it is the result of counter,= so set dynamically)=A0

and this in the text
=

\nuggetnumber

which compiles t= o '3', so I assume the assignment is good to go.

varying both nuggetnumber and the scale factor (28) shi= ft the layer up and down, but not in a way that suggests that=A028\nuggetnu= mber is being evaluated as a product (so a scale factor of 7 and a nuggetnu= mber of 2 do not give the same output as a scale factor of 2 and a nuggetnu= mber of 7).

So I am led to think that there is something in the eva= luating that is going wrong - data types / units? (if I hard code in the re= sults I am expecting, say 28 px, 56 px or 84 px then I get exactly what I w= ant...

Thanks, as ever

(Same result i= n ConTEXt ii or iv)
Ian
--0003255735f2c9b719049d7e2b79-- --===============0183133218== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0183133218==--