[O] Embedding diagrams in Org

2015-02-18 Thread Marcin Borkowski
Hello all, I need to embed some diagrams (graphs of functions, for instance, or trees) in an Org file. Any suggestions on how to do it? In case of ditaa, I can use a source block and the "results" line, and see the image with C-c C-x C-v. Can I do a similar thing with Asymptote? How hard/time-

Re: [O] Embedding diagrams in Org

2015-02-18 Thread Eric S Fraga
On Wednesday, 18 Feb 2015 at 13:34, Marcin Borkowski wrote: > Hello all, > > I need to embed some diagrams (graphs of functions, for instance, or > trees) in an Org file. Any suggestions on how to do it? In case of > ditaa, I can use a source block and the "results" line, and see the > image with

Re: [O] Embedding diagrams in Org

2015-02-18 Thread Eduardo Ochs
On Wed, Feb 18, 2015 at 12:19 PM, Eric S Fraga wrote: > On Wednesday, 18 Feb 2015 at 13:34, Marcin Borkowski wrote: >> Hello all, >> >> I need to embed some diagrams (graphs of functions, for instance, or >> trees) in an Org file. Any suggestions on how to do it? In case of >> ditaa, I can use a

Re: [O] Embedding diagrams in Org

2015-02-18 Thread Andreas Leha
Hi, Eric S Fraga writes: > On Wednesday, 18 Feb 2015 at 13:34, Marcin Borkowski wrote: >> Hello all, >> >> I need to embed some diagrams (graphs of functions, for instance, or >> trees) in an Org file. Any suggestions on how to do it? In case of >> ditaa, I can use a source block and the "resul

Re: [O] Embedding diagrams in Org

2015-02-18 Thread Eric S Fraga
On Wednesday, 18 Feb 2015 at 13:51, Eduardo Ochs wrote: [...] > perfect, as it supposes that the person trying it has already enabled > latex support in babel! You mean people don't automatically have this enabled already? ;-) But, yes, you are correct! My org customisations are so many that

Re: [O] Embedding diagrams in Org

2015-02-19 Thread Sebastien Vauban
Eric S Fraga wrote: > I do wonder, however, why we need to turn languages on or off? It > would be nice if org-babel would do this automatically when a language > specific src block is encountered... That'd make some sense, indeed... Kind of autoloads for all the languages... Best regards, Seb

Re: [O] Embedding diagrams in Org

2015-02-19 Thread Sebastien Vauban
Hello Andreas, Andreas Leha wrote: > I also use tikz in my org files. I just include a slightly more > involved version of Eric's example to show some of the beauty of org. > > This includes a caption for the diagram, and different output formats > for different export routes. > > #+LATEX_HEADER:

Re: [O] Embedding diagrams in Org

2015-02-19 Thread Eric S Fraga
On Wednesday, 18 Feb 2015 at 19:37, Andreas Leha wrote: [...] > I also use tikz in my org files. I just include a slightly more > involved version of Eric's example to show some of the beauty of org. Thanks for adding to the example. Your "by-backend" function looks useful. Would you post it

Re: [O] Embedding diagrams in Org

2015-02-21 Thread Andreas Leha
Hi, Sebastien Vauban writes: > Hello Andreas, > > Andreas Leha wrote: >> I also use tikz in my org files. I just include a slightly more >> involved version of Eric's example to show some of the beauty of org. >> >> This includes a caption for the diagram, and different output formats >> for dif

Re: [O] Embedding diagrams in Org

2015-02-23 Thread Marcin Borkowski
On 2015-02-18, at 15:19, Eric S Fraga wrote: > Support for tikz is there implicitly in that there is support for > LaTeX. I use tikz all the time. Yes, but I wanted to be able both to see the diagram in the Org file itself /and/ to export it properly to LaTeX. (It seems that your solutions di

Re: [O] Embedding diagrams in Org

2015-02-24 Thread Eric S Fraga
On Tuesday, 24 Feb 2015 at 01:01, Marcin Borkowski wrote: [...] > I have one question. > >> #+begin_src latex :results latex raw :exports results > > Why ":results latex raw" and not ":results latex"? I have no idea ;-) I find, unfortunately, that getting babel to do what I want is somewhat of

Re: [O] Embedding diagrams in Org

2015-02-24 Thread Charles C. Berry
On Tue, 24 Feb 2015, Eric S Fraga wrote: On Tuesday, 24 Feb 2015 at 01:01, Marcin Borkowski wrote: [...] I have one question. #+begin_src latex :results latex raw :exports results Why ":results latex raw" and not ":results latex"? I have no idea ;-) I find, unfortunately, that getting

Re: [O] Embedding diagrams in Org

2015-03-04 Thread Marcin Borkowski
e On 2015-02-18, at 13:34, Marcin Borkowski wrote: > Hello all, > > I need to embed some diagrams (graphs of functions, for instance, or > trees) in an Org file. Any suggestions on how to do it? In case of > ditaa, I can use a source block and the "results" line, and see the > image with C-c C-

Re: [O] Embedding diagrams in Org

2015-03-04 Thread Rasmus
Marcin Borkowski writes: > Did anyone use the ability to inline tikz pictures (i.e., pictures in > a file with =tikz= or =pgf= extension)? If so, could you share some > examples, or at least success stories? > > Also, org-latex--inline-image seems to provide for including svg images, > but I cou

Re: [O] Embedding diagrams in Org

2015-03-04 Thread Andreas Leha
Marcin Borkowski writes: > e > On 2015-02-18, at 13:34, Marcin Borkowski wrote: > >> Hello all, >> >> I need to embed some diagrams (graphs of functions, for instance, or >> trees) in an Org file. Any suggestions on how to do it? In case of >> ditaa, I can use a source block and the "results" l

Re: [O] Embedding diagrams in Org

2015-03-05 Thread Eric S Fraga
On Wednesday, 4 Mar 2015 at 21:22, Andreas Leha wrote: [...] > The example I posted earlier in this thread [1] uses the *.tikz version for > latex export. > [...] > [1] http://permalink.gmane.org/gmane.emacs.orgmode/95197 I had forgotten about that thread. Very useful, in particular finding an

Re: [O] Embedding diagrams in Org

2015-03-05 Thread Sebastien Vauban
"Charles C. Berry" wrote: >>> Why ":results latex raw" and not ":results latex"? >> >> I have no idea ;-) >> >> I find, unfortunately, that getting babel to do what I want is somewhat >> of an arcane art (for me) so once I get something doing what I want it >> to do, I leave things alone... > > `:r

Re: [O] Embedding diagrams in Org

2015-03-21 Thread Marcin Borkowski
On 2015-02-18, at 20:37, Andreas Leha wrote: > I also use tikz in my org files. I just include a slightly more > involved version of Eric's example to show some of the beauty of org. OK, so I'm trying to understand it. (One of the reasons is that it doesn't work for me; somehow I couldn't ge

Re: [O] Embedding diagrams in Org

2015-03-21 Thread Andreas Leha
Hi Marcin, see some inline comments. Note, that I have not done much research on this and all my information may be outdated Marcin Borkowski writes: > On 2015-02-18, at 20:37, Andreas Leha > wrote: > >> I also use tikz in my org files. I just include a slightly more >> involved version