emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problems with LaTeX source block
@ 2013-07-15  8:34 Julien Cubizolles
  2013-07-15  8:57 ` Andreas Leha
  0 siblings, 1 reply; 9+ messages in thread
From: Julien Cubizolles @ 2013-07-15  8:34 UTC (permalink / raw)
  To: emacs-orgmode

I'm struggling with LaTeX source blocks and am not sure anymore if one
can use the :results file header.

I have a csv file to be processed by tikz to get a png picture displayed
in my org buffer. 

Here is what I tried 

#+NAME: python-tikz
#+header: :results file :file py2tikz_sin.png
#+header: :fit yes :headers '("\\usepackage{tikz,pgfplots}")
#+BEGIN_SRC latex :exports results
  \begin{tikzpicture}
    \begin{axis}
      \addplot  table {sin_py2csv.csv};
    \end{axis}
  \end{tikzpicture}
'py2tikz_sin.png'
#+END_SRC

#+RESULTS: python-tikz
#+BEGIN_LaTeX
[[file:py2tikz_sin.png]]
#+END_LaTeX

Two problems with that: the py2tikz_sin.png file isn't produced (the
latex code is correct though) and I was under the impression that the
:results file header should give a #RESULTS without the LaTeX block
(it's what I get for python blocks anyway).

The data is produced by python (I can get python-babel to work !) and I
could get a png directly through python-babel but latex-babel should be
able to do it, right ?

Julien.

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

end of thread, other threads:[~2013-07-16 15:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-15  8:34 Problems with LaTeX source block Julien Cubizolles
2013-07-15  8:57 ` Andreas Leha
2013-07-15 10:24   ` Julien Cubizolles
2013-07-15 21:06     ` Andreas Leha
2013-07-16  7:57   ` Julien Cubizolles
2013-07-16  8:03     ` Andreas Leha
2013-07-16 14:57       ` Julien Cubizolles
2013-07-16 11:09     ` Eric S Fraga
2013-07-16 15:04       ` Julien Cubizolles

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