From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Klein Subject: Re: Best diagram, image software? Date: Fri, 7 Oct 2016 08:38:44 +0200 Message-ID: <20161007083844.67fce81b@pckr186.mpip-mainz.mpg.de> 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: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsOo6-000270-6N for emacs-orgmode@gnu.org; Fri, 07 Oct 2016 02:38:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsOo0-00047v-Vo for emacs-orgmode@gnu.org; Fri, 07 Oct 2016 02:38:57 -0400 Received: from gate1.mpip-mainz.mpg.de ([194.95.63.248]:62279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsOo0-000410-NU for emacs-orgmode@gnu.org; Fri, 07 Oct 2016 02:38:52 -0400 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 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=20 #+header: :fit yes :noweb yes :headers '("\\usepackage{tikz}")=20 #+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 =E2=80=9Ctext=E2=80=9D and =E2=80=9Cconf=E2=80=9D to =3Dlatex-listings-= langs=3D 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 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:=20 >=20 > http://doblogit.com/posts/2015-10-23-org-graphics.html >=20 > #+begin_src latex :exports results :results output raw :file > images/fsa.png > % Define block styles > \usetikzlibrary{shapes,arrows} > \tikzstyle{astate} =3D [circle, draw, text centered, font=3D\footnotesize, > fill=3Dblue!25] > \tikzstyle{rstate} =3D [circle, draw, text centered, font=3D\footnotesize, > fill=3Dred!25] >=20 > \begin{tikzpicture}[->,>=3Dstealth', shorten >=3D1pt, auto, node > distance=3D2.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 >=20 >=20 > I get: >=20 > 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=E2=80=99t produ= ced >=20 > I've got ImageMagick installed. I don't know how to debug this. >=20 >=20