emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Unexpected behaviour with gnuplot source blocks


From: Eric Schulte
Subject: Re: [O] Unexpected behaviour with gnuplot source blocks
Date: Thu, 20 Jun 2013 10:12:45 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Christopher Witte <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]