Marcin Borkowski <mb...@wmi.amu.edu.pl> 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 <svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"> <circle r="100" cx="100" cy="100"></circle> </svg> #+END_SRC -- Got mashed potatoes. Ain't got no T-Bone. No T-Bone