From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Unexpected behaviour with gnuplot source blocks Date: Thu, 20 Jun 2013 10:12:45 -0600 Message-ID: <87ip18sqv6.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UphUp-00076M-QJ for emacs-orgmode@gnu.org; Thu, 20 Jun 2013 12:14:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UphUi-0004Sv-BC for emacs-orgmode@gnu.org; Thu, 20 Jun 2013 12:14:03 -0400 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]:43227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UphUi-0004Sf-4F for emacs-orgmode@gnu.org; Thu, 20 Jun 2013 12:13:56 -0400 Received: by mail-pa0-f53.google.com with SMTP id tj12so6475538pac.12 for ; Thu, 20 Jun 2013 09:13:55 -0700 (PDT) In-Reply-To: (Christopher Witte's message of "Tue, 18 Jun 2013 16:52:41 +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: Christopher Witte Cc: Org Mode Christopher Witte writes: > 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]] > Why not do the following instead which would be equivalent and simpler. The output will be automatically set from the value of your :file header argument. #+begin_src gnuplot :file fig/transInc.eps reset set encoding utf8 ..... #+end_src > > 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. > Does setting :session to "none" for gnuplot fix this problem? > > I could use full paths, but that seams like a pain, any other suggestions? > > Thanks for the help, > Chris. -- Eric Schulte http://cs.unm.edu/~eschulte