From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76129 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Simple rings with svg Date: Thu, 10 May 2012 12:50:42 -0400 (EDT) Message-ID: References: <4FABD7F7.7070805@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1099032094-1336668644=:14235" X-Trace: dough.gmane.org 1336668213 22935 80.91.229.3 (10 May 2012 16:43:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 May 2012 16:43:33 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Thu May 10 18:43:32 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 1SSWSi-0007uL-2D for gctc-ntg-context-518@m.gmane.org; Thu, 10 May 2012 18:43:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C6086101E7; Thu, 10 May 2012 18:43:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id rbkSruXUlcZW; Thu, 10 May 2012 18:43:28 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DBCC1101E0; Thu, 10 May 2012 18:43:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EEB60101E0 for ; Thu, 10 May 2012 18:43:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id A-wHkcy5UuFM for ; Thu, 10 May 2012 18:43:27 +0200 (CEST) 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 02B96101CF for ; Thu, 10 May 2012 18:43:27 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q4AGhOF5008148 for ; Thu, 10 May 2012 18:43:26 +0200 Original-Received: FROM [192.168.1.105] ((null) [64.231.170.169]) By hackers.mr.itd.umich.edu ID 4FABF029.E50BF.3070 ; Authuser adityam; 10 May 2012 12:43:22 EDT In-Reply-To: <4FABD7F7.7070805@wxs.nl> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QH8gHpbI - 0d2a3e1bddf9 - 20120510 (trained as not-spam) 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:76129 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1099032094-1336668644=:14235 Content-Type: TEXT/PLAIN; charset=windows-1252; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 10 May 2012, Hans Hagen wrote: > On 10-5-2012 16:59, Aditya Mahajan wrote: >> On Thu, 10 May 2012, Ian Lawrence wrote: >>=20 >>> I read on the wiki that now svg is natively supported. Hmm. >>=20 >> No. You need to have inkscape installed (and in your PATH) for svg to >> pdf conversion to work. >>=20 >>> FWIW, I cannot find the intermediate file >>> 'm_k_i_v_ChangingField_ILUC.pdf' on my disk either=85both graphics file= s >>> are in the same location, both exist, both are named correctly=85. >>=20 >> @Hans, could we change the conversion so that it checks for inkscape and >> gives a more sensible warning if inkscape is absent? > > so what is a robust check ... How about just implementing the unix which command in lua? (untested code) function which(string file) local path =3D os.getenv("PATH") local splitter =3D lpeg.splitat(io.fileseparator) local directories =3D lpeg.match(splitter, path) for dir in directories if io.exists(file.join(dir,file)) then return true end end return false end --8323328-1099032094-1336668644=:14235 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 ___________________________________________________________________________________ --8323328-1099032094-1336668644=:14235--