From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30789 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: runMPgraphicstrue produces undefined figure Date: Wed, 13 Sep 2006 05:12:02 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1158120743 2899 80.91.229.2 (13 Sep 2006 04:12:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Sep 2006 04:12:23 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 13 06:12:21 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1GNM6h-0007RA-UY for gctc-ntg-context-518@m.gmane.org; Wed, 13 Sep 2006 06:12:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CAB6F1FDE8; Wed, 13 Sep 2006 06:12:14 +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 11811-07; Wed, 13 Sep 2006 06:12:08 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1901E1FDDF; Wed, 13 Sep 2006 06:12:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6F1A41FDDF for ; Wed, 13 Sep 2006 06:12:06 +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 12118-01 for ; Wed, 13 Sep 2006 06:12:05 +0200 (CEST) Original-Received: from mraos.ra.phy.cam.ac.uk (mraos.ra.phy.cam.ac.uk [131.111.48.8]) by ronja.ntg.nl (Postfix) with SMTP id 0D54B1FDC7 for ; Wed, 13 Sep 2006 06:12:04 +0200 (CEST) Original-Received: from skye.ra.phy.cam.ac.uk ([131.111.48.158] ident=mail) by mraos.ra.phy.cam.ac.uk with esmtp (Exim 4.43) id 1GNM6V-0004JR-8f; Wed, 13 Sep 2006 05:12:03 +0100 Original-Received: from sanjoy by skye.ra.phy.cam.ac.uk with local (Exim 3.36 #1) id 1GNM6U-0002QB-00; Wed, 13 Sep 2006 05:12:02 +0100 Original-To: mailing list for ConTeXt users In-Reply-To: Your message of "Tue, 12 Sep 2006 18:07:24 EDT." X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:30789 Archived-At: > Check your log file for > > systems : system commands are enabled Thanks, that was the problem. It was saying 'disabled' instead. The fix was to change /etc/texmf/texmf.cnf to enable write18. The shell_escape line has to be set to 't' rather than 'f', i.e.: shell_escape = t Actually, on my system (Ubuntu, a Debian derivative), changing the texmf.cnf file directly is not a good idea. Instead one should change the same line in /etc/texmf/texmf.d/95NonPath.cnf and then run 'update-texmf' as root to generate the texmf.cnf file. Warning: If you've enabled 'shell_escape', then don't run *TeX on untrusted files, in case they do anything malicious like 'rm -fr /'. Also now I see how I got fooled into thinking that write18 was already enabled. The one-line tex file from metafun-s.pdf contains \immediate\write18{echo It works}. When run it produces an "It works" whether or not write18 is enabled. If disabled: (./3.tex echo It works ) which made me think that all was okay. If enabled you get this: \write18 enabled. (./3.texIt works ) -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.