From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Witte Subject: Re: Unexpected behaviour with gnuplot source blocks Date: Fri, 21 Jun 2013 13:17:05 +0200 Message-ID: References: <87ip18sqv6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b33946df2d33d04dfa8333c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpzL2-00050N-PI for emacs-orgmode@gnu.org; Fri, 21 Jun 2013 07:17:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpzL1-0004Oo-IW for emacs-orgmode@gnu.org; Fri, 21 Jun 2013 07:17:08 -0400 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]:56892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpzL1-0004Nq-Cb for emacs-orgmode@gnu.org; Fri, 21 Jun 2013 07:17:07 -0400 Received: by mail-pa0-f51.google.com with SMTP id lf11so7608966pab.24 for ; Fri, 21 Jun 2013 04:17:06 -0700 (PDT) In-Reply-To: <87ip18sqv6.fsf@gmail.com> 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: Eric Schulte Cc: Org Mode --047d7b33946df2d33d04dfa8333c Content-Type: text/plain; charset=ISO-8859-1 On 20 June 2013 18:12, Eric Schulte wrote: > 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 > > That kinda works, but I think you still need to set the terminal type within the source block. Using the above the command "set terminal eps" gets sent to gnuplot, but you actually need "set terminal postscript eps". The following works #+BEGIN_SRC gnuplot :file test.eps reset set terminal postscript eps ..... #+END_SRC Thanks for the help! Chris. --047d7b33946df2d33d04dfa8333c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

= On 20 June 2013 18:12, Eric Schulte <schulte.eric@gmail.com> wrote:
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
=A0 reset
=A0 set encoding utf8
=A0 .....
#+end_src


That kinda works, but I think yo= u still need to set the terminal type within the source block.=A0 Using the= above the command "set terminal eps" gets sent to gnuplot, but y= ou actually need "set terminal postscript eps".

The following works

#+BEGIN_SRC gnuplot :file test.eps
=A0 re= set
=A0 set terminal postscript eps
=A0 .....
#+END_SRC

Thanks for the help!
Chris.
--047d7b33946df2d33d04dfa8333c--