From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37562 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: defining and expanding in xml Date: Mon, 26 Nov 2007 21:14:18 +0100 Message-ID: <03044B5D-DF52-418C-9604-3EB27D5D64A9@uni-bonn.de> References: <1195836565.5116.22.camel@g5.home> <4748A619.9020807@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196108135 22564 80.91.229.12 (26 Nov 2007 20:15:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Nov 2007 20:15:35 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 26 21:15:31 2007 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 1IwkMd-0004jw-Lw for gctc-ntg-context-518@m.gmane.org; Mon, 26 Nov 2007 21:15:31 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D55271FD26; Mon, 26 Nov 2007 21:15:00 +0100 (CET) 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 01133-03; Mon, 26 Nov 2007 21:14:51 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5B6A91FC71; Mon, 26 Nov 2007 21:14:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 46FDA1FC71 for ; Mon, 26 Nov 2007 21:14:49 +0100 (CET) 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 07457-01-6 for ; Mon, 26 Nov 2007 21:14:44 +0100 (CET) Original-Received: from mailout10.sul.t-online.com (mailout10.sul.t-online.de [194.25.134.21]) by ronja.ntg.nl (Postfix) with ESMTP id E163F1FC6F for ; Mon, 26 Nov 2007 21:14:44 +0100 (CET) Original-Received: from fwd28.aul.t-online.de by mailout10.sul.t-online.com with smtp id 1IwkLs-0001T1-01; Mon, 26 Nov 2007 21:14:44 +0100 Original-Received: from [192.168.0.2] (rChL9gZBrhZgK+ChK+LC7EUo3HSi19gdl2H+F8DyQ-QeK7BkQpcIoSXSv2LIzKzwF4@[91.18.79.114]) by fwd28.aul.t-online.de with esmtp id 1IwkLR-0X9ldA0; Mon, 26 Nov 2007 21:14:17 +0100 In-Reply-To: <4748A619.9020807@wxs.nl> X-Mailer: Apple Mail (2.915) X-ID: rChL9gZBrhZgK+ChK+LC7EUo3HSi19gdl2H+F8DyQ-QeK7BkQpcIoSXSv2LIzKzwF4@t-dialin.net X-TOI-MSGID: 95b935e6-6cc6-4947-a21e-6cf9c10580a3 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:37562 Archived-At: On Nov 24, 2007, at 11:30 PM, Hans Hagen wrote: > Thomas A. Schmitz wrote: > > >> \define\sln >> {\externalfigure[presentations/07_11_23.pdf][page= >> \currentSlideNumber]\incrementSlideNumber} > > does it work with simple filenames? like abc.pdf? > Thank you, Hans. Wolfgang Schuster was kind enough to help me off- list; he provided a solution that works wonderfully. If anybody is interested, here's the relevant code: \def\CurPres#1{\gdef\doCurPres{#1}} \def\sln {\blank[line] \incrementSlideNumber % vor dem Bild notwendig? \midaligned{\externalfigure[\doCurPres] [page={\getnumber[SlideNumber]},width=.75\textwidth]} \blank[line]} and in order to provide the translation xml --> ConTeXt: \defineXMLargument [present] \CurPres Not sure if this is of interest to anybody; if it is, I'll wikify it. All best, and thanks to Wolfgang! 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 ___________________________________________________________________________________