emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: [patch] ox-latex.el: support for pgf files
Date: Tue, 21 May 2013 08:23:21 +0200	[thread overview]
Message-ID: <87mwrokg12.fsf@gmail.com> (raw)
In-Reply-To: <87zjvqq7u2.fsf@pank.eu> (rasmus@gmx.us's message of "Mon, 20 May 2013 12:11:33 +0200")

Hello,

Rasmus <rasmus@gmx.us> 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

      parent reply	other threads:[~2013-05-21  6:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-20 10:11 [patch] ox-latex.el: support for pgf files Rasmus
2013-05-20 10:28 ` Rasmus
2013-05-21  6:23 ` Nicolas Goaziou [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mwrokg12.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).