From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Best way to make/add tech diagrams/graphics? Date: Fri, 17 May 2013 13:06:36 -0400 Message-ID: <877gixy1r7.fsf@pierrot.dokosmarshall.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdO7I-0001va-Hi for emacs-orgmode@gnu.org; Fri, 17 May 2013 13:06:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UdO7H-0001ZF-3n for emacs-orgmode@gnu.org; Fri, 17 May 2013 13:06:52 -0400 Received: from plane.gmane.org ([80.91.229.3]:51653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdO7G-0001Z8-RE for emacs-orgmode@gnu.org; Fri, 17 May 2013 13:06:51 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UdO7E-0000uX-0W for emacs-orgmode@gnu.org; Fri, 17 May 2013 19:06:48 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 May 2013 19:06:48 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 May 2013 19:06:48 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Lawrence Bottorff writes: > I'd like to embed images into my running org file -- for eventual > conversion to Latex or html. These would be simple diagram-style > pictures such as math or technical diagrams that cannot be done with > gnuplot or other formula-to-picture conversion software.  > > Examples: > http://www.library.utoronto.ca/see/SEED/Vol5-1/Queiroz_Emmeche_El-Hani_files/image003.gif > http://math.ucr.edu/home/baez/irvine/SBGN_process_description_cropped.jpg > > I know emacs can draw some things, but I'd probably need better > renditions. So how does emacs/org handle such images and what sort of > software (I'm on Ubuntu) is available for making such drawings and > diagrams? What about software like "Processing"? Having Processing > code embedded that then produced images would be great. > There is a myriad of graphics programs on Linux: graphviz/dot, ditaa, plantuml, tikz, gimp, inkscape... There are many more. Some are general, some are more specialized. Russell mentioned Visio but afaik that's Windows only. Processing Processing code through a babel process should be entirely processable too :-) Once you produce output in some format (png, jpeg, svg, postscript - whatever your emacs is capable of showing through the image.el package[fn:1]), you can add a link to it in your org file. Then you can toggle inline images on or off with C-c C-x C-v (or C-u C-c C-x C-v if you have captions). Fundamentally, that's it - but of course, people have been coming up with streamlined ways to do all that (e.g. Max M's org-screenshot to take the most recent example). Footnotes: [fn:1] Mine can do png, jpeg, svg, xpm, but not postscript, even though image-type-available-p says that it *is* available - there are other formats that should also work, but that I have not tried: gif, pbm, xbm, bmp, tiff. Not sure why postscript does not work for me. On linux, the various image types require that emacs be built with the various libraries. On Windows, I think they are dynamically loaded, if present. -- Nick