Re: [O] create vector-graphics with org-babel

2015-09-14 Thread Suvayu Ali
On Wed, Sep 09, 2015 at 09:50:58AM +0200, Max Linke wrote:
> Hi
> 
> I'm trying to use vector graphics in my org document
> 
> #+BEGIN_SRC ipython :session :file iso.svg :exports results
>   x = np.linspace(0, 10, 100)
>   y = np.sin(x)
>   plt.plot(x, y)
> #+END_SRC
> 
> I can run this cell with 'C-c C-c' but I can't export it to latex
> because it says that svg is currently not supported. Is there a way
> to include svg (or another type of vector graphics) export into my
> document.

If you want vector graphics, but do not care about the specific type of
vector graphics, you can always use pdf.  IIUC, you are using
matplotlib.  So pdfs are supported, just configure PdfPages from
matplotlib.backends.backend_pdf.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] create vector-graphics with org-babel

2015-09-13 Thread Max Linke
I found out that the error is related to the ob-ipython package. They 
currently only allow png's. Using the normal ob-python everything works. 
Thanks for the help though.


On 09/09/2015 06:02 PM, Aaron Ecay wrote:

Hi Max,

What version of org are you using?  Latex export should support svg
since commit 0cef5b63e, which is in version 8.1+.  (You do need to
install and configure the “svg” package for latex in order to compile
the document.)





[O] create vector-graphics with org-babel

2015-09-09 Thread Max Linke

Hi

I'm trying to use vector graphics in my org document

#+BEGIN_SRC ipython :session :file iso.svg :exports results
  x = np.linspace(0, 10, 100)
  y = np.sin(x)
  plt.plot(x, y)
#+END_SRC

I can run this cell with 'C-c C-c' but I can't export it to latex
because it says that svg is currently not supported. Is there a way
to include svg (or another type of vector graphics) export into my
document.

Another interesting thing to know is how I can change the DPI of the
produced png?

best Max



Re: [O] create vector-graphics with org-babel

2015-09-09 Thread John Kitchin
maybe have a look here: 
http://tex.stackexchange.com/questions/2099/how-to-include-svg-diagrams-in-latex
Max Linke writes:

> Hi
>
> I'm trying to use vector graphics in my org document
>
> #+BEGIN_SRC ipython :session :file iso.svg :exports results
>x = np.linspace(0, 10, 100)
>y = np.sin(x)
>plt.plot(x, y)
> #+END_SRC
>
> I can run this cell with 'C-c C-c' but I can't export it to latex
> because it says that svg is currently not supported. Is there a way
> to include svg (or another type of vector graphics) export into my
> document.
>
> Another interesting thing to know is how I can change the DPI of the
> produced png?
>
> best Max

--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] create vector-graphics with org-babel

2015-09-09 Thread Aaron Ecay
Hi Max,

What version of org are you using?  Latex export should support svg
since commit 0cef5b63e, which is in version 8.1+.  (You do need to
install and configure the “svg” package for latex in order to compile
the document.)

-- 
Aaron Ecay