From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Davis Subject: Re: Graphics to HTML, LaTeX/PDF and DocBook? Date: Thu, 13 Oct 2016 10:35:55 -0400 Message-ID: <1476369355.2751508.754854177.7C08CEB0@webmail.messagingengine.com> References: <87inswjq0s.fsf@biologica.mercovich.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buh77-0007Hj-3A for emacs-orgmode@gnu.org; Thu, 13 Oct 2016 10:36:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buh71-0001oc-W9 for emacs-orgmode@gnu.org; Thu, 13 Oct 2016 10:36:03 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:47418) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buh70-0001mq-PI for emacs-orgmode@gnu.org; Thu, 13 Oct 2016 10:35:59 -0400 In-Reply-To: <87inswjq0s.fsf@biologica.mercovich.net> 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: Eduardo Mercovich Cc: emacs-orgmode@gnu.org On Thu, Oct 13, 2016, at 10:13 AM, Eduardo Mercovich wrote: > Hi Peter. > > >> > I have a document with a number of embedded dot graphics [...] > > > 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. > > [...] > > I export from Inkscape to pdf and include the pdf file. Would that work > for you? > > HTH... Hi, Eduardo, I'm creating the SVGs right in org-mode, using GraphViz dot, like this: #+BEGIN_SRC dot :file mygraph.svg :cmdline -Kdot -Tsvg ... #+END_SRC org-mode then passes this through Inkscape with the command: inkscape -z -C -f./mygraph.svg -A./mygraph.pdf --export-latex This appears to be working, as I'm getting a .pdf_tex in the same directory as my org file. However, LaTeX's \includesvg{} seems unable to find the .pdf_tex file. Interestingly, I managed to get the document to output to PDF by manually running the inkscape command on each of the svg files. org-mode seems to be trying to do this, but for some reason it's not working. Now, however, my text doesn't fit in the boxes. I wonder if there's a way to make it all \footnotesize in the .pdf_tex files. Thanks, -pd -- Peter Davis www.techcurmudgeon.com