all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Best way to make/add tech diagrams/graphics?
@ 2013-05-17 15:13 Lawrence Bottorff
  2013-05-17 15:17 ` Russell Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Lawrence Bottorff @ 2013-05-17 15:13 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 766 bytes --]

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.

Borgauf

[-- Attachment #2: Type: text/html, Size: 1139 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Best way to make/add tech diagrams/graphics?
  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 17:06 ` Nick Dokos
  2 siblings, 0 replies; 7+ messages in thread
From: Russell Adams @ 2013-05-17 15:17 UTC (permalink / raw)
  To: emacs-orgmode

Lawrence,

On Fri, May 17, 2013 at 10:13:56AM -0500, Lawrence Bottorff wrote:
> 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.

I routinely put diagrams in my technical documentation. I prefer to
create PDF files (ie: from Visio) and include them with Latex's
includepdf package, or inline with PNG images.

I must say however when I draw diagrams I use yEd, which is incredibly
powerful and auto-formatting. These diagrams can be exported to PDF
and put in Org easily.

Thanks.


------------------------------------------------------------------
Russell Adams                            RLAdams@AdamsInfoServ.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Best way to make/add tech diagrams/graphics?
  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 17:06 ` Nick Dokos
  2 siblings, 1 reply; 7+ messages in thread
From: John Hendy @ 2013-05-17 16:40 UTC (permalink / raw)
  To: Lawrence Bottorff; +Cc: emacs-orgmode

On Fri, May 17, 2013 at 10:13 AM, Lawrence Bottorff <borgauf@gmail.com> wrote:
> 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
>

A few that come to mind for this sort of thing:
- ditaa: http://ditaa.sourceforge.net/
- graphviz/dot: http://www.graphviz.org/
- my personal favorite, but quite the learning curve, it PFG/TikZ:
http://www.texample.net/tikz/examples/

All are possible with babel blocks.


Good luck!
John

> 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.
>
> Borgauf

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Best way to make/add tech diagrams/graphics?
  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 17:06 ` Nick Dokos
  2 siblings, 0 replies; 7+ messages in thread
From: Nick Dokos @ 2013-05-17 17:06 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Best way to make/add tech diagrams/graphics?
  2013-05-17 16:40 ` John Hendy
@ 2013-05-17 23:09   ` Marcin Borkowski
  2013-05-17 23:14     ` John Hendy
  0 siblings, 1 reply; 7+ messages in thread
From: Marcin Borkowski @ 2013-05-17 23:09 UTC (permalink / raw)
  To: emacs-orgmode

Dnia 2013-05-17, o godz. 11:40:17
John Hendy <jw.hendy@gmail.com> napisał(a):

> On Fri, May 17, 2013 at 10:13 AM, Lawrence Bottorff
> <borgauf@gmail.com> wrote:
> > 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
> >
> 
> A few that come to mind for this sort of thing:
> - ditaa: http://ditaa.sourceforge.net/
> - graphviz/dot: http://www.graphviz.org/
> - my personal favorite, but quite the learning curve, it PFG/TikZ:
> http://www.texample.net/tikz/examples/

Typo: it's PGF, not PFG, just in case you wanted to google it or
something;).

I'd also mention Metapost, on which I believe TikZ was modeled (at least
to some extent).

Since you mentioned embedding in LaTeX, I'd also suggest TikZ; it has a
huge manual, but /very/ well written, with quite a few tutorials and
examples. One benefit is that it is tightly integrated into LaTeX,
but it can also export SVG (though with a few limitations compared to
the pdfLaTeX-produced output).  Also, you might want to check out the
gallery of TikZ examples here: http://www.texample.net/tikz/ .

> Good luck!
> John

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Best way to make/add tech diagrams/graphics?
  2013-05-17 23:09   ` Marcin Borkowski
@ 2013-05-17 23:14     ` John Hendy
  2013-05-21  8:19       ` Christopher Witte
  0 siblings, 1 reply; 7+ messages in thread
From: John Hendy @ 2013-05-17 23:14 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: emacs-orgmode

