From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Cubizolles Subject: Problems with LaTeX source block Date: Mon, 15 Jul 2013 10:34:49 +0200 Message-ID: <8761wcjk5y.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyeFR-00005P-I8 for emacs-orgmode@gnu.org; Mon, 15 Jul 2013 04:35:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UyeFP-0002sb-OP for emacs-orgmode@gnu.org; Mon, 15 Jul 2013 04:35:09 -0400 Received: from plane.gmane.org ([80.91.229.3]:40198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyeFP-0002sG-Hs for emacs-orgmode@gnu.org; Mon, 15 Jul 2013 04:35:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UyeFO-0006TI-II for emacs-orgmode@gnu.org; Mon, 15 Jul 2013 10:35:06 +0200 Received: from 37.160.18.98 ([37.160.18.98]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Jul 2013 10:35:06 +0200 Received: from j.cubizolles by 37.160.18.98 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Jul 2013 10:35:06 +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: emacs-orgmode@gnu.org I'm struggling with LaTeX source blocks and am not sure anymore if one can use the :results file header. I have a csv file to be processed by tikz to get a png picture displayed in my org buffer. Here is what I tried #+NAME: python-tikz #+header: :results file :file py2tikz_sin.png #+header: :fit yes :headers '("\\usepackage{tikz,pgfplots}") #+BEGIN_SRC latex :exports results \begin{tikzpicture} \begin{axis} \addplot table {sin_py2csv.csv}; \end{axis} \end{tikzpicture} 'py2tikz_sin.png' #+END_SRC #+RESULTS: python-tikz #+BEGIN_LaTeX [[file:py2tikz_sin.png]] #+END_LaTeX Two problems with that: the py2tikz_sin.png file isn't produced (the latex code is correct though) and I was under the impression that the :results file header should give a #RESULTS without the LaTeX block (it's what I get for python blocks anyway). The data is produced by python (I can get python-babel to work !) and I could get a png directly through python-babel but latex-babel should be able to do it, right ? Julien.