emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Creating a (RabbitMQ) diagram
@ 2019-10-17 11:01 Cecil Westerhof
  2019-10-17 11:12 ` PICCA Frederic-Emmanuel
  0 siblings, 1 reply; 8+ messages in thread
From: Cecil Westerhof @ 2019-10-17 11:01 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 662 bytes --]

I need to give a workshop where I have to display a lot of diagrams. For
example something like the added RabbitMQ diagram.
I understood that this would be relatively easy with org-mode. (It does not
have to be as fancy. It is mostly to visualise the functionalities.)

I create my presentation with LaTeX Beamer (what I am also learning at the
moment). So it would be nice if I could generate code that can be included
in LaTeX, but just png-files are also acceptable.

What is the best way to take this on? I need to generate quit a few
diagrams and while I have worked with org-mode, I do not have much
experience with creating graphics.

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 1310 bytes --]

[-- Attachment #2: rabbitmq.png --]
[-- Type: image/png, Size: 138292 bytes --]

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

* Re: Creating a (RabbitMQ) diagram
  2019-10-17 11:01 Creating a (RabbitMQ) diagram Cecil Westerhof
@ 2019-10-17 11:12 ` PICCA Frederic-Emmanuel
  2019-10-17 11:40   ` Ken Mankoff
  2019-10-17 20:03   ` Marcin Borkowski
  0 siblings, 2 replies; 8+ messages in thread
From: PICCA Frederic-Emmanuel @ 2019-10-17 11:12 UTC (permalink / raw)
  To: Cecil Westerhof, emacs-orgmode@gnu.org

https://en.wikipedia.org/wiki/PGF/TikZ

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

* Re: Creating a (RabbitMQ) diagram
  2019-10-17 11:12 ` PICCA Frederic-Emmanuel
@ 2019-10-17 11:40   ` Ken Mankoff
  2019-10-17 13:21     ` Cecil Westerhof
  2019-10-17 14:01     ` Cecil Westerhof
  2019-10-17 20:03   ` Marcin Borkowski
  1 sibling, 2 replies; 8+ messages in thread
From: Ken Mankoff @ 2019-10-17 11:40 UTC (permalink / raw)
  To: PICCA Frederic-Emmanuel; +Cc: Cecil Westerhof, emacs-orgmode@gnu.org


On 2019-10-17 at 13:12 +02, PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> wrote...
> https://en.wikipedia.org/wiki/PGF/TikZ

Or you can do it with Ditaa, http://plantuml.com, others that may be easier to use than TikZ.

  -k.

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

* Re: Creating a (RabbitMQ) diagram
  2019-10-17 11:40   ` Ken Mankoff
@ 2019-10-17 13:21     ` Cecil Westerhof
  2019-10-18  9:45       ` Fraga, Eric
  2019-10-17 14:01     ` Cecil Westerhof
  1 sibling, 1 reply; 8+ messages in thread
From: Cecil Westerhof @ 2019-10-17 13:21 UTC (permalink / raw)
  To: emacs-orgmode

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

Op do 17 okt. 2019 om 13:40 schreef Ken Mankoff <mankoff@gmail.com>:

>
> On 2019-10-17 at 13:12 +02, PICCA Frederic-Emmanuel <
> frederic-emmanuel.picca@synchrotron-soleil.fr> wrote...
> > https://en.wikipedia.org/wiki/PGF/TikZ
>
> Or you can do it with Ditaa, http://plantuml.com, others that may be
> easier to use than TikZ.
>

I tried it out (after a bit of configuring) with the following:
#+BEGIN_SRC plantuml :file groupingComponents.eps :noexport
@startuml

package "Some Group" {
  HTTP - [First Component]
  [Another Component]
}

node "Other Groups" {
  FTP - [Second Component]
  [First Component] --> FTP
}

cloud {
  [Example 1]
}


database "MySql" {
  folder "This is my folder" {
[Folder 3]
  }
  frame "Foo" {
[Frame 4]
  }
}


[Another Component] --> [Example 1]
[Example 1] --> [Folder 3]
[Folder 3] --> [Frame 4]

@enduml
#+END_SRC


It looks a bit different, but I will not worry about it at the moment.

Is it best to save it as eps, or better another format? (When using it with
LaTeX.)

-- 
Cecil Westerhof

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

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

* Re: Creating a (RabbitMQ) diagram
  2019-10-17 11:40   ` Ken Mankoff
  2019-10-17 13:21     ` Cecil Westerhof
@ 2019-10-17 14:01     ` Cecil Westerhof
  1 sibling, 0 replies; 8+ messages in thread
From: Cecil Westerhof @ 2019-10-17 14:01 UTC (permalink / raw)
  To: emacs-orgmode

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

