From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55217 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Call for papers (pracjourn & mkiv) Date: Tue, 15 Dec 2009 16:29:54 -0500 (EST) Message-ID: References: <16826CAD-526A-4908-8188-6F3191CEED39@boede.nl> <68c491a60912150405q47de821akd7e925930241e6fb@mail.gmail.com> <200912151415.24908.alan.braslau@cea.fr> <4B27CD07.9080803@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1260912606 634 80.91.229.12 (15 Dec 2009 21:30:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Dec 2009 21:30:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 15 22:29:55 2009 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.50) id 1NKexv-0004gm-Pl for gctc-ntg-context-518@m.gmane.org; Tue, 15 Dec 2009 22:29:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 71C0AC9C96; Tue, 15 Dec 2009 22:29:53 +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 4myRHqChBPhQ; Tue, 15 Dec 2009 22:29:50 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E67A9C9C85; Tue, 15 Dec 2009 22:29:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8E92CC9C85 for ; Tue, 15 Dec 2009 22:29:48 +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 ix9wz3hxGYP2 for ; Tue, 15 Dec 2009 22:29:46 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by balder.ntg.nl (Postfix) with ESMTP id 9A488C9C40 for ; Tue, 15 Dec 2009 22:29:45 +0100 (CET) Original-Received: FROM [192.168.2.8] (c-76-28-91-31.hsd1.ct.comcast.net [76.28.91.31]) By tombraider.mr.itd.umich.edu ID 4B27FFC7.CF5B2.15897 ; Authuser adityam; 15 Dec 2009 16:29:43 EST In-Reply-To: <4B27CD07.9080803@wxs.nl> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) 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:55217 Archived-At: On Tue, 15 Dec 2009, Hans Hagen wrote: > i'll add: > > \def\doifurldefinedelse {\ctxlua{commands.doifurldefinedelse ("#1")}} > \def\doiffiledefinedelse{\ctxlua{commands.doiffiledefinedelse("#1")}} Can you also add corresponding commands in MkII. The practex module needs to work with both MkII and MkIV. > fyi ... you can use constructs like: > > function commands.doifurldefinedelse(name) > commands.doifelse(jobreferences.urls.data[name]) > end Ah, thanks. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________