From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Best diagram, image software? Date: Thu, 06 Oct 2016 13:59:33 -0400 Message-ID: References: <86a8eio8nh.fsf@gmail.com> <1475772532.3845152.748012049.6BB86C20@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsCxK-0005tH-Na for emacs-orgmode@gnu.org; Thu, 06 Oct 2016 13:59:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsCxH-00006C-F7 for emacs-orgmode@gnu.org; Thu, 06 Oct 2016 13:59:42 -0400 Received: from mail-qk0-x232.google.com ([2607:f8b0:400d:c09::232]:36515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsCxH-000060-7x for emacs-orgmode@gnu.org; Thu, 06 Oct 2016 13:59:39 -0400 Received: by mail-qk0-x232.google.com with SMTP id o68so22801549qkf.3 for ; Thu, 06 Oct 2016 10:59:38 -0700 (PDT) In-reply-to: <1475772532.3845152.748012049.6BB86C20@webmail.messagingengine.com> 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" To: Peter Davis Cc: emacs-orgmode@gnu.org I tried this, and it worked for me. Check *Messages* for things like: Failed to create dvi file from /var/folders/5q/lllv2yf95hg_n6h6kjttbmdw0000gn/T/orgtex93386BIQ.tex if you see that try manually building the tex file to see if there are LaTeX issues. #+BEGIN_SRC emacs-lisp (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t) (python . t) (ditaa . t) (dot . t) (plantuml . t) (gnuplot . t) (sh . t) (org . t) (latex . t))) (setq org-latex-packages-alist (quote (("" "color" t) ("" "minted" t) ("" "parskip" t) ("" "tikz" t)))) (setq org-latex-create-formula-image-program 'imagemagick) #+END_SRC #+RESULTS: : imagemagick #+begin_src latex :exports results :results output raw :file fsa.png % Define block styles \usetikzlibrary{shapes,arrows} \tikzstyle{astate} = [circle, draw, text centered, font=\footnotesize, fill=blue!25] \tikzstyle{rstate} = [circle, draw, text centered, font=\footnotesize, fill=red!25] \begin{tikzpicture}[->,>=stealth', shorten >=1pt, auto, node distance=2.8cm, semithick] \node [astate] (1) at (0,0) {1}; \node [astate] (2) at (1,0) {2}; \node [rstate] (3) at (2,0) {3}; \path (1) edge [bend left] node {b} (2) (2) edge node {b} (3) (2) edge [bend left] node {a} (1) (3) edge [loop above] node {(a, b)} (3); \end{tikzpicture} #+end_src #+RESULTS: [[file:fsa.png]] Peter Davis writes: > Since several people recommended TikZ, I decided to take a look at it. > It seems very powerful, but I'm unable to get any example to work. For > example, using the example here: > > http://doblogit.com/posts/2015-10-23-org-graphics.html > > #+begin_src latex :exports results :results output raw :file > images/fsa.png > % Define block styles > \usetikzlibrary{shapes,arrows} > \tikzstyle{astate} = [circle, draw, text centered, font=\footnotesize, > fill=blue!25] > \tikzstyle{rstate} = [circle, draw, text centered, font=\footnotesize, > fill=red!25] > > \begin{tikzpicture}[->,>=stealth', shorten >=1pt, auto, node > distance=2.8cm, semithick] > \node [astate] (1) at (0,0) {1}; > \node [astate] (2) at (1,0) {2}; > \node [rstate] (3) at (2,0) {3}; > \path (1) edge [bend left] node {b} (2) > (2) edge node {b} (3) > (2) edge [bend left] node {a} (1) > (3) edge [loop above] node {(a, b)} (3); > \end{tikzpicture} > #+end_src > > > I get: > > org-babel-exp process latex at line 6... > executing Latex code block... > org-latex-compile: PDF file > c:/Users/pdavis/AppData/Local/Temp/orgtex5448hGP.pdf wasn’t produced > > I've got ImageMagick installed. I don't know how to debug this. -- 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