On Fri, May 17, 2013 at 6:09 PM, Marcin Borkowski <mbork@wmi.amu.edu.pl> wrote:
> Dnia 2013-05-17, o godz. 11:40:17
> John Hendy <jw.hendy@gmail.com> napisał(a):
>
>> On Fri, May 17, 2013 at 10:13 AM, Lawrence Bottorff
>> <borgauf@gmail.com> wrote:
>> > 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
>> >
>>
>> A few that come to mind for this sort of thing:
>> - ditaa: http://ditaa.sourceforge.net/
>> - graphviz/dot: http://www.graphviz.org/
>> - my personal favorite, but quite the learning curve, it PFG/TikZ:
>> http://www.texample.net/tikz/examples/
>
> Typo: it's PGF, not PFG, just in case you wanted to google it or
> something;).
>

Oops -- typo on my part.

> I'd also mention Metapost, on which I believe TikZ was modeled (at least
> to some extent).
>
> Since you mentioned embedding in LaTeX, I'd also suggest TikZ; it has a
> huge manual, but /very/ well written, with quite a few tutorials and
> examples. One benefit is that it is tightly integrated into LaTeX,
> but it can also export SVG (though with a few limitations compared to
> the pdfLaTeX-produced output).  Also, you might want to check out the
> gallery of TikZ examples here: http://www.texample.net/tikz/ .
>

The examples are great. The link I provided goes right to the examples
vs. that sort of home page screen which only shows the most recent
couple that have been submitted.

I'll have to check out metapost, as I'd not heard of that one.


Thanks,
John

>> Good luck!
>> John
>
> Best,
>
> --
> Marcin Borkowski
> http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
> Adam Mickiewicz University
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Best way to make/add tech diagrams/graphics?
  2013-05-17 23:14     ` John Hendy
@ 2013-05-21  8:19       ` Christopher Witte
  0 siblings, 0 replies; 7+ messages in thread
From: Christopher Witte @ 2013-05-21  8:19 UTC (permalink / raw)
  To: John Hendy; +Cc: emacs-orgmode, Marcin Borkowski

[-- Attachment #1: Type: text/plain, Size: 2357 bytes --]

Asymptote http://asymptote.sourceforge.net/ would also be another option in
a similar vein to TikZ.


On 18 May 2013 01:14, John Hendy <jw.hendy@gmail.com> wrote:

> On Fri, May 17, 2013 at 6:09 PM, Marcin Borkowski <mbork@wmi.amu.edu.pl>
> wrote:
> > Dnia 2013-05-17, o godz. 11:40:17
> > John Hendy <jw.hendy@gmail.com> napisał(a):
> >
> >> On Fri, May 17, 2013 at 10:13 AM, Lawrence Bottorff
> >> <borgauf@gmail.com> wrote:
> >> > 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
> >> >
> >>
> >> A few that come to mind for this sort of thing:
> >> - ditaa: http://ditaa.sourceforge.net/
> >> - graphviz/dot: http://www.graphviz.org/
> >> - my personal favorite, but quite the learning curve, it PFG/TikZ:
> >> http://www.texample.net/tikz/examples/
> >
> > Typo: it's PGF, not PFG, just in case you wanted to google it or
> > something;).
> >
>
> Oops -- typo on my part.
>
> > I'd also mention Metapost, on which I believe TikZ was modeled (at least
> > to some extent).
> >
> > Since you mentioned embedding in LaTeX, I'd also suggest TikZ; it has a
> > huge manual, but /very/ well written, with quite a few tutorials and
> > examples. One benefit is that it is tightly integrated into LaTeX,
> > but it can also export SVG (though with a few limitations compared to
> > the pdfLaTeX-produced output).  Also, you might want to check out the
> > gallery of TikZ examples here: http://www.texample.net/tikz/ .
> >
>
> The examples are great. The link I provided goes right to the examples
> vs. that sort of home page screen which only shows the most recent
> couple that have been submitted.
>
> I'll have to check out metapost, as I'd not heard of that one.
>
>
> Thanks,
> John
>
> >> Good luck!
> >> John
> >
> > Best,
> >
> > --
> > Marcin Borkowski
> > http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
> > Adam Mickiewicz University
> >
>
>

[-- Attachment #2: Type: text/html, Size: 3836 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-05-21  8:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.