Op do 17 okt. 2019 om 13:40 schreef Ken Mankoff <mankoff@gmail.com>:

>
> On 2019-10-17 at 13:12 +02, PICCA Frederic-Emmanuel <
> frederic-emmanuel.picca@synchrotron-soleil.fr> wrote...
> > https://en.wikipedia.org/wiki/PGF/TikZ
>
> Or you can do it with Ditaa, http://plantuml.com, others that may be
> easier to use than TikZ.
>

It is not perfect, but for the moment good enough:
#+BEGIN_SRC plantuml :file rabbitMQ.eps :noexport
@startuml

[Producer]

cloud {
  [Internet] as Internet1
}

node RabbitMQ {
  [Exchange]
  [Queue]
}

cloud {
  [Internet] as Internet2
}

[Consumer]


[Producer]  -> [Internet1] : Publish
[Internet1] -> [Exchange]  : Publish
[Exchange]  -> [Queue]     : Route
[Queue]     -> [Internet2] : Consume
[Internet2] -> [Consumer]  : Consume

@enduml
#+END_SRC

-- 
Cecil Westerhof

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

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

* Re: Creating a (RabbitMQ) diagram
  2019-10-17 11:12 ` PICCA Frederic-Emmanuel
  2019-10-17 11:40   ` Ken Mankoff
@ 2019-10-17 20:03   ` Marcin Borkowski
  1 sibling, 0 replies; 8+ messages in thread
From: Marcin Borkowski @ 2019-10-17 20:03 UTC (permalink / raw)
  To: PICCA Frederic-Emmanuel; +Cc: Cecil Westerhof, emacs-orgmode@gnu.org


On 2019-10-17, at 13:12, PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> wrote:

> https://en.wikipedia.org/wiki/PGF/TikZ

+1

-- 
Marcin Borkowski
http://mbork.pl

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

* Re: Creating a (RabbitMQ) diagram
  2019-10-17 13:21     ` Cecil Westerhof
@ 2019-10-18  9:45       ` Fraga, Eric
  2019-10-19  8:50         ` Michael Welle
  0 siblings, 1 reply; 8+ messages in thread
From: Fraga, Eric @ 2019-10-18  9:45 UTC (permalink / raw)
  To: Cecil Westerhof; +Cc: emacs-orgmode@gnu.org

On Thursday, 17 Oct 2019 at 15:21, Cecil Westerhof wrote:
> I tried it out (after a bit of configuring) with the following:
>
> #+BEGIN_SRC plantuml :file groupingComponents.eps :noexport

[...]

> It looks a bit different, but I will not worry about it at the moment.

I use the following tools within org for eventual export to PDF via
latex: tikz, ditaa, graphviz (dot, neato, ...), & plantuml.  I've even
bee known to use LaTeX's own picture environmnt.  They each have
different advantages and disadvantages but all work well with org in my
opinion.

> Is it best to save it as eps, or better another format? (When using it with
> LaTeX.)

I would save as PDF, whenever possible.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.6-544-gd215c3

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

* Re: Creating a (RabbitMQ) diagram
  2019-10-18  9:45       ` Fraga, Eric
@ 2019-10-19  8:50         ` Michael Welle
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Welle @ 2019-10-19  8:50 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

"Fraga, Eric" <e.fraga@ucl.ac.uk> writes:

> On Thursday, 17 Oct 2019 at 15:21, Cecil Westerhof wrote:
>> I tried it out (after a bit of configuring) with the following:
>>
>> #+BEGIN_SRC plantuml :file groupingComponents.eps :noexport
>
> [...]
>
>> It looks a bit different, but I will not worry about it at the moment.
>
> I use the following tools within org for eventual export to PDF via
> latex: tikz, ditaa, graphviz (dot, neato, ...), & plantuml.  I've even
> bee known to use LaTeX's own picture environmnt.  They each have
> different advantages and disadvantages but all work well with org in my
> opinion.
so think and do I. At the moment I try to consolidate the tools I use
and try to get away with tikz only. I tried to reproduce same diagrams I
created with plantuml. Well, it works. But there are a lot of details in
plantuml's output that you have to do manually with tikz. BTW, I just
discovered that plantuml's pdf output is way different from its LaTeX
output.

Regards
hmw

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

end of thread, other threads:[~2019-10-19  8:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-17 11:01 Creating a (RabbitMQ) diagram Cecil Westerhof
2019-10-17 11:12 ` PICCA Frederic-Emmanuel
2019-10-17 11:40   ` Ken Mankoff
2019-10-17 13:21     ` Cecil Westerhof
2019-10-18  9:45       ` Fraga, Eric
2019-10-19  8:50         ` Michael Welle
2019-10-17 14:01     ` Cecil Westerhof
2019-10-17 20:03   ` Marcin Borkowski

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