From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43669 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: images as background Date: Tue, 2 Sep 2008 22:25:44 +0200 Message-ID: <47546849-B607-4FC2-96DD-A8CBBC06761B@uni-bonn.de> References: <9EAB3C39-78E0-454D-AAB2-58BF5FB10AF2@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1220387397 8678 80.91.229.12 (2 Sep 2008 20:29:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2008 20:29:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 02 22:30:52 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KacWT-0004uj-BX for gctc-ntg-context-518@m.gmane.org; Tue, 02 Sep 2008 22:30:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 276331FDEE; Tue, 2 Sep 2008 22:29:43 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10320-01-2; Tue, 2 Sep 2008 22:28:49 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 704261FD55; Tue, 2 Sep 2008 22:28:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2F0F41FB29 for ; Tue, 2 Sep 2008 22:28:43 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10320-01 for ; Tue, 2 Sep 2008 22:27:56 +0200 (CEST) Original-Received: from mailout08.t-online.de (mailout08.t-online.de [194.25.134.20]) by ronja.ntg.nl (Postfix) with ESMTP id CDF1A1FCF4 for ; Tue, 2 Sep 2008 22:26:01 +0200 (CEST) Original-Received: from fwd30.aul.t-online.de by mailout08.sul.t-online.de with smtp id 1KacRt-0006XC-00; Tue, 02 Sep 2008 22:26:01 +0200 Original-Received: from [192.168.0.2] (bM9yR-ZvwhRpSUWv7Fdu4bclYi1zSB8Zb2EP9ZyYosBSY8GK+K+66JyPEWcq4ITwjp@[87.178.105.44]) by fwd30.aul.t-online.de with esmtp id 1KacRc-1yN2P20; Tue, 2 Sep 2008 22:25:44 +0200 In-Reply-To: <9EAB3C39-78E0-454D-AAB2-58BF5FB10AF2@uni-bonn.de> X-Mailer: Apple Mail (2.926) X-ID: bM9yR-ZvwhRpSUWv7Fdu4bclYi1zSB8Zb2EP9ZyYosBSY8GK+K+66JyPEWcq4ITwjp@t-dialin.net X-TOI-MSGID: b58d3ce7-cc01-4ac2-83fd-1ca138c1a246 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:43669 Archived-At: On Sep 2, 2008, at 9:43 PM, Thomas A. Schmitz wrote: > Hi all, > > for a presentation, I would like to have a series of images as > backgrounds for my slides, and I want to use them in a randomized > order. The images are named "1.jpg" through "20.jpg." So I was > thinking of using this code: > > \externalfigure[\directlua0{print(math.random(20))}][width= > \paperwidth] > > epecting that this should But that doesn't work, ConTeXt doesn't find > my pictures (I get "name: dummy" texts). Any idea what is going wrong? > > Thomas Got it, finally: \externalfigure[\directlua0{tex.write(math.random(20))}][width= \paperwidth] Sorry for the noise... Thomas ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________