From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Embedding diagrams in Org Date: Wed, 04 Mar 2015 20:37:35 +0100 Message-ID: <87lhjc1rls.fsf@gmx.us> References: <87bnkr8kkg.fsf@wmi.amu.edu.pl> <874mq0d0zg.fsf@amu.edu.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTF7E-0000Qg-7O for emacs-orgmode@gnu.org; Wed, 04 Mar 2015 14:37:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTF7A-00021W-6F for emacs-orgmode@gnu.org; Wed, 04 Mar 2015 14:37:56 -0500 Received: from plane.gmane.org ([80.91.229.3]:40335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTF7A-000217-0G for emacs-orgmode@gnu.org; Wed, 04 Mar 2015 14:37:52 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YTF77-0006Fe-1U for emacs-orgmode@gnu.org; Wed, 04 Mar 2015 20:37:49 +0100 Received: from 102.201.133.37.dynamic.jazztel.es ([37.133.201.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Mar 2015 20:37:49 +0100 Received: from rasmus by 102.201.133.37.dynamic.jazztel.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Mar 2015 20:37:49 +0100 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: emacs-orgmode@gnu.org 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 could not find a \usepackage{svg}, nor a provision for enabling > shell-escape (like in the case of minted). Again: any success stories > or is there a bug? The following seem to work with pdflatex. You need svg and tikz from CTAN. I use tikz frequently via matplotlib in Python and tikzDevice in R. #+CAPTION: a svg drawing [[file:circle.svg]] #+CAPTION: a tikz drawing [[file:fig.tikz]] * assets :noexport: #+BEGIN_SRC emacs-lisp (org-babel-tangle) #+END_SRC #+RESULTS: | fig.tikz | circle.svg | #+LATEX_HEADER: \usepackage{tikz} #+BEGIN_SRC latex :tangle fig.tikz \begin{tikzpicture} \node [draw=red,circle] at (0,0) {X}; \end{tikzpicture} #+END_SRC #+LATEX_HEADER: \usepackage{svg} #+BEGIN_SRC html :tangle circle.svg #+END_SRC -- Got mashed potatoes. Ain't got no T-Bone. No T-Bone