From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Davis Subject: Re: Graphics to HTML, LaTeX/PDF and DocBook? Date: Tue, 04 Oct 2016 12:19:46 -0400 Message-ID: <1475597986.3200616.745625081.21860430@webmail.messagingengine.com> References: <19e18ad2e24f40e5b94d6f695f1d9910@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87lgy46xlo.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brSRg-0008WO-F4 for emacs-orgmode@gnu.org; Tue, 04 Oct 2016 12:19:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brSRd-00013M-4p for emacs-orgmode@gnu.org; Tue, 04 Oct 2016 12:19:56 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:49647) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brSRb-00010Y-TU for emacs-orgmode@gnu.org; Tue, 04 Oct 2016 12:19:53 -0400 In-Reply-To: <87lgy46xlo.fsf@pinto.chemeng.ucl.ac.uk> 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: emacs-orgmode@gnu.org On Tue, Oct 4, 2016, at 09:40 AM, Eric S Fraga wrote: > On Tuesday, 4 Oct 2016 at 13:03, Peter Davis wrote: > > I have a document with a number of embedded dot graphics (and one > > ditaa). I'm trying to output these in some vector format, so they will > > work across a wide range of devices. However I can't seem to find the > > one true graphics format. > > I don't think there is one true graphics format unfortunately. What I > would suggest is that you have your src block export the dot graphic to > a specific format based on the export target. For instance, if > exporting to LaTeX/PDF, use PDF; if exporting to HTML, use SVG. You can > specify the actual destination using elisp code in the src block header. Thanks, Eric. I've decided to bite the bullet and install InkScape. However, I'm having a hard time figuring out how to integrate this with org-mode. Org generates the \includegraphics commands, so I assume it understands the svg package, which in turn understands inkscape, but I don't know how to connect them. There are bits and pieces around the Web, but I haven't found a coherent explanation of how to set this up. Anyone know of one? Thanks! -pd -- Peter Davis www.techcurmudgeon.com