emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Best way to make/add tech diagrams/graphics?
Date: Fri, 17 May 2013 13:06:36 -0400	[thread overview]
Message-ID: <877gixy1r7.fsf@pierrot.dokosmarshall.org> (raw)
In-Reply-To: CAFAhFSVt0RFUtUcdZ7ujhBqSWQ-vBZat-W-mECTMQrEAF+h+cA@mail.gmail.com

Lawrence Bottorff <borgauf@gmail.com> 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

      parent reply	other threads:[~2013-05-17 17:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-17 15:13 Best way to make/add tech diagrams/graphics? Lawrence Bottorff
2013-05-17 15:17 ` Russell Adams
2013-05-17 16:40 ` John Hendy
2013-05-17 23:09   ` Marcin Borkowski
2013-05-17 23:14     ` John Hendy
2013-05-21  8:19       ` Christopher Witte
2013-05-17 17:06 ` Nick Dokos [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877gixy1r7.fsf@pierrot.dokosmarshall.org \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).