From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Witte Subject: Unexpected behaviour with gnuplot source blocks Date: Tue, 18 Jun 2013 16:52:41 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec5299e15730bd004df6edde5 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoxHA-0001Tf-ML for emacs-orgmode@gnu.org; Tue, 18 Jun 2013 10:53:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UoxH1-0007er-HQ for emacs-orgmode@gnu.org; Tue, 18 Jun 2013 10:52:52 -0400 Received: from mail-pb0-x22e.google.com ([2607:f8b0:400e:c01::22e]:57650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoxH1-0007e8-9n for emacs-orgmode@gnu.org; Tue, 18 Jun 2013 10:52:43 -0400 Received: by mail-pb0-f46.google.com with SMTP id rq2so3978947pbb.33 for ; Tue, 18 Jun 2013 07:52:41 -0700 (PDT) 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: Org Mode --bcaec5299e15730bd004df6edde5 Content-Type: text/plain; charset=ISO-8859-1 Hi all, I had some wierd behaviour with gnuplot source blocks and I'm not sure of the best way to fix it. I have gnuplot source blocks that write output files that I insert into the document using links, as such: #+begin_src gnuplot :file transInc.eps reset set encoding utf8 set output "./fig/transInc.eps" ..... #+end_src [[fig/transInc.eps]] and I have two documents in different directories, say 'a' and 'b' that do this. If I go to the first document in folder 'a' and export it to latex and then go to the second document in folder 'b' and also export it to latex, all the generated plots end up in 'a'. It took me a while to work it out, but this is because only one gnuplot session is started and 'reset' doesn't reset output. Killing the gnuplot buffer fixes this, but that is annoying if I frequently switch back and forth between the documents. I could use full paths, but that seams like a pain, any other suggestions? Thanks for the help, Chris. --bcaec5299e15730bd004df6edde5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi all,

I had some wierd = behaviour with gnuplot source blocks and I'm not sure of the best way t= o fix it.

I have gnuplot source blocks that write output files that = I insert into the document using links, as such:

#+begin_src gnuplot :file transInc.eps
=A0=A0=A0 reset
=A0=A0=A0 = set encoding utf8
=A0=A0=A0 set output "./fig/transInc.eps"=A0=A0=A0 .....
#+end_src
[[fig/transInc.eps]]

an= d I have two documents in different directories, say 'a' and 'b= ' that do this.
If I go to the first document in folder 'a' and export it to = latex and then go to the second document in folder 'b' and also exp= ort it to latex, all the generated plots end up in 'a'.=A0 It took = me a while to work it out, but this is because only one gnuplot session is = started and 'reset' doesn't reset output.=A0 Killing the gnuplo= t buffer fixes this, but that is annoying if I frequently switch back and f= orth between the documents.

I could use full paths, but that seams like a= pain, any other suggestions?

Thanks for the help,
Chris.
--bcaec5299e15730bd004df6edde5--