* Re: Best diagram, image software?
2016-10-06 16:48 ` Peter Davis
@ 2016-10-06 17:59 ` John Kitchin
2016-10-06 18:23 ` Peter Davis
2016-10-06 18:15 ` Nick Dokos
2016-10-07 6:38 ` Robert Klein
2 siblings, 1 reply; 24+ messages in thread
From: John Kitchin @ 2016-10-06 17:59 UTC (permalink / raw)
To: Peter Davis; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Best diagram, image software?
2016-10-06 17:59 ` John Kitchin
@ 2016-10-06 18:23 ` Peter Davis
2016-10-06 22:05 ` John Kitchin
0 siblings, 1 reply; 24+ messages in thread
From: Peter Davis @ 2016-10-06 18:23 UTC (permalink / raw)
To: John Kitchin; +Cc: emacs-orgmode
On Thu, Oct 6, 2016, at 01:59 PM, John Kitchin wrote:
> 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.
>
Thanks, John. Just running pdflatex from the command line gives me:
! Undefined control sequence.
l.36 \tikz
[remember picture]\node[coordinate,yshift=0.5em] (n1) {};
So perhaps TikZ itself is not available to some part of this.
Thanks,
-pd
--
Peter Davis
www.techcurmudgeon.com
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Best diagram, image software?
2016-10-06 18:23 ` Peter Davis
@ 2016-10-06 22:05 ` John Kitchin
0 siblings, 0 replies; 24+ messages in thread
From: John Kitchin @ 2016-10-06 22:05 UTC (permalink / raw)
To: Peter Davis; +Cc: emacs-orgmode
That implies you have not configured org-mode to include the tikz
package.
If you execute this block in a buffer does it work?
#+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
Peter Davis writes:
> On Thu, Oct 6, 2016, at 01:59 PM, John Kitchin wrote:
>> 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.
>>
>
> Thanks, John. Just running pdflatex from the command line gives me:
>
> ! Undefined control sequence.
> l.36 \tikz
> [remember picture]\node[coordinate,yshift=0.5em] (n1) {};
>
> So perhaps TikZ itself is not available to some part of this.
>
> Thanks,
> -pd
--
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
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Best diagram, image software?
2016-10-06 16:48 ` Peter Davis
2016-10-06 17:59 ` John Kitchin
@ 2016-10-06 18:15 ` Nick Dokos
2016-10-06 18:26 ` Peter Davis
2016-10-07 6:38 ` Robert Klein
2 siblings, 1 reply; 24+ messages in thread
From: Nick Dokos @ 2016-10-06 18:15 UTC (permalink / raw)
To: emacs-orgmode
Peter Davis <pfd@pfdstudio.com> 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
>
Did you add tikz to org-latex-packages-alist?
> #+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.
I always go back to straight LaTeX to debug such problems:
--8<---------------cut here---------------start------------->8---
\documentclass{article}
\usepackage{tikz}
\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{document}
\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{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
--8<---------------cut here---------------end--------------->8---
--
Nick
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Best diagram, image software?
2016-10-06 18:15 ` Nick Dokos
@ 2016-10-06 18:26 ` Peter Davis
2016-10-06 18:59 ` Nick Dokos
0 siblings, 1 reply; 24+ messages in thread
From: Peter Davis @ 2016-10-06 18:26 UTC (permalink / raw)
To: emacs-orgmode
On Thu, Oct 6, 2016, at 02:15 PM, Nick Dokos wrote:
> Peter Davis <pfd@pfdstudio.com> 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
> >
>
> Did you add tikz to org-latex-packages-alist?
>
I do have:
(add-to-list 'org-latex-packages-alist
'(("AUTO" "inputenc" t)
("" "color" t)
("" "minted" t)
("" "parskip" t)
("" "tikz" t)))
Any other setup work I need?
Thanks!
-pd
--
Peter Davis
www.techcurmudgeon.com
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Best diagram, image software?
2016-10-06 18:26 ` Peter Davis
@ 2016-10-06 18:59 ` Nick Dokos
2016-10-06 19:10 ` Peter Davis
0 siblings, 1 reply; 24+ messages in thread
From: Nick Dokos @ 2016-10-06 18:59 UTC (permalink / raw)
To: emacs-orgmode
Peter Davis <pfd@pfdstudio.com> writes:
> On Thu, Oct 6, 2016, at 02:15 PM, Nick Dokos wrote:
>> Peter Davis <pfd@pfdstudio.com> 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
>> >
>>
>> Did you add tikz to org-latex-packages-alist?
>>
>
> I do have:
>
> (add-to-list 'org-latex-packages-alist
> '(("AUTO" "inputenc" t)
> ("" "color" t)
> ("" "minted" t)
> ("" "parskip" t)
> ("" "tikz" t)))
>
> Any other setup work I need?
>
Yes, but have you executed that? What does C-h v org-latex-pacakges-alist RET say?
--
Nick
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Best diagram, image software?
2016-10-06 18:59 ` Nick Dokos
@ 2016-10-06 19:10 ` Peter Davis
2016-10-06 19:25 ` Clément Pit--Claudel
2016-10-06 19:32 ` Martin Schöön
0 siblings, 2 replies; 24+ messages in thread
From: Peter Davis @ 2016-10-06 19:10 UTC (permalink / raw)
To: emacs-orgmode
On Thu, Oct 6, 2016, at 02:59 PM, Nick Dokos wrote:
> Peter Davis <pfd@pfdstudio.com> writes:
>
> > On Thu, Oct 6, 2016, at 02:15 PM, Nick Dokos wrote:
> >> Peter Davis <pfd@pfdstudio.com> 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
> >> >
> >>
> >> Did you add tikz to org-latex-packages-alist?
> >>
> >
> > I do have:
> >
> > (add-to-list 'org-latex-packages-alist
> > '(("AUTO" "inputenc" t)
> > ("" "color" t)
> > ("" "minted" t)
> > ("" "parskip" t)
> > ("" "tikz" t)))
> >
> > Any other setup work I need?
> >
>
> Yes, but have you executed that? What does C-h v org-latex-pacakges-alist
> RET say?
org-latex-packages-alist is a variable defined in ‘org.el’.
Its value is (("" "tikz")
("" "listingsutf8")
(("AUTO" "inputenc" t)
("" "color" t)
("" "minted" t)
("" "parskip" t)
("" "tikz" t)))
--
Peter Davis
www.techcurmudgeon.com
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Best diagram, image software?
2016-10-06 19:10 ` Peter Davis
@ 2016-10-06 19:25 ` Clément Pit--Claudel
2016-10-06 19:49 ` Peter Davis
2016-10-06 19:32 ` Martin Schöön
1 sibling, 1 reply; 24+ messages in thread
From: Clément Pit--Claudel @ 2016-10-06 19:25 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 405 bytes --]
On 2016-10-06 15:10, Peter Davis wrote:
>> > (add-to-list 'org-latex-packages-alist
>> > '(("AUTO" "inputenc" t)
>> > ("" "color" t)
>> > ("" "minted" t)
>> > ("" "parskip" t)
>> > ("" "tikz" t)))
This looks wrong. You're adding a single list to org-latex-package-alist, instead of adding multiple elements one-by-one.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Best diagram, image software?
2016-10-06 19:25 ` Clément Pit--Claudel
@ 2016-10-06 19:49 ` Peter Davis
2016-10-06 20:15 ` John Hendy
2016-10-06 20:15 ` Peter Davis
0 siblings, 2 replies; 24+ messages in thread
From: Peter Davis @ 2016-10-06 19:49 UTC (permalink / raw)
To: emacs-orgmode
On Thu, Oct 6, 2016, at 03:25 PM, Clément Pit--Claudel wrote:
> On 2016-10-06 15:10, Peter Davis wrote:
> >> > (add-to-list 'org-latex-packages-alist
> >> > '(("AUTO" "inputenc" t)
> >> > ("" "color" t)
> >> > ("" "minted" t)
> >> > ("" "parskip" t)
> >> > ("" "tikz" t)))
>
> This looks wrong. You're adding a single list to
> org-latex-package-alist, instead of adding multiple elements one-by-one.
>
Ok, I tried changing it to:
(add-to-list 'org-latex-packages-alist '("AUTO" "inputenc" t))
(add-to-list 'org-latex-packages-alist '("" "color" t))
(add-to-list 'org-latex-packages-alist '("" "minted" t))
(add-to-list 'org-latex-packages-alist '("" "parskip" t))
(add-to-list 'org-latex-packages-alist '("" "tikz"))
(add-to-list 'org-latex-packages-alist '("" "listingsutf8"))
so now org-latex-packages-alist has the value
(("" "listingsutf8")
("" "tikz")
("" "parskip" t)
("" "minted" t)
("" "color" t)
("AUTO" "inputenc" t))
Still getting the failure on tikz output.
Thanks!
-pd
--
Peter Davis
www.techcurmudgeon.com
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Best diagram, image software?
2016-10-06 19:49 ` Peter Davis
@ 2016-10-06 20:15 ` John Hendy
2016-10-06 20:15 ` Peter Davis
1 sibling, 0 replies; 24+ messages in thread
From: John Hendy @ 2016-10-06 20:15 UTC (permalink / raw)
To: Peter Davis; +Cc: emacs-orgmode
On Thu, Oct 6, 2016 at 2:49 PM, Peter Davis <pfd@pfdstudio.com> wrote:
>
> On Thu, Oct 6, 2016, at 03:25 PM, Clément Pit--Claudel wrote:
>> On 2016-10-06 15:10, Peter Davis wrote:
>> >> > (add-to-list 'org-latex-packages-alist
>> >> > '(("AUTO" "inputenc" t)
>> >> > ("" "color" t)
>> >> > ("" "minted" t)
>> >> > ("" "parskip" t)
>> >> > ("" "tikz" t)))
>>
Maybe I'm dense, but why is everyone recommending changing the alist?
Granted, for future proofing and convenience this is nice... but I do
a fair amount with TikZ and have never done this.
~/org/aux/setupfile.org contains:
#+latex_header: \usepackage{tikz}
#+latex_header: \usepackage[siunitx]{circuitikz}
#+latex_header: \usetikzlibrary{shapes, positioning}
any given .org file contains:
#+setupfile: "~/org/aux/setupfile.org"
I modified your original aim like so, ditching the .png output which
looks like requires imagemagick. Maybe that's in org somehow, but when
you're just starting out I'd suggest eliminating as many other
mechanisms as possible. TikZ is in LaTeX, so just stick to pdf at the
start. This works for me.
#+latex_header: \usepackage{tikz}
#+latex_header: \usetikzlibrary{shapes, positioning}
* test
#+begin_src latex :results raw
% 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
John
>> This looks wrong. You're adding a single list to
>> org-latex-package-alist, instead of adding multiple elements one-by-one.
>>
>
> Ok, I tried changing it to:
>
> (add-to-list 'org-latex-packages-alist '("AUTO" "inputenc" t))
> (add-to-list 'org-latex-packages-alist '("" "color" t))
> (add-to-list 'org-latex-packages-alist '("" "minted" t))
> (add-to-list 'org-latex-packages-alist '("" "parskip" t))
> (add-to-list 'org-latex-packages-alist '("" "tikz"))
> (add-to-list 'org-latex-packages-alist '("" "listingsutf8"))
>
> so now org-latex-packages-alist has the value
>
> (("" "listingsutf8")
> ("" "tikz")
> ("" "parskip" t)
> ("" "minted" t)
> ("" "color" t)
> ("AUTO" "inputenc" t))
>
> Still getting the failure on tikz output.
>
> Thanks!
> -pd
>
> --
> Peter Davis
> www.techcurmudgeon.com
>
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Best diagram, image software?
2016-10-06 19:49 ` Peter Davis
2016-10-06 20:15 ` John Hendy
@ 2016-10-06 20:15 ` Peter Davis
2016-10-06 23:23 ` John Kitchin
1 sibling, 1 reply; 24+ messages in thread
From: Peter Davis @ 2016-10-06 20:15 UTC (permalink / raw)
To: emacs-orgmode
Ok, my problem was that the minted package was causing errors. Taking
that out lets me generate pdf.
Now to figure out how to generate other formats, to work with HTML and
LaTeX/PDF output.
Thanks, all!!
-pd
--
Peter Davis
www.techcurmudgeon.com
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Best diagram, image software?
2016-10-06 20:15 ` Peter Davis
@ 2016-10-06 23:23 ` John Kitchin
0 siblings, 0 replies; 24+ messages in thread
From: John Kitchin @ 2016-10-06 23:23 UTC (permalink / raw)
To: Peter Davis; +Cc: emacs-orgmode
That is probably because with minted you have to modify how the pdf is
built to use pdflatex -shell-escape.
The variable org-latex-pdf-process controls this.
Peter Davis writes:
> Ok, my problem was that the minted package was causing errors. Taking
> that out lets me generate pdf.
>
> Now to figure out how to generate other formats, to work with HTML and
> LaTeX/PDF output.
>
> Thanks, all!!
>
> -pd
--
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
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Best diagram, image software?
2016-10-06 19:10 ` Peter Davis
2016-10-06 19:25 ` Clément Pit--Claudel
@ 2016-10-06 19:32 ` Martin Schöön
1 sibling, 0 replies; 24+ messages in thread
From: Martin Schöön @ 2016-10-06 19:32 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
Maybe a distraction from the discussion on graphing alternatives that
can be embedded into the org/LaTeX code but I am pretty happy with the
results I get from using Veusz.
http://home.gna.org/veusz/
Adding to the confusion by adding a recommendation for a program I use
to create numerical data from graphs:
http://markummitchell.github.io/engauge-digitizer/
--
Martin Schöön
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Best diagram, image software?
2016-10-06 16:48 ` Peter Davis
2016-10-06 17:59 ` John Kitchin
2016-10-06 18:15 ` Nick Dokos
@ 2016-10-07 6:38 ` Robert Klein
2 siblings, 0 replies; 24+ messages in thread
From: Robert Klein @ 2016-10-07 6:38 UTC (permalink / raw)
To: Peter Davis; +Cc: emacs-orgmode
Hi,
I'm using the following header, which lets me export to PDF and HTML,
both (basically from here:
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html).
#+header: :exports results :file fsa.png
#+header: :imagemagick yes :iminoptions -density 600 :imoutoptions
-geometry 1200
#+header: :fit yes :noweb yes :headers '("\\usepackage{tikz}")
#+begin_src latex :exports results :results raw :file fsa.png
(and no #+Results line, but I don't know if this matters)
Also, regarding the babel I use the following to map source blocks to
"supported" LaTeX listings languages:
Add “text” and “conf” to =latex-listings-langs= with empty (space as a
trick) language name to be used in the LaTeX listings package.
#+begin_src emacs-lisp
(add-to-list 'org-latex-listings-langs
'(text " "))
(add-to-list 'org-latex-listings-langs
'(conf " "))
(add-to-list 'org-latex-listings-langs
'(nxml "XML"))
(add-to-list 'org-latex-listings-langs
'(org " "))
Best regards
On Thu, 06 Oct 2016 12:48:52 -0400
Peter Davis <pfd@pfdstudio.com> wrote:
> 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.
>
>
^ permalink raw reply [flat|nested] 24+ messages in thread