From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: LaTeX export does not handle .pgf/.tikz images [9.3 (9.3-elpaplus @ .emacs.d/elpa/org-plus-contrib-20191203/)] Date: Sat, 07 Dec 2019 12:32:15 +0100 Message-ID: <87y2vov0ao.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37399) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idYK0-0008UH-JR for emacs-orgmode@gnu.org; Sat, 07 Dec 2019 06:32:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1idYJz-0006Zu-Jd for emacs-orgmode@gnu.org; Sat, 07 Dec 2019 06:32:24 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:56775) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1idYJz-0006Vw-DL for emacs-orgmode@gnu.org; Sat, 07 Dec 2019 06:32:23 -0500 In-Reply-To: (Arthur's message of "Fri, 6 Dec 2019 17:47:04 +1100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Arthur Cc: emacs-orgmode@gnu.org Hello, Arthur writes: > Since my last org update (today or yesterday I would say) I have been > having an issue with exporting .pgf or .tikz file to LaTeX. The > exporter always returns `nil`. > > I attached a patch that can fix this. It is not thoroughly tested by my > assumption is that the `progn` does not actually "set" variable > `image-code`, hence the `nil`. > > Attached: > - org file to reproduce the error. > - tex file output by the org exporter. > - output of `org-submit-bug-report` (it is waaay too long) > - the patch I wrote which basically removes the `progn` block and > replaces it by a single `setq`. Fixed. Thank you for the report and the patch. Regards, -- Nicolas Goaziou