emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Christopher Witte <chris@witte.net.au>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Unexpected behaviour with gnuplot source blocks
Date: Thu, 20 Jun 2013 10:12:45 -0600	[thread overview]
Message-ID: <87ip18sqv6.fsf@gmail.com> (raw)
In-Reply-To: <CAALnB3Frnh+bZNG2JfsgFfpxsysTyWu9ZoLDyECjG9o0zPMy8A@mail.gmail.com> (Christopher Witte's message of "Tue, 18 Jun 2013 16:52:41 +0200")

Christopher Witte <chris@witte.net.au> 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	other threads:[~2013-06-20 16:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-18 14:52 Unexpected behaviour with gnuplot source blocks Christopher Witte
2013-06-20 16:12 ` Eric Schulte [this message]
2013-06-21 11:17   ` Christopher Witte
2013-06-21 15:02     ` Eric Schulte
2013-06-21 15:42       ` Suvayu Ali
2013-06-21 16:07         ` Eric Schulte
2013-06-21 16:15           ` Suvayu Ali
2013-06-22 16:02       ` Achim Gratz
2013-06-22 20:10         ` Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ip18sqv6.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=chris@witte.net.au \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).