From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66563 Path: news.gmane.org!not-for-mail From: Ian Lawrence Newsgroups: gmane.comp.tex.context Subject: Re: A question about data types? Date: Wed, 2 Mar 2011 12:39:47 +0000 Message-ID: References: <547AB1B0-2B2E-41A9-9BBD-A82E7D46573C@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=0003255735f253d3b4049d7f35a2 X-Trace: dough.gmane.org 1299069631 4746 80.91.229.12 (2 Mar 2011 12:40:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2011 12:40:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 02 13:40:27 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 1PulLu-0007dO-GT for gctc-ntg-context-518@m.gmane.org; Wed, 02 Mar 2011 13:40:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AB295CAA93; Wed, 2 Mar 2011 13:40:24 +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 imPg9qJ3Iyus; Wed, 2 Mar 2011 13:40:12 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7C57FCAA8C; Wed, 2 Mar 2011 13:40:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 47CDACAA8C for ; Wed, 2 Mar 2011 13:40:11 +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 nPwKnoidfSyx for ; Wed, 2 Mar 2011 13:39:50 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 92666CAA8A for ; Wed, 2 Mar 2011 13:39:50 +0100 (CET) Original-Received: from mail-iw0-f169.google.com (mail-iw0-f169.google.com [209.85.214.169]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p22CdnVF015484 for ; Wed, 2 Mar 2011 13:39:49 +0100 Original-Received: by iwl42 with SMTP id 42so6766860iwl.14 for ; Wed, 02 Mar 2011 04:39:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=Wn2F7NaMAmncOYuGf9+DvhJF1mWuYlEM5GKdTEO5CBI=; b=TzHY8rSaZHkimZ83XxDavxYEP5/dkoWndLdyDaAnjVj2lnRgCU6/kE3deMnhzD1+fY AqBLL4RR3wK9g6Q9pwSbcV02MD2eYi3cN3/msoTyu+KfvfewIhkaOzezDh9FXkdTwPIU fVKUJzwveEf2jpE7eF0dVc4ICKlF8aZW2Zo+8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ay3bDlOoPr3PORgvMVImSa8CE7ranBURRKdLq6TY6Zmu+S6aL4lK/3zgJJwh9nJYKS mahA3+h7sYEPx7wRCxlSH8/JZVnVHY7bhLo/fIB0n9BYyDIF2eU/AbysItUec/HiYy8X /Pq0eoWotmlmxRw17AuKmdkH81FHxS2zuYaug= Original-Received: by 10.231.30.70 with SMTP id t6mr7306784ibc.165.1299069587935; Wed, 02 Mar 2011 04:39:47 -0800 (PST) Original-Received: by 10.231.31.74 with HTTP; Wed, 2 Mar 2011 04:39:47 -0800 (PST) In-Reply-To: <547AB1B0-2B2E-41A9-9BBD-A82E7D46573C@gmail.com> 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: 0rEecDNy2 - 2d3cc47665e2 - 20110302 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:66563 Archived-At: --0003255735f253d3b4049d7f35a2 Content-Type: multipart/alternative; boundary=0003255735f253d3ab049d7f35a0 --0003255735f253d3ab049d7f35a0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Thank you both. I got as far as \dimexpr (expressions) page in the Wiki, and all the words made sense, more or less, but not the whole. In case anyone else find this useful, I have success with Wolfgang 2 and 3, with (2) being the simplest....but that may just be the fit to my brain. It's building stacked progress bars for documents with subsections, in case anyone searches this- colours and prettification to follow! Ian On 2 March 2011 11:41, Wolfgang Schuster wrote: > > Am 02.03.2011 um 12:25 schrieb Ian Lawrence: > > > 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=3D904 px, voffset=3D 28\nuggetnumber px] % plac= ement > (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 laye= r > will be 28*nuggetnumber > > Variant 1: > > \newdimen\baseoffset \baseoffset=3D28px > > \setlayer[=85][voffset=3D4\nuggetnumber]{=85} > > Variant 2: > > \def\nuggetnumber{4} > > \setlayer[=85][voffset=3D\dimexpr28px*\nuggetnumber\relax]{=85} > > Variant 3 (what i suggest): > > \definemeasure[baseoffset][28px] > \definemeasure[verticaloffset][\dimexpr\measure{baseoffset}*4\relax] % > replace =934=94 with your own factor > > \setlayer[=85][voffset=3D\measure{verticaloffset}]{=85} > > Wolfgang > > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --0003255735f253d3ab049d7f35a0 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Thank you both.

I got as far as=A0\dimexpr =A0(expressio= ns) page in the Wiki, and all the words made sense, more or less, but not t= he whole.

In case anyone else find this useful, I = have success with Wolfgang 2 and 3, with (2) being the simplest....but that= may just be the fit to my brain.


It's building stacked progress bars = for documents with subsections, in case anyone searches this- colours and p= rettification to follow!


Ian

On 2 March 2011 11:41, Wolfgang Schuster <schuster= .wolfgang@googlemail.com> wrote:

Am 02.03.2011 um 12:25 schrieb Ian Lawrence:

> Sorry. me again...and I have been all over the wiki, mailing lists and= manuals...
>
> I have this:
>
> \setlayer =A0 =A0 [progresssteps] % name of the layer
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 [hoffset=3D904 px, voffset=3D 28\nuggetnum= ber px] =A0% placement (from upper left corner of the layer)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 {\stepstack} =A0% the actual contents of t= he layer
>
> And I am hoping that as I increase nuggetnumber the voffset of the lay= er will be 28*nuggetnumber

Variant 1:

\newdimen\baseoffset \baseoffset=3D28px

\setlayer[=85][voffset=3D4\nuggetnumber]{=85}

Variant 2:

\def\nuggetnumber{4}

\setlayer[=85][voffset=3D\dimexpr28px*\nuggetnumber\relax]{=85}

Variant 3 (what i suggest):

\definemeasure[baseoffset][28px]
\definemeasure[verticaloffset][\dimexpr\measure{baseoffset}*4\relax] % repl= ace =934=94 with your own factor

\setlayer[=85][voffset=3D\measure{verticaloffset}]{=85}

Wolfgang

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" target=3D"_blank"= >http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0: http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: http://foundry.supelec.fr/projects/contextrev/
wiki =A0 =A0 : http:= //contextgarden.net
___________________________________________________________________________= ________

--0003255735f253d3ab049d7f35a0-- --0003255735f253d3b4049d7f35a2 Content-Type: image/png; name="mini-menus.png" Content-Disposition: attachment; filename="mini-menus.png" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gks8gyi30 iVBORw0KGgoAAAANSUhEUgAAACsAAAB6CAIAAACp7T3FAAAABGdBTUEAANkDQtZPoQAAAAlwSFlz AAALEwAACxMBAJqcGAAAACR0RVh0U29mdHdhcmUAUXVpY2tUaW1lIDcuNi42IChNYWMgT1MgWCkA oItfqAAAAAd0SU1FB9sDAgwmOyJLZ3MAAAYUSURBVHic7ZtJTvNKEMedAB8QJoUwREQMErtcgjWX gH2OwIodrFlxCE7AhkuwQkwCCYSIEsI88/2UevhZbbu7Q9sQ3kstUORuu/6urvpXVbfJfHx8eD8q 2Z9V30HQQdA6gsXFxUwmkzyEDzvZ3t6W+UtLS5a3WIoVgtPT0yDojY2NBBFkPiwYKWz8i4uLiYmJ RBbBCkGq8qtiISUxr0K9Xn97ewu7wtDQ0J8/f9JFwNDh4eH7+3s2m1UQcBFY09PTuVzOEUG3Zuzq 6goQ/f39kaPPz8+Yxx2Bzg8ijf/vndksExzVGxBkmqKfkC6C7xEdgn94WzshXQ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NgqLzAygP9RhT070Xi0WBqPgBIHAOGwQ6T5Gzzjh7ohUv8bQ2t1lip3Mm5UfkqBOC75H25kRy rk33Hkk79nsPhkoVahOqCQtuKK4OAmVDSSYkUKkS0/l8Hk5UIo3nopIolSNffoAmvKtleQLT9t07 pIQNwtclL/g7GLQu2EDhRLKGTWbSzSDfnJ2dCd0qgoJarVatVgWlv/MoIgUcTYRRvaf3A2i1pymR ozQqTPA+u5ew0yXQvevvT+pkvlOpOp4ziaTIyrI3EDfq90OaStWVE6lUeTqxrlQJ8nQIWw4XmNZo NASNbzbwJda9UwtFzgm2xpI7hDn83j6xnSwQhENLivFgviA1+HPCoxoxfCW6v78vFBseQs3MzAym fmiKFwhL8QAyp03BbujeM83vzyJHqSIh5lKpBHmHy0lAcJ2VcurejV+JSqTE1YkJdO+Wj/hPc+LP V6qWX4k6Vqq6WJAvogj0cDTig/CEHB8QCBIOygRNvxUUAydCyTSH4Tm8N1Xa2NiYP006OH8U0JBB AvsH3yDtHQu+CDH0NkV+Hx8fK3O2trZ8FlpfX28BQmQ/pMjOzk7wlkqlEjltdXWV0eXlZZtn+mL7 30Sbm5uifmFhoSUFiSFAyuWypc1aktZigXyY1OcnvnSisYOgg6CDoH0Q/AUZsFeL8YOmiwAAAABJ RU5ErkJggg== --0003255735f253d3b4049d7f35a2 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 ___________________________________________________________________________________ --0003255735f253d3b4049d7f35a2--