From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74635 Path: news.gmane.org!not-for-mail From: Mari Voipio Newsgroups: gmane.comp.tex.context Subject: Re: Getting changing/random graphics? Date: Wed, 22 Feb 2012 09:32:30 +0200 Message-ID: References: <20120216105324.4c55e5e8@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1329895978 4314 80.91.229.3 (22 Feb 2012 07:32:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Feb 2012 07:32:58 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 22 08:32:57 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S06h3-0008Pg-Kj for gctc-ntg-context-518@m.gmane.org; Wed, 22 Feb 2012 08:32:53 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E313BCB236; Wed, 22 Feb 2012 08:32:52 +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 W9wFEw15Pr7O; Wed, 22 Feb 2012 08:32:47 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2C83ECB231; Wed, 22 Feb 2012 08:32:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0111FCB231 for ; Wed, 22 Feb 2012 08:32:46 +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 f+ZYuHNoDHwh for ; Wed, 22 Feb 2012 08:32:31 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 22B5ACB211 for ; Wed, 22 Feb 2012 08:32:31 +0100 (CET) Original-Received: from mail-lpp01m010-f41.google.com (mail-lpp01m010-f41.google.com [209.85.215.41]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q1M7WU9J001068 for ; Wed, 22 Feb 2012 08:32:30 +0100 Original-Received: by lamf4 with SMTP id f4so11466909lam.14 for ; Tue, 21 Feb 2012 23:32:30 -0800 (PST) Received-SPF: pass (google.com: domain of mvoipio@gmail.com designates 10.112.85.33 as permitted sender) client-ip=10.112.85.33; Authentication-Results: mr.google.com; spf=pass (google.com: domain of mvoipio@gmail.com designates 10.112.85.33 as permitted sender) smtp.mail=mvoipio@gmail.com; dkim=pass header.i=mvoipio@gmail.com Original-Received: from mr.google.com ([10.112.85.33]) by 10.112.85.33 with SMTP id e1mr11228826lbz.45.1329895950273 (num_hops = 1); Tue, 21 Feb 2012 23:32:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=hl9HHEqehsfk5DKMhF9yrBa5Knwk8vo0K3d5r9jWuDE=; b=Yd1wAazVYdlcb3LTNJcx4CQMT8XhZgmsKRrAFcu5BPmGVK5SGTMZb+McXT5LQJw5dy aUH8vnoxQcra2CCMPN5qGOONXxhBwndhhA2VWkB4JdpiubbbusZy4hYl3z/YwQx8ZkPe zPKOe0gCpCXiAjQs8RQpfDzY19ipzP2MHZNcA= Original-Received: by 10.112.85.33 with SMTP id e1mr9439680lbz.45.1329895950158; Tue, 21 Feb 2012 23:32:30 -0800 (PST) Original-Received: by 10.152.37.103 with HTTP; Tue, 21 Feb 2012 23:32:30 -0800 (PST) In-Reply-To: <20120216105324.4c55e5e8@homerow> X-Google-Sender-Auth: 4eBPxf1zR7D9tpqY_nBsu4DlCKI X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.41; 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: 03GATwuSl - 23054fc58b5d - 20120222 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:74635 Archived-At: On Thu, Feb 16, 2012 at 11:53, Marco wrote: > On 2012-02-16 Mari Voipio wrote: > >> So, if I have >> >> photo1.jpg >> photo2.jpg >> photo3.jpg >> photo4.jpg >> >> and \dorecurse{10}{insert random photo here}, how do I do it? > > \dorecurse{4}{\externalfigure[photo\recurselevel]} > > Beware, \recurselevel =A0counts go =A0like this =A01 2 3 4 5 =85. =A0If y= our > photos are not numbered according to this scheme, the 10th picture > will bite you. Beautiful, it works - and I even understand it. :-) And I managed to figure out by myself that I can do a nested \dorecurse to multiply this: \dorecurse{3}{\dorecurse{6}{\externalfigure[pikkukuva\recurselevel][height= =3D25mm,frame=3Don]}} My not be the most elegant (or fastest compiling!) solution, but this one I can definitely get to work and it'll suit my purpose well enough. Thank you, Mari ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________