emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Rainer M Krug <r.m.krug@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: plantuml and svg format instead of png - feature request
Date: Tue, 21 Sep 2010 09:48:27 -0600	[thread overview]
Message-ID: <8762xzayic.fsf@gmail.com> (raw)
In-Reply-To: <4C8A7E5A.7030405@gmail.com> (Rainer M. Krug's message of "Fri, 10 Sep 2010 20:52:10 +0200")

Hi Rainer,

Sorry about the delayed reply.

Rainer M Krug <r.m.krug@gmail.com> writes:

> On 10/09/10 20:40, Eric Schulte wrote:
>> Hi Rainer,
>> 
>> If you could send me an example of how to generate an svg image using
>> plantuml on the command line, I'll add that functionality to
>> ob-plantuml.el.
>
> from org:
>
> #+begin_src :file test.svg :commandline -tsvg
>  ...
> #+end_src
>
> command line:
>
> java -jar plantuml.jar -tsvg -p < sequence.plantuml > sequence.svg
>

Whenever the extension of the :file header argument is "svg" the
appropriate "-tsvg" flag will now automatically be added to the command
line.

>
> with direct conversion to pdf when using rsvg-convert:
>
> java -jar plantuml.jar -tsvg -p < sequence.plantuml | rsvg-convert -f
> pdf > sequence.pdf
>

This looks nice, but it requires a second utility rsvg-convert.  I think
this functionality would be better implemented using the long-awaited-
but-not-yet-developed post-processing code blocks.

Best -- Eric

>
> Options for rsvg-convert:
>  -f , --format=[png, pdf, ps, svg]     save format [optional; defaults
> to 'png']
>
> the others are not that relevant.
>
>
> Thanks,
>
> Rainer
>
>> 
>> Thanks -- Eric
>> 
>> Rainer M Krug <r.m.krug@gmail.com> writes:
>> 
>>> Hi
>>>
>>> I just saw that a bug in plantuml is fixed - namely that -tsvg is
>>> compatible with the -pipe optin. Therefore it should be possible top
>>> produce svg vector graphs from plantuml.
>>>
>>> In a second step, these could be converted to png, pdf or ps with the
>>> packagelibrsvg2-bin (I am using ubuntu), therefore producing high
>>> quality graphs.
>>>
>>> As I don't know how to implement it, would it be possible to implement
>>>
>>> - that, depending on the :file name specified, either a .png or a .svg
>>> is produced by plantuml
>>>
>>> The conversion to ps or pdf could then be done in a second bash script.
>>>
>>> Thanks,
>>>
>>> and I really like the plantuml integration for quickly documenting with
>>> flowcharts while programming - brilliant.
>>>
>>> Rainer

      reply	other threads:[~2010-09-21 15:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-09 18:36 plantuml and svg format instead of png - feature request Rainer M Krug
2010-09-10 18:40 ` Eric Schulte
2010-09-10 18:52   ` Rainer M Krug
2010-09-21 15:48     ` Eric Schulte [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=8762xzayic.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=r.m.krug@gmail.com \
    /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).