From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Best diagram, image software? Date: Thu, 6 Oct 2016 15:15:47 -0500 Message-ID: References: <86a8eio8nh.fsf@gmail.com> <1475772532.3845152.748012049.6BB86C20@webmail.messagingengine.com> <87d1jds5r8.fsf@gmail.com> <1475778407.3868096.748112553.34712DDD@webmail.messagingengine.com> <878tu1s3qz.fsf@gmail.com> <1475781013.3877607.748155465.6189AB36@webmail.messagingengine.com> <1475783345.3885031.748189065.2F10B3EC@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]:49873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsF56-0006Xu-On for emacs-orgmode@gnu.org; Thu, 06 Oct 2016 16:15:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsF54-00077I-HU for emacs-orgmode@gnu.org; Thu, 06 Oct 2016 16:15:51 -0400 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:35140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsF54-000777-AR for emacs-orgmode@gnu.org; Thu, 06 Oct 2016 16:15:50 -0400 Received: by mail-wm0-x22a.google.com with SMTP id f193so310961340wmg.0 for ; Thu, 06 Oct 2016 13:15:49 -0700 (PDT) In-Reply-To: <1475783345.3885031.748189065.2F10B3EC@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 On Thu, Oct 6, 2016 at 2:49 PM, Peter Davis wrote: > > On Thu, Oct 6, 2016, at 03:25 PM, Cl=C3=A9ment 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} =3D [circle, draw, text centered, font=3D\footnotesize, fill=3Dblue!25] \tikzstyle{rstate} =3D [circle, draw, text centered, font=3D\footnotesize, fill=3Dred!25] \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 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 >