From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [patch] ox-latex.el: support for pgf files Date: Tue, 21 May 2013 08:23:21 +0200 Message-ID: <87mwrokg12.fsf@gmail.com> References: <87zjvqq7u2.fsf@pank.eu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uefym-0002h1-A3 for emacs-orgmode@gnu.org; Tue, 21 May 2013 02:23:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uefyi-0001Z2-Ed for emacs-orgmode@gnu.org; Tue, 21 May 2013 02:23:24 -0400 Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:50754) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uefyi-0001Yp-8k for emacs-orgmode@gnu.org; Tue, 21 May 2013 02:23:20 -0400 Received: by mail-wi0-f175.google.com with SMTP id hn14so2664150wib.8 for ; Mon, 20 May 2013 23:23:19 -0700 (PDT) In-Reply-To: <87zjvqq7u2.fsf@pank.eu> (rasmus@gmx.us's message of "Mon, 20 May 2013 12:11:33 +0200") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus writes: > This patch adds support for pgf files. pgf is the machine upon which > tikz is build. For instance matplotlib (of Python) and printpgf (of > Octave) both produces pgf files. It's just a question of recognizing > the extension. With this patch the following document exports > correctly: > > #+TITLE: PGF test > #+LATEX_HEADER: \usepackage{pgf} > #+BEGIN_SRC emacs-lisp :exports none > (set (make-local-variable 'org-latex-pdf-process) > '("xelatex -pdf %f")) > #+END_SRC > #+BEGIN_SRC python :results raw :exports results > from matplotlib import pylab as plt > x, y = plt.rand(2) > plt.scatter(x, y) > fig = "test.pgf" > plt.savefig(fig) ## utf8 by default > return("".join(["[[file:", fig, "]]"])) > #+END_SRC Applied. Thank you. Regards, -- Nicolas Goaziou