* plantuml and svg format instead of png - feature request
@ 2010-09-09 18:36 Rainer M Krug
2010-09-10 18:40 ` Eric Schulte
0 siblings, 1 reply; 4+ messages in thread
From: Rainer M Krug @ 2010-09-09 18:36 UTC (permalink / raw)
To: emacs-orgmode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
- --
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa
Tel: +33 - (0)9 53 10 27 44
Cell: +27 - (0)8 39 47 90 42
Fax (SA): +27 - (0)8 65 16 27 82
Fax (D) : +49 - (0)3 21 21 25 22 44
Fax (FR): +33 - (0)9 58 10 27 44
email: Rainer@krugs.de
Skype: RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkyJKRwACgkQoYgNqgF2egpfCACfYFd063pczR8GCtNT6cwBUBkW
8pcAnRHicRwGnBTFt0AdRoTXoKplnzk/
=032N
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: plantuml and svg format instead of png - feature request
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
0 siblings, 1 reply; 4+ messages in thread
From: Eric Schulte @ 2010-09-10 18:40 UTC (permalink / raw)
To: Rainer M Krug; +Cc: emacs-orgmode
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.
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: plantuml and svg format instead of png - feature request
2010-09-10 18:40 ` Eric Schulte
@ 2010-09-10 18:52 ` Rainer M Krug
2010-09-21 15:48 ` Eric Schulte
0 siblings, 1 reply; 4+ messages in thread
From: Rainer M Krug @ 2010-09-10 18:52 UTC (permalink / raw)
To: Eric Schulte; +Cc: emacs-orgmode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
with direct conversion to pdf when using rsvg-convert:
java -jar plantuml.jar -tsvg -p < sequence.plantuml | rsvg-convert -f
pdf > sequence.pdf
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
- --
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa
Tel: +33 - (0)9 53 10 27 44
Cell: +27 - (0)8 39 47 90 42
Fax (SA): +27 - (0)8 65 16 27 82
Fax (D) : +49 - (0)3 21 21 25 22 44
Fax (FR): +33 - (0)9 58 10 27 44
email: Rainer@krugs.de
Skype: RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkyKfloACgkQoYgNqgF2ego4iACdH+7oPmFOsMsCbOnl5ntde6YD
kvkAoIsHEnXi5ch+KFVEnaCB4dTTgC6V
=O9ad
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: plantuml and svg format instead of png - feature request
2010-09-10 18:52 ` Rainer M Krug
@ 2010-09-21 15:48 ` Eric Schulte
0 siblings, 0 replies; 4+ messages in thread
From: Eric Schulte @ 2010-09-21 15:48 UTC (permalink / raw)
To: Rainer M Krug; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-09-21 15:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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).