From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Unexpected behaviour with gnuplot source blocks Date: Fri, 21 Jun 2013 10:07:39 -0600 Message-ID: <87ppvfqwfo.fsf@gmail.com> References: <87ip18sqv6.fsf@gmail.com> <87txkrqzgb.fsf@gmail.com> <20130621154231.GA17660@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq3tL-0004oD-60 for emacs-orgmode@gnu.org; Fri, 21 Jun 2013 12:08:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uq3tJ-0003ds-Se for emacs-orgmode@gnu.org; Fri, 21 Jun 2013 12:08:51 -0400 Received: from mail-pb0-x234.google.com ([2607:f8b0:400e:c01::234]:53102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq3tJ-0003dm-MB for emacs-orgmode@gnu.org; Fri, 21 Jun 2013 12:08:49 -0400 Received: by mail-pb0-f52.google.com with SMTP id xa12so7938184pbc.25 for ; Fri, 21 Jun 2013 09:08:48 -0700 (PDT) In-Reply-To: <20130621154231.GA17660@kuru.dyndns-at-home.com> (Suvayu Ali's message of "Fri, 21 Jun 2013 17:42:31 +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: Suvayu Ali Cc: emacs-orgmode@gnu.org Suvayu Ali writes: > On Fri, Jun 21, 2013 at 09:02:28AM -0600, Eric Schulte wrote: >> >> I've added a customization variable to ob-gnuplot which may be used to >> map file extensions to terminals. Currently it just holds the mapping >> from eps to "postscript eps" >> >> ;; -*- emacs-lisp -*- >> (defcustom *org-babel-gnuplot-terms* >> '((eps . "postscript eps")) >> "List of file extensions and the associated gnuplot terminal." >> :group 'org-babel >> :type '(repeat (cons (symbol :tag "File extension") >> (string :tag "Gnuplot terminal")))) >> > > Great idea! > Thanks, I hope it is useful. > >> If anyone knows of other good default mapping to add please let me know. >> > > I personally use "pdfcairo color" for pdf output. This is already the default behavior for "term pdf" on my system, so I don't think we need to add it to the list. I did just add some logic to ensure that output terminals are closed at the end of code blocks, which was required for a simple pdf example to work for me. Cheers, -- Eric Schulte http://cs.unm.edu/~eschulte