emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-babel, gnuplot and buffer-wide header arguments
@ 2013-06-12 10:21 Carlos Russo
  2013-06-13  5:45 ` Eric Schulte
  0 siblings, 1 reply; 3+ messages in thread
From: Carlos Russo @ 2013-06-12 10:21 UTC (permalink / raw)
  To: emacs-orgmode

Hi

it seems that org-babel-gnuplot only recognizes a few header arguments.
I would like to set the following on top of the buffer:

#+PROPERTY: term pdfcairo enhanced mono size 8cm,6cm font "Helvetica"

in order to control the appearance of a bunch of figures generated by gnuplot
#+begin_src gnuplot :exports result :file file.pdf
 plot ...
#+end_src

Basically, I would like to avoid writing the :term property all the time:

#+begin_src gnuplot :exports result :file file.pdf :term pdfcairo 
enhanced mono size 8cm,6cm font "Helvetica"
 plot ...
#+end_src

It seems that this requires a modification to ob-gnuplot.el.
Any hints on how to do this?

Thanks,
Carlos

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: org-babel, gnuplot and buffer-wide header arguments
  2013-06-12 10:21 org-babel, gnuplot and buffer-wide header arguments Carlos Russo
@ 2013-06-13  5:45 ` Eric Schulte
  2013-06-13 14:39   ` Carlos Russo
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Schulte @ 2013-06-13  5:45 UTC (permalink / raw)
  To: Carlos Russo; +Cc: emacs-orgmode

Carlos Russo <mestre.adamastor@gmail.com> writes:

> Hi
>
> it seems that org-babel-gnuplot only recognizes a few header arguments.
> I would like to set the following on top of the buffer:
>
> #+PROPERTY: term pdfcairo enhanced mono size 8cm,6cm font "Helvetica"
>
> in order to control the appearance of a bunch of figures generated by gnuplot
> #+begin_src gnuplot :exports result :file file.pdf
>  plot ...
> #+end_src
>
> Basically, I would like to avoid writing the :term property all the time:
>
> #+begin_src gnuplot :exports result :file file.pdf :term pdfcairo 
> enhanced mono size 8cm,6cm font "Helvetica"
>  plot ...
> #+end_src
>
> It seems that this requires a modification to ob-gnuplot.el.
> Any hints on how to do this?
>

I've just pushed up a fix.  Take a look at commit 1720613 in the
repository to see what was required to make this change.  In this case
it was very simple.

Best,

>
> Thanks,
> Carlos
>
>
>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: org-babel, gnuplot and buffer-wide header arguments
  2013-06-13  5:45 ` Eric Schulte
@ 2013-06-13 14:39   ` Carlos Russo
  0 siblings, 0 replies; 3+ messages in thread
From: Carlos Russo @ 2013-06-13 14:39 UTC (permalink / raw)
  To: emacs-orgmode

My life is suddenly much easier :-)
Thanks!

On 2013-06-13 05:45:07 +0000, Eric Schulte said:

> Carlos Russo <mestre.adamastor@gmail.com> writes:
> 
>> Hi
>> 
>> it seems that org-babel-gnuplot only recognizes a few header arguments.
>> I would like to set the following on top of the buffer:
>> 
>> #+PROPERTY: term pdfcairo enhanced mono size 8cm,6cm font "Helvetica"
>> 
>> in order to control the appearance of a bunch of figures generated by gnuplot
>> #+begin_src gnuplot :exports result :file file.pdf
>> plot ...
>> #+end_src
>> 
>> Basically, I would like to avoid writing the :term property all the time:
>> 
>> #+begin_src gnuplot :exports result :file file.pdf :term pdfcairo
>> enhanced mono size 8cm,6cm font "Helvetica"
>> plot ...
>> #+end_src
>> 
>> It seems that this requires a modification to ob-gnuplot.el.
>> Any hints on how to do this?
>> 
> 
> I've just pushed up a fix.  Take a look at commit 1720613 in the
> repository to see what was required to make this change.  In this case
> it was very simple.
> 
> Best,
> 
>> 
>> Thanks,
>> Carlos

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-06-13 14:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-12 10:21 org-babel, gnuplot and buffer-wide header arguments Carlos Russo
2013-06-13  5:45 ` Eric Schulte
2013-06-13 14:39   ` Carlos Russo

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).