From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Cubizolles Subject: Re: Problems with LaTeX source block Date: Tue, 16 Jul 2013 09:57:46 +0200 Message-ID: <87oba3djid.fsf@free.fr> References: <8761wcjk5y.fsf@free.fr> <87wqos42vm.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz092-000646-Cb for emacs-orgmode@gnu.org; Tue, 16 Jul 2013 03:58:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uz091-0001I3-HG for emacs-orgmode@gnu.org; Tue, 16 Jul 2013 03:58:00 -0400 Received: from smtp4-g21.free.fr ([2a01:e0c:1:1599::13]:41010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz090-0001HS-VW for emacs-orgmode@gnu.org; Tue, 16 Jul 2013 03:57:59 -0400 In-Reply-To: <87wqos42vm.fsf@med.uni-goettingen.de> (Andreas Leha's message of "Mon, 15 Jul 2013 10:57:17 +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: Andreas Leha Cc: emacs-orgmode@gnu.org Hi Andreas, I forgot to send the following remarks in my previous post. I encounter a problem with pgfplots. The following works, and produces a png with a white background #+NAME: python-tikz #+header: :results raw :file py2tikz_sin.png #+header: :imagemagick yes :fit yes :headers '("\\usepackage{tikz,pgfplots}") #+BEGIN_SRC latex :exports results \begin{tikzpicture} \begin{axis} \draw [green,->] (0,0) -- (2,2) -- (3,1); \end{axis} \end{tikzpicture} #+END_SRC However, the following produces a png with only the axis displayed (but the boundaries are wrong), the data points don't appear. Strangely, the png produced is transparent: the background is the one of the Emacs buffer. #+NAME: python-tikz #+header: :results raw :file py2tikz_sin.png #+header: :imagemagick yes :fit yes :headers '("\\usepackage{tikz,pgfplots}") #+BEGIN_SRC latex :exports results \begin{tikzpicture} \begin{axis} \addplot [red,only lines] table {sin_py2csv.csv}; \end{axis} \end{tikzpicture} #+END_SRC The temp latex file seems ok (pdflatex produces a correct picture). I couldn't find the command line for imagemagick conversion to png to test it though. Julien.