Re: How to configure plantuml with lyx

2014-01-22 Thread rajender saini
Here are all the files

1) sample.plantuml

@startuml

title sample dia

' Diagram for adding participant to a Chat Group
' Rajender Saini



participant Endpoint A as EPA
participant Gateway as Gateway
participant Endpoint B as EPB
participant Endpoint C as EPC
autonumber
EPA - Gateway:Register

@enduml

---
2) newfile1.lyx

-

#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass article
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\use_mhchem 1
\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Section
test lyx document to include plantuml graphics.
\end_layout

\begin_layout Standard
\begin_inset Graphics
filename seq.plantuml

\end_inset


\end_layout

\end_body
\end_document

--

converters are configured as suggested above in the thread. Please note
that you need plantuml.jar to configure plantuml.

Regards,
Rajender saini







On Fri, Jan 17, 2014 at 12:29 AM, Rainer M Krug rai...@krugs.de wrote:

 On 17 January 2014 09:01, rajender saini rajendersa...@gmail.com wrote:

 Thanks Rainer, I am able to generate diagram into lyx master file using
 the steps shared by you. Thank you very much.



 My master file include the .plantuml file as graphic as suggested by you
 and it is working fine.


 I assume you mean that you can see the .plantuml file as a picture in LyX?
 Good to hear. So the .plantuml - .svg - .png is working.


 I wanted to export whole file as PDF so


 pdflatex? That is what I use.



 Next I used inkscape to convert SVG to PDF by adding convertor.

 when i run export as PDF image is not included into the master PDF doc.


 The conversion should be done by LyX. AS I said, I use rsvg, and it works
 as expected.




  I can see the SVG to PDF conversion happening into the temp cache
 directory. but somehow it is not included into master file any pointer will
 help.


 Hm - no idea here - if the conversion to a .svg - .pdf I have no idea why
 it is not included. Just make a small example .lyx file and post it here
 together with the .plantuml file so that I can try it out if it works here.

 Cheers,

 Rainer





 Regards,
 Rajender Saini


 On Thu, Jan 16, 2014 at 11:56 AM, rajender saini rajendersa...@gmail.com
  wrote:

 Thank you very much Rainer for immediate response. I will follow these
 steps and come back if I have any issue.


 On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug rai...@krugs.de wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 On 01/16/14, 06:14 , rajender saini wrote:
  I got your reference from the gmail lyx posting. Can you help me
  with the steps include plant uml file into lyx file and
  automatically get it converted into image when we include it into
  the lyx master file ?

 Sure.

 I will CC it to the LyX list to have it there for reference.

 I assume you have downloaded plantuml.

 1) Define a new File Format, named plantuml:

 Vector graphics format: I ticked it - what are actually the
 implications of this field?
 Short name: plantuml
 Extension:  plantuml
 So all files with the extension .plantuml will be considered as
 plantuml source code files files!

 Editor: I choose Emacs, but set any text editor you want.

 In the preferences files, this corresponds to the following line in
 the formats section:

 \format plantuml plantuml plantuml   open -n -a Emacs
 - --args --name LyX --title LyX --no-desktop vector

 Now we have to define the converters, i.e. how to convert the plantuml
 file into a format usable by the converter chain in LyX. This now
 depends on you installed converters, but I got the best results when
 using svg as the *only* output format of plantuml, and then use the
 standard converter tools of LyX to convert these into 

Re: How to configure plantuml with lyx

2014-01-22 Thread rajender saini
Here are all the files

1) sample.plantuml

@startuml

title sample dia

' Diagram for adding participant to a Chat Group
' Rajender Saini



participant Endpoint A as EPA
participant Gateway as Gateway
participant Endpoint B as EPB
participant Endpoint C as EPC
autonumber
EPA - Gateway:Register

@enduml

---
2) newfile1.lyx

-

#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass article
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\use_mhchem 1
\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Section
test lyx document to include plantuml graphics.
\end_layout

\begin_layout Standard
\begin_inset Graphics
filename seq.plantuml

\end_inset


\end_layout

\end_body
\end_document

--

converters are configured as suggested above in the thread. Please note
that you need plantuml.jar to configure plantuml.

Regards,
Rajender saini







On Fri, Jan 17, 2014 at 12:29 AM, Rainer M Krug rai...@krugs.de wrote:

 On 17 January 2014 09:01, rajender saini rajendersa...@gmail.com wrote:

 Thanks Rainer, I am able to generate diagram into lyx master file using
 the steps shared by you. Thank you very much.



 My master file include the .plantuml file as graphic as suggested by you
 and it is working fine.


 I assume you mean that you can see the .plantuml file as a picture in LyX?
 Good to hear. So the .plantuml - .svg - .png is working.


 I wanted to export whole file as PDF so


 pdflatex? That is what I use.



 Next I used inkscape to convert SVG to PDF by adding convertor.

 when i run export as PDF image is not included into the master PDF doc.


 The conversion should be done by LyX. AS I said, I use rsvg, and it works
 as expected.




  I can see the SVG to PDF conversion happening into the temp cache
 directory. but somehow it is not included into master file any pointer will
 help.


 Hm - no idea here - if the conversion to a .svg - .pdf I have no idea why
 it is not included. Just make a small example .lyx file and post it here
 together with the .plantuml file so that I can try it out if it works here.

 Cheers,

 Rainer





 Regards,
 Rajender Saini


 On Thu, Jan 16, 2014 at 11:56 AM, rajender saini rajendersa...@gmail.com
  wrote:

 Thank you very much Rainer for immediate response. I will follow these
 steps and come back if I have any issue.


 On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug rai...@krugs.de wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 On 01/16/14, 06:14 , rajender saini wrote:
  I got your reference from the gmail lyx posting. Can you help me
  with the steps include plant uml file into lyx file and
  automatically get it converted into image when we include it into
  the lyx master file ?

 Sure.

 I will CC it to the LyX list to have it there for reference.

 I assume you have downloaded plantuml.

 1) Define a new File Format, named plantuml:

 Vector graphics format: I ticked it - what are actually the
 implications of this field?
 Short name: plantuml
 Extension:  plantuml
 So all files with the extension .plantuml will be considered as
 plantuml source code files files!

 Editor: I choose Emacs, but set any text editor you want.

 In the preferences files, this corresponds to the following line in
 the formats section:

 \format plantuml plantuml plantuml   open -n -a Emacs
 - --args --name LyX --title LyX --no-desktop vector

 Now we have to define the converters, i.e. how to convert the plantuml
 file into a format usable by the converter chain in LyX. This now
 depends on you installed converters, but I got the best results when
 using svg as the *only* output format of plantuml, and then use the
 standard converter tools of LyX to convert these into 

Re: How to configure plantuml with lyx

2014-01-22 Thread rajender saini
Here are all the files

1) sample.plantuml

@startuml

title sample dia

' Diagram for adding participant to a Chat Group
' Rajender Saini



participant "Endpoint A" as EPA
participant "Gateway" as Gateway
participant "Endpoint B" as EPB
participant "Endpoint C" as EPC
autonumber
EPA -> Gateway:Register

@enduml

---
2) newfile1.lyx

-

#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass article
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\use_mhchem 1
\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Section
test lyx document to include plantuml graphics.
\end_layout

\begin_layout Standard
\begin_inset Graphics
filename seq.plantuml

\end_inset


\end_layout

\end_body
\end_document

--

converters are configured as suggested above in the thread. Please note
that you need plantuml.jar to configure plantuml.

Regards,
Rajender saini







On Fri, Jan 17, 2014 at 12:29 AM, Rainer M Krug  wrote:

> On 17 January 2014 09:01, rajender saini  wrote:
>
>> Thanks Rainer, I am able to generate diagram into lyx master file using
>> the steps shared by you. Thank you very much.
>>
>>
>>
>> My master file include the .plantuml file as graphic as suggested by you
>> and it is working fine.
>>
>>
> I assume you mean that you can see the .plantuml file as a picture in LyX?
> Good to hear. So the .plantuml -> .svg -> .png is working.
>
>
>> I wanted to export whole file as PDF so
>>
>
> pdflatex? That is what I use.
>
>
>>
>> Next I used inkscape to convert SVG to PDF by adding convertor.
>>
>> when i run export as PDF image is not included into the master PDF doc.
>>
>
> The conversion should be done by LyX. AS I said, I use rsvg, and it works
> as expected.
>
>
>>
>>
>>  I can see the SVG to PDF conversion happening into the temp cache
>> directory. but somehow it is not included into master file any pointer will
>> help.
>>
>
> Hm - no idea here - if the conversion to a .svg -> .pdf I have no idea why
> it is not included. Just make a small example .lyx file and post it here
> together with the .plantuml file so that I can try it out if it works here.
>
> Cheers,
>
> Rainer
>
>
>
>>
>>
>> Regards,
>> Rajender Saini
>>
>>
>> On Thu, Jan 16, 2014 at 11:56 AM, rajender saini > > wrote:
>>
>>> Thank you very much Rainer for immediate response. I will follow these
>>> steps and come back if I have any issue.
>>>
>>>
>>> On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug  wrote:
>>>
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 On 01/16/14, 06:14 , rajender saini wrote:
 > I got your reference from the gmail lyx posting. Can you help me
 > with the steps include plant uml file into lyx file and
 > automatically get it converted into image when we include it into
 > the lyx master file ?

 Sure.

 I will CC it to the LyX list to have it there for reference.

 I assume you have downloaded plantuml.

 1) Define a new File Format, named "plantuml":

 Vector graphics format: I ticked it - what are actually the
 implications of this field?
 Short name: "plantuml"
 Extension:  "plantuml"
 So all files with the extension .plantuml will be considered as
 plantuml source code files files!

 Editor: I choose Emacs, but set any text editor you want.

 In the preferences files, this corresponds to the following line in
 the formats section:

 \format "plantuml" "plantuml" "plantuml" "" "" "open -n -a Emacs
 - --args --name LyX --title LyX --no-desktop" "vector"

 Now we have to define the converters, i.e. how 

Re: How to configure plantuml with lyx

2014-01-17 Thread rajender saini
Thanks Rainer, I am able to generate diagram into lyx master file using the
steps shared by you. Thank you very much.



My master file include the .plantuml file as graphic as suggested by you
and it is working fine.

I wanted to export whole file as PDF so

Next I used inkscape to convert SVG to PDF by adding convertor.

when i run export as PDF image is not included into the master PDF doc.


 I can see the SVG to PDF conversion happening into the temp cache
directory. but somehow it is not included into master file any pointer will
help.


Regards,
Rajender Saini


On Thu, Jan 16, 2014 at 11:56 AM, rajender saini rajendersa...@gmail.comwrote:

 Thank you very much Rainer for immediate response. I will follow these
 steps and come back if I have any issue.


 On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug rai...@krugs.de wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 On 01/16/14, 06:14 , rajender saini wrote:
  I got your reference from the gmail lyx posting. Can you help me
  with the steps include plant uml file into lyx file and
  automatically get it converted into image when we include it into
  the lyx master file ?

 Sure.

 I will CC it to the LyX list to have it there for reference.

 I assume you have downloaded plantuml.

 1) Define a new File Format, named plantuml:

 Vector graphics format: I ticked it - what are actually the
 implications of this field?
 Short name: plantuml
 Extension:  plantuml
 So all files with the extension .plantuml will be considered as
 plantuml source code files files!

 Editor: I choose Emacs, but set any text editor you want.

 In the preferences files, this corresponds to the following line in
 the formats section:

 \format plantuml plantuml plantuml   open -n -a Emacs
 - --args --name LyX --title LyX --no-desktop vector

 Now we have to define the converters, i.e. how to convert the plantuml
 file into a format usable by the converter chain in LyX. This now
 depends on you installed converters, but I got the best results when
 using svg as the *only* output format of plantuml, and then use the
 standard converter tools of LyX to convert these into the required
 formats.

 The conversion of svg (a vector format) to eps, PDF and PNG
 is done by rsvg, which is detected and configured automatically by
 LyX. If you don't have it installed, install it and re-configure :LyX
 and it should be detected.

 Coming back to plantuml: The converter to be defined converts the
 .plantuml to a graphics format .svg (vector):

 - From format: plantuml
 To format:  SVG
 Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg

 The preference file line is:

 \converter plantuml svg /Users/rainerkrug/bin/plantuml $$i -ofile
 $$o -tsvg 

 The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
 *not* the .jar file but the following:

 ### BEGIN FILE ##
 #!/bin/sh
 # PlantUML Launcher
 #
 # This script is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
 #
 # This script distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY
 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
 # License for more details.
 # You should have received a copy of the GNU General Public
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 02110-1301,
 # USA.
 #
 # Copyright (C) 2010 Ilya Paramonov ivparamo...@gmail.com

 if [ -n ${JAVA_HOME} ]  [ -x ${JAVA_HOME}/bin/java ] ; then
 JAVA=${JAVA_HOME}/bin/java
 elif [ -x /usr/bin/java ] ; then
 JAVA=/usr/bin/java
 else
 echo Cannot find JVM
 exit 1
 fi

 $JAVA -jar ~/jar/plantuml.jar -graphvizdot /usr/local/bin/dot ${@}
 ### END FILE ##

 It is from https://gist.github.com/eelcocramer/4502562 and it simply
 makes
 calling plantuml much easier.

 Make sure tht this ~/bin/plantuml is executable!

 Now, in LyX, you simply have to add a .plantuml file as a picture, and
 you should be able to edit it via right-mouse-click and it should be
 converted into all the needed formats.

 Now This worked for me under Mac (I am using it right now) and Linux
 (used it before). There might be differences under Windows, but I
 would suggest to ask on the mailing list if you don't get it to work,
 so that therte is a reference to this.


 Hope this helps,

 Rainer



 
  -- Raj Ph:+17737706099

 - --
 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
 Biology, UCT), Dipl. Phys. (Germany)

 Centre of Excellence for Invasion Biology
 Stellenbosch University
 South Africa

 Tel :   +33 - (0)9 53 10 27 44
 Cell:   +33 - (0)6 85 62 59 98
 Fax :   +33 - (0)9 58 10 27 44

 Fax (D):+49 - 

Re: How to configure plantuml with lyx

2014-01-17 Thread rajender saini
Thank you very much Rainer for immediate response. I will follow these
steps and come back if I have any issue.


On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug rai...@krugs.de wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 On 01/16/14, 06:14 , rajender saini wrote:
  I got your reference from the gmail lyx posting. Can you help me
  with the steps include plant uml file into lyx file and
  automatically get it converted into image when we include it into
  the lyx master file ?

 Sure.

 I will CC it to the LyX list to have it there for reference.

 I assume you have downloaded plantuml.

 1) Define a new File Format, named plantuml:

 Vector graphics format: I ticked it - what are actually the
 implications of this field?
 Short name: plantuml
 Extension:  plantuml
 So all files with the extension .plantuml will be considered as
 plantuml source code files files!

 Editor: I choose Emacs, but set any text editor you want.

 In the preferences files, this corresponds to the following line in
 the formats section:

 \format plantuml plantuml plantuml   open -n -a Emacs
 - --args --name LyX --title LyX --no-desktop vector

 Now we have to define the converters, i.e. how to convert the plantuml
 file into a format usable by the converter chain in LyX. This now
 depends on you installed converters, but I got the best results when
 using svg as the *only* output format of plantuml, and then use the
 standard converter tools of LyX to convert these into the required
 formats.

 The conversion of svg (a vector format) to eps, PDF and PNG
 is done by rsvg, which is detected and configured automatically by
 LyX. If you don't have it installed, install it and re-configure :LyX
 and it should be detected.

 Coming back to plantuml: The converter to be defined converts the
 .plantuml to a graphics format .svg (vector):

 - From format: plantuml
 To format:  SVG
 Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg

 The preference file line is:

 \converter plantuml svg /Users/rainerkrug/bin/plantuml $$i -ofile
 $$o -tsvg 

 The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
 *not* the .jar file but the following:

 ### BEGIN FILE ##
 #!/bin/sh
 # PlantUML Launcher
 #
 # This script is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
 #
 # This script distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY
 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
 # License for more details.
 # You should have received a copy of the GNU General Public
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 02110-1301,
 # USA.
 #
 # Copyright (C) 2010 Ilya Paramonov ivparamo...@gmail.com

 if [ -n ${JAVA_HOME} ]  [ -x ${JAVA_HOME}/bin/java ] ; then
 JAVA=${JAVA_HOME}/bin/java
 elif [ -x /usr/bin/java ] ; then
 JAVA=/usr/bin/java
 else
 echo Cannot find JVM
 exit 1
 fi

 $JAVA -jar ~/jar/plantuml.jar -graphvizdot /usr/local/bin/dot ${@}
 ### END FILE ##

 It is from https://gist.github.com/eelcocramer/4502562 and it simply makes
 calling plantuml much easier.

 Make sure tht this ~/bin/plantuml is executable!

 Now, in LyX, you simply have to add a .plantuml file as a picture, and
 you should be able to edit it via right-mouse-click and it should be
 converted into all the needed formats.

 Now This worked for me under Mac (I am using it right now) and Linux
 (used it before). There might be differences under Windows, but I
 would suggest to ask on the mailing list if you don't get it to work,
 so that therte is a reference to this.


 Hope this helps,

 Rainer



 
  -- Raj Ph:+17737706099

 - --
 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
 Biology, UCT), Dipl. Phys. (Germany)

 Centre of Excellence for Invasion Biology
 Stellenbosch University
 South Africa

 Tel :   +33 - (0)9 53 10 27 44
 Cell:   +33 - (0)6 85 62 59 98
 Fax :   +33 - (0)9 58 10 27 44

 Fax (D):+49 - (0)3 21 21 25 22 44

 email:  rai...@krugs.de

 Skype:  RMkrug
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

 iQEcBAEBAgAGBQJS152qAAoJENvXNx4PUvmCfaYH/2CBavtVCI5a37KO3sqdoR7g
 JgntyBmQCIGZ5i9lwLpj/e/P95THCoPTpFo8nv09JM89KMWVgU3CdoJI0cUzelPH
 /47ZdhPQYEEYSiA8H+Zsp9AgE4ess0gsB/CWE9HVDnAXZIwWhOHC4Mwys8umeUOO
 AEqK1IvBtXH2b5PMDSLJt/7DEL/kdFst/59YaAQl3lmKQnwbGUz/vgkXhbULILm2
 bq6PfUSlNHc+kggvAUolotSXzsBsvhrb+dU51jUG8c8DIM7WVHhAvBDJhoZVVNdZ
 JSVIDVbyPab8GFNDfeJhhJ+xf6GRnZZb5/fION7zoEbNLtzMbXZcqODeUGceVI0=
 =HBXj
 -END PGP SIGNATURE-




-- 
Raj

Re: How to configure plantuml with lyx

2014-01-17 Thread Rainer M Krug
On 17 January 2014 09:01, rajender saini rajendersa...@gmail.com wrote:

 Thanks Rainer, I am able to generate diagram into lyx master file using
 the steps shared by you. Thank you very much.



 My master file include the .plantuml file as graphic as suggested by you
 and it is working fine.


I assume you mean that you can see the .plantuml file as a picture in LyX?
Good to hear. So the .plantuml - .svg - .png is working.


 I wanted to export whole file as PDF so


pdflatex? That is what I use.



 Next I used inkscape to convert SVG to PDF by adding convertor.

 when i run export as PDF image is not included into the master PDF doc.


The conversion should be done by LyX. AS I said, I use rsvg, and it works
as expected.




  I can see the SVG to PDF conversion happening into the temp cache
 directory. but somehow it is not included into master file any pointer will
 help.


Hm - no idea here - if the conversion to a .svg - .pdf I have no idea why
it is not included. Just make a small example .lyx file and post it here
together with the .plantuml file so that I can try it out if it works here.

Cheers,

Rainer





 Regards,
 Rajender Saini


 On Thu, Jan 16, 2014 at 11:56 AM, rajender saini 
 rajendersa...@gmail.comwrote:

 Thank you very much Rainer for immediate response. I will follow these
 steps and come back if I have any issue.


 On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug rai...@krugs.de wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 On 01/16/14, 06:14 , rajender saini wrote:
  I got your reference from the gmail lyx posting. Can you help me
  with the steps include plant uml file into lyx file and
  automatically get it converted into image when we include it into
  the lyx master file ?

 Sure.

 I will CC it to the LyX list to have it there for reference.

 I assume you have downloaded plantuml.

 1) Define a new File Format, named plantuml:

 Vector graphics format: I ticked it - what are actually the
 implications of this field?
 Short name: plantuml
 Extension:  plantuml
 So all files with the extension .plantuml will be considered as
 plantuml source code files files!

 Editor: I choose Emacs, but set any text editor you want.

 In the preferences files, this corresponds to the following line in
 the formats section:

 \format plantuml plantuml plantuml   open -n -a Emacs
 - --args --name LyX --title LyX --no-desktop vector

 Now we have to define the converters, i.e. how to convert the plantuml
 file into a format usable by the converter chain in LyX. This now
 depends on you installed converters, but I got the best results when
 using svg as the *only* output format of plantuml, and then use the
 standard converter tools of LyX to convert these into the required
 formats.

 The conversion of svg (a vector format) to eps, PDF and PNG
 is done by rsvg, which is detected and configured automatically by
 LyX. If you don't have it installed, install it and re-configure :LyX
 and it should be detected.

 Coming back to plantuml: The converter to be defined converts the
 .plantuml to a graphics format .svg (vector):

 - From format: plantuml
 To format:  SVG
 Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg

 The preference file line is:

 \converter plantuml svg /Users/rainerkrug/bin/plantuml $$i -ofile
 $$o -tsvg 

 The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
 *not* the .jar file but the following:

 ### BEGIN FILE ##
 #!/bin/sh
 # PlantUML Launcher
 #
 # This script is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
 #
 # This script distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY
 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
 # License for more details.
 # You should have received a copy of the GNU General Public
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 02110-1301,
 # USA.
 #
 # Copyright (C) 2010 Ilya Paramonov ivparamo...@gmail.com

 if [ -n ${JAVA_HOME} ]  [ -x ${JAVA_HOME}/bin/java ] ; then
 JAVA=${JAVA_HOME}/bin/java
 elif [ -x /usr/bin/java ] ; then
 JAVA=/usr/bin/java
 else
 echo Cannot find JVM
 exit 1
 fi

 $JAVA -jar ~/jar/plantuml.jar -graphvizdot /usr/local/bin/dot ${@}
 ### END FILE ##

 It is from https://gist.github.com/eelcocramer/4502562 and it simply
 makes
 calling plantuml much easier.

 Make sure tht this ~/bin/plantuml is executable!

 Now, in LyX, you simply have to add a .plantuml file as a picture, and
 you should be able to edit it via right-mouse-click and it should be
 converted into all the needed formats.

 Now This worked for me under Mac (I am 

Re: How to configure plantuml with lyx

2014-01-17 Thread rajender saini
Thanks Rainer, I am able to generate diagram into lyx master file using the
steps shared by you. Thank you very much.



My master file include the .plantuml file as graphic as suggested by you
and it is working fine.

I wanted to export whole file as PDF so

Next I used inkscape to convert SVG to PDF by adding convertor.

when i run export as PDF image is not included into the master PDF doc.


 I can see the SVG to PDF conversion happening into the temp cache
directory. but somehow it is not included into master file any pointer will
help.


Regards,
Rajender Saini


On Thu, Jan 16, 2014 at 11:56 AM, rajender saini rajendersa...@gmail.comwrote:

 Thank you very much Rainer for immediate response. I will follow these
 steps and come back if I have any issue.


 On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug rai...@krugs.de wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 On 01/16/14, 06:14 , rajender saini wrote:
  I got your reference from the gmail lyx posting. Can you help me
  with the steps include plant uml file into lyx file and
  automatically get it converted into image when we include it into
  the lyx master file ?

 Sure.

 I will CC it to the LyX list to have it there for reference.

 I assume you have downloaded plantuml.

 1) Define a new File Format, named plantuml:

 Vector graphics format: I ticked it - what are actually the
 implications of this field?
 Short name: plantuml
 Extension:  plantuml
 So all files with the extension .plantuml will be considered as
 plantuml source code files files!

 Editor: I choose Emacs, but set any text editor you want.

 In the preferences files, this corresponds to the following line in
 the formats section:

 \format plantuml plantuml plantuml   open -n -a Emacs
 - --args --name LyX --title LyX --no-desktop vector

 Now we have to define the converters, i.e. how to convert the plantuml
 file into a format usable by the converter chain in LyX. This now
 depends on you installed converters, but I got the best results when
 using svg as the *only* output format of plantuml, and then use the
 standard converter tools of LyX to convert these into the required
 formats.

 The conversion of svg (a vector format) to eps, PDF and PNG
 is done by rsvg, which is detected and configured automatically by
 LyX. If you don't have it installed, install it and re-configure :LyX
 and it should be detected.

 Coming back to plantuml: The converter to be defined converts the
 .plantuml to a graphics format .svg (vector):

 - From format: plantuml
 To format:  SVG
 Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg

 The preference file line is:

 \converter plantuml svg /Users/rainerkrug/bin/plantuml $$i -ofile
 $$o -tsvg 

 The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
 *not* the .jar file but the following:

 ### BEGIN FILE ##
 #!/bin/sh
 # PlantUML Launcher
 #
 # This script is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
 #
 # This script distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY
 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
 # License for more details.
 # You should have received a copy of the GNU General Public
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 02110-1301,
 # USA.
 #
 # Copyright (C) 2010 Ilya Paramonov ivparamo...@gmail.com

 if [ -n ${JAVA_HOME} ]  [ -x ${JAVA_HOME}/bin/java ] ; then
 JAVA=${JAVA_HOME}/bin/java
 elif [ -x /usr/bin/java ] ; then
 JAVA=/usr/bin/java
 else
 echo Cannot find JVM
 exit 1
 fi

 $JAVA -jar ~/jar/plantuml.jar -graphvizdot /usr/local/bin/dot ${@}
 ### END FILE ##

 It is from https://gist.github.com/eelcocramer/4502562 and it simply
 makes
 calling plantuml much easier.

 Make sure tht this ~/bin/plantuml is executable!

 Now, in LyX, you simply have to add a .plantuml file as a picture, and
 you should be able to edit it via right-mouse-click and it should be
 converted into all the needed formats.

 Now This worked for me under Mac (I am using it right now) and Linux
 (used it before). There might be differences under Windows, but I
 would suggest to ask on the mailing list if you don't get it to work,
 so that therte is a reference to this.


 Hope this helps,

 Rainer



 
  -- Raj Ph:+17737706099

 - --
 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
 Biology, UCT), Dipl. Phys. (Germany)

 Centre of Excellence for Invasion Biology
 Stellenbosch University
 South Africa

 Tel :   +33 - (0)9 53 10 27 44
 Cell:   +33 - (0)6 85 62 59 98
 Fax :   +33 - (0)9 58 10 27 44

 Fax (D):+49 - 

Re: How to configure plantuml with lyx

2014-01-17 Thread rajender saini
Thank you very much Rainer for immediate response. I will follow these
steps and come back if I have any issue.


On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug rai...@krugs.de wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 On 01/16/14, 06:14 , rajender saini wrote:
  I got your reference from the gmail lyx posting. Can you help me
  with the steps include plant uml file into lyx file and
  automatically get it converted into image when we include it into
  the lyx master file ?

 Sure.

 I will CC it to the LyX list to have it there for reference.

 I assume you have downloaded plantuml.

 1) Define a new File Format, named plantuml:

 Vector graphics format: I ticked it - what are actually the
 implications of this field?
 Short name: plantuml
 Extension:  plantuml
 So all files with the extension .plantuml will be considered as
 plantuml source code files files!

 Editor: I choose Emacs, but set any text editor you want.

 In the preferences files, this corresponds to the following line in
 the formats section:

 \format plantuml plantuml plantuml   open -n -a Emacs
 - --args --name LyX --title LyX --no-desktop vector

 Now we have to define the converters, i.e. how to convert the plantuml
 file into a format usable by the converter chain in LyX. This now
 depends on you installed converters, but I got the best results when
 using svg as the *only* output format of plantuml, and then use the
 standard converter tools of LyX to convert these into the required
 formats.

 The conversion of svg (a vector format) to eps, PDF and PNG
 is done by rsvg, which is detected and configured automatically by
 LyX. If you don't have it installed, install it and re-configure :LyX
 and it should be detected.

 Coming back to plantuml: The converter to be defined converts the
 .plantuml to a graphics format .svg (vector):

 - From format: plantuml
 To format:  SVG
 Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg

 The preference file line is:

 \converter plantuml svg /Users/rainerkrug/bin/plantuml $$i -ofile
 $$o -tsvg 

 The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
 *not* the .jar file but the following:

 ### BEGIN FILE ##
 #!/bin/sh
 # PlantUML Launcher
 #
 # This script is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
 #
 # This script distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY
 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
 # License for more details.
 # You should have received a copy of the GNU General Public
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 02110-1301,
 # USA.
 #
 # Copyright (C) 2010 Ilya Paramonov ivparamo...@gmail.com

 if [ -n ${JAVA_HOME} ]  [ -x ${JAVA_HOME}/bin/java ] ; then
 JAVA=${JAVA_HOME}/bin/java
 elif [ -x /usr/bin/java ] ; then
 JAVA=/usr/bin/java
 else
 echo Cannot find JVM
 exit 1
 fi

 $JAVA -jar ~/jar/plantuml.jar -graphvizdot /usr/local/bin/dot ${@}
 ### END FILE ##

 It is from https://gist.github.com/eelcocramer/4502562 and it simply makes
 calling plantuml much easier.

 Make sure tht this ~/bin/plantuml is executable!

 Now, in LyX, you simply have to add a .plantuml file as a picture, and
 you should be able to edit it via right-mouse-click and it should be
 converted into all the needed formats.

 Now This worked for me under Mac (I am using it right now) and Linux
 (used it before). There might be differences under Windows, but I
 would suggest to ask on the mailing list if you don't get it to work,
 so that therte is a reference to this.


 Hope this helps,

 Rainer



 
  -- Raj Ph:+17737706099

 - --
 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
 Biology, UCT), Dipl. Phys. (Germany)

 Centre of Excellence for Invasion Biology
 Stellenbosch University
 South Africa

 Tel :   +33 - (0)9 53 10 27 44
 Cell:   +33 - (0)6 85 62 59 98
 Fax :   +33 - (0)9 58 10 27 44

 Fax (D):+49 - (0)3 21 21 25 22 44

 email:  rai...@krugs.de

 Skype:  RMkrug
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

 iQEcBAEBAgAGBQJS152qAAoJENvXNx4PUvmCfaYH/2CBavtVCI5a37KO3sqdoR7g
 JgntyBmQCIGZ5i9lwLpj/e/P95THCoPTpFo8nv09JM89KMWVgU3CdoJI0cUzelPH
 /47ZdhPQYEEYSiA8H+Zsp9AgE4ess0gsB/CWE9HVDnAXZIwWhOHC4Mwys8umeUOO
 AEqK1IvBtXH2b5PMDSLJt/7DEL/kdFst/59YaAQl3lmKQnwbGUz/vgkXhbULILm2
 bq6PfUSlNHc+kggvAUolotSXzsBsvhrb+dU51jUG8c8DIM7WVHhAvBDJhoZVVNdZ
 JSVIDVbyPab8GFNDfeJhhJ+xf6GRnZZb5/fION7zoEbNLtzMbXZcqODeUGceVI0=
 =HBXj
 -END PGP SIGNATURE-




-- 
Raj

Re: How to configure plantuml with lyx

2014-01-17 Thread Rainer M Krug
On 17 January 2014 09:01, rajender saini rajendersa...@gmail.com wrote:

 Thanks Rainer, I am able to generate diagram into lyx master file using
 the steps shared by you. Thank you very much.



 My master file include the .plantuml file as graphic as suggested by you
 and it is working fine.


I assume you mean that you can see the .plantuml file as a picture in LyX?
Good to hear. So the .plantuml - .svg - .png is working.


 I wanted to export whole file as PDF so


pdflatex? That is what I use.



 Next I used inkscape to convert SVG to PDF by adding convertor.

 when i run export as PDF image is not included into the master PDF doc.


The conversion should be done by LyX. AS I said, I use rsvg, and it works
as expected.




  I can see the SVG to PDF conversion happening into the temp cache
 directory. but somehow it is not included into master file any pointer will
 help.


Hm - no idea here - if the conversion to a .svg - .pdf I have no idea why
it is not included. Just make a small example .lyx file and post it here
together with the .plantuml file so that I can try it out if it works here.

Cheers,

Rainer





 Regards,
 Rajender Saini


 On Thu, Jan 16, 2014 at 11:56 AM, rajender saini 
 rajendersa...@gmail.comwrote:

 Thank you very much Rainer for immediate response. I will follow these
 steps and come back if I have any issue.


 On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug rai...@krugs.de wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 On 01/16/14, 06:14 , rajender saini wrote:
  I got your reference from the gmail lyx posting. Can you help me
  with the steps include plant uml file into lyx file and
  automatically get it converted into image when we include it into
  the lyx master file ?

 Sure.

 I will CC it to the LyX list to have it there for reference.

 I assume you have downloaded plantuml.

 1) Define a new File Format, named plantuml:

 Vector graphics format: I ticked it - what are actually the
 implications of this field?
 Short name: plantuml
 Extension:  plantuml
 So all files with the extension .plantuml will be considered as
 plantuml source code files files!

 Editor: I choose Emacs, but set any text editor you want.

 In the preferences files, this corresponds to the following line in
 the formats section:

 \format plantuml plantuml plantuml   open -n -a Emacs
 - --args --name LyX --title LyX --no-desktop vector

 Now we have to define the converters, i.e. how to convert the plantuml
 file into a format usable by the converter chain in LyX. This now
 depends on you installed converters, but I got the best results when
 using svg as the *only* output format of plantuml, and then use the
 standard converter tools of LyX to convert these into the required
 formats.

 The conversion of svg (a vector format) to eps, PDF and PNG
 is done by rsvg, which is detected and configured automatically by
 LyX. If you don't have it installed, install it and re-configure :LyX
 and it should be detected.

 Coming back to plantuml: The converter to be defined converts the
 .plantuml to a graphics format .svg (vector):

 - From format: plantuml
 To format:  SVG
 Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg

 The preference file line is:

 \converter plantuml svg /Users/rainerkrug/bin/plantuml $$i -ofile
 $$o -tsvg 

 The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
 *not* the .jar file but the following:

 ### BEGIN FILE ##
 #!/bin/sh
 # PlantUML Launcher
 #
 # This script is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
 #
 # This script distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY
 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
 # License for more details.
 # You should have received a copy of the GNU General Public
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 02110-1301,
 # USA.
 #
 # Copyright (C) 2010 Ilya Paramonov ivparamo...@gmail.com

 if [ -n ${JAVA_HOME} ]  [ -x ${JAVA_HOME}/bin/java ] ; then
 JAVA=${JAVA_HOME}/bin/java
 elif [ -x /usr/bin/java ] ; then
 JAVA=/usr/bin/java
 else
 echo Cannot find JVM
 exit 1
 fi

 $JAVA -jar ~/jar/plantuml.jar -graphvizdot /usr/local/bin/dot ${@}
 ### END FILE ##

 It is from https://gist.github.com/eelcocramer/4502562 and it simply
 makes
 calling plantuml much easier.

 Make sure tht this ~/bin/plantuml is executable!

 Now, in LyX, you simply have to add a .plantuml file as a picture, and
 you should be able to edit it via right-mouse-click and it should be
 converted into all the needed formats.

 Now This worked for me under Mac (I am 

Re: How to configure plantuml with lyx

2014-01-17 Thread rajender saini
Thanks Rainer, I am able to generate diagram into lyx master file using the
steps shared by you. Thank you very much.



My master file include the .plantuml file as graphic as suggested by you
and it is working fine.

I wanted to export whole file as PDF so

Next I used inkscape to convert SVG to PDF by adding convertor.

when i run export as PDF image is not included into the master PDF doc.


 I can see the SVG to PDF conversion happening into the temp cache
directory. but somehow it is not included into master file any pointer will
help.


Regards,
Rajender Saini


On Thu, Jan 16, 2014 at 11:56 AM, rajender saini wrote:

> Thank you very much Rainer for immediate response. I will follow these
> steps and come back if I have any issue.
>
>
> On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug  wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>>
>> On 01/16/14, 06:14 , rajender saini wrote:
>> > I got your reference from the gmail lyx posting. Can you help me
>> > with the steps include plant uml file into lyx file and
>> > automatically get it converted into image when we include it into
>> > the lyx master file ?
>>
>> Sure.
>>
>> I will CC it to the LyX list to have it there for reference.
>>
>> I assume you have downloaded plantuml.
>>
>> 1) Define a new File Format, named "plantuml":
>>
>> Vector graphics format: I ticked it - what are actually the
>> implications of this field?
>> Short name: "plantuml"
>> Extension:  "plantuml"
>> So all files with the extension .plantuml will be considered as
>> plantuml source code files files!
>>
>> Editor: I choose Emacs, but set any text editor you want.
>>
>> In the preferences files, this corresponds to the following line in
>> the formats section:
>>
>> \format "plantuml" "plantuml" "plantuml" "" "" "open -n -a Emacs
>> - --args --name LyX --title LyX --no-desktop" "vector"
>>
>> Now we have to define the converters, i.e. how to convert the plantuml
>> file into a format usable by the converter chain in LyX. This now
>> depends on you installed converters, but I got the best results when
>> using svg as the *only* output format of plantuml, and then use the
>> standard converter tools of LyX to convert these into the required
>> formats.
>>
>> The conversion of svg (a vector format) to eps, PDF and PNG
>> is done by rsvg, which is detected and configured automatically by
>> LyX. If you don't have it installed, install it and re-configure :LyX
>> and it should be detected.
>>
>> Coming back to plantuml: The converter to be defined converts the
>> .plantuml to a graphics format .svg (vector):
>>
>> - From format: "plantuml"
>> To format:  "SVG
>> Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg
>>
>> The preference file line is:
>>
>> \converter "plantuml" "svg" "/Users/rainerkrug/bin/plantuml $$i -ofile
>> $$o -tsvg" ""
>>
>> The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
>> *not* the .jar file but the following:
>>
>> ### BEGIN FILE ##
>> #!/bin/sh
>> # PlantUML Launcher
>> #
>> # This script is free software; you can redistribute it and/or modify it
>> # under the terms of the GNU General Public License as published by
>> # the Free Software Foundation, either version 3 of the License, or
>> # (at your option) any later version.
>> #
>> # This script distributed in the hope that it will be useful, but
>> # WITHOUT ANY WARRANTY; without even the implied warranty of
>> MERCHANTABILITY
>> # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
>> # License for more details.
>> # You should have received a copy of the GNU General Public
>> # License along with this library; if not, write to the Free Software
>> # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
>> 02110-1301,
>> # USA.
>> #
>> # Copyright (C) 2010 Ilya Paramonov 
>>
>> if [ -n "${JAVA_HOME}" ] && [ -x "${JAVA_HOME}/bin/java" ] ; then
>> JAVA="${JAVA_HOME}/bin/java"
>> elif [ -x /usr/bin/java ] ; then
>> JAVA=/usr/bin/java
>> else
>> echo Cannot find JVM
>> exit 1
>> fi
>>
>> $JAVA -jar ~/jar/plantuml.jar -graphvizdot "/usr/local/bin/dot" ${@}
>> ### END FILE ##
>>
>> It is from https://gist.github.com/eelcocramer/4502562 and it simply
>> makes
>> calling plantuml much easier.
>>
>> Make sure tht this ~/bin/plantuml is executable!
>>
>> Now, in LyX, you simply have to add a .plantuml file as a picture, and
>> you should be able to edit it via right-mouse-click and it should be
>> converted into all the needed formats.
>>
>> Now This worked for me under Mac (I am using it right now) and Linux
>> (used it before). There might be differences under Windows, but I
>> would suggest to ask on the mailing list if you don't get it to work,
>> so that therte is a reference to this.
>>
>>
>> Hope this helps,
>>
>> Rainer
>>
>>
>>
>> >
>> > -- Raj Ph:+17737706099
>>
>> - --
>> Rainer M. Krug, 

Re: How to configure plantuml with lyx

2014-01-17 Thread rajender saini
Thank you very much Rainer for immediate response. I will follow these
steps and come back if I have any issue.


On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> On 01/16/14, 06:14 , rajender saini wrote:
> > I got your reference from the gmail lyx posting. Can you help me
> > with the steps include plant uml file into lyx file and
> > automatically get it converted into image when we include it into
> > the lyx master file ?
>
> Sure.
>
> I will CC it to the LyX list to have it there for reference.
>
> I assume you have downloaded plantuml.
>
> 1) Define a new File Format, named "plantuml":
>
> Vector graphics format: I ticked it - what are actually the
> implications of this field?
> Short name: "plantuml"
> Extension:  "plantuml"
> So all files with the extension .plantuml will be considered as
> plantuml source code files files!
>
> Editor: I choose Emacs, but set any text editor you want.
>
> In the preferences files, this corresponds to the following line in
> the formats section:
>
> \format "plantuml" "plantuml" "plantuml" "" "" "open -n -a Emacs
> - --args --name LyX --title LyX --no-desktop" "vector"
>
> Now we have to define the converters, i.e. how to convert the plantuml
> file into a format usable by the converter chain in LyX. This now
> depends on you installed converters, but I got the best results when
> using svg as the *only* output format of plantuml, and then use the
> standard converter tools of LyX to convert these into the required
> formats.
>
> The conversion of svg (a vector format) to eps, PDF and PNG
> is done by rsvg, which is detected and configured automatically by
> LyX. If you don't have it installed, install it and re-configure :LyX
> and it should be detected.
>
> Coming back to plantuml: The converter to be defined converts the
> .plantuml to a graphics format .svg (vector):
>
> - From format: "plantuml"
> To format:  "SVG
> Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg
>
> The preference file line is:
>
> \converter "plantuml" "svg" "/Users/rainerkrug/bin/plantuml $$i -ofile
> $$o -tsvg" ""
>
> The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
> *not* the .jar file but the following:
>
> ### BEGIN FILE ##
> #!/bin/sh
> # PlantUML Launcher
> #
> # This script is free software; you can redistribute it and/or modify it
> # under the terms of the GNU General Public License as published by
> # the Free Software Foundation, either version 3 of the License, or
> # (at your option) any later version.
> #
> # This script distributed in the hope that it will be useful, but
> # WITHOUT ANY WARRANTY; without even the implied warranty of
> MERCHANTABILITY
> # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
> # License for more details.
> # You should have received a copy of the GNU General Public
> # License along with this library; if not, write to the Free Software
> # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
> 02110-1301,
> # USA.
> #
> # Copyright (C) 2010 Ilya Paramonov 
>
> if [ -n "${JAVA_HOME}" ] && [ -x "${JAVA_HOME}/bin/java" ] ; then
> JAVA="${JAVA_HOME}/bin/java"
> elif [ -x /usr/bin/java ] ; then
> JAVA=/usr/bin/java
> else
> echo Cannot find JVM
> exit 1
> fi
>
> $JAVA -jar ~/jar/plantuml.jar -graphvizdot "/usr/local/bin/dot" ${@}
> ### END FILE ##
>
> It is from https://gist.github.com/eelcocramer/4502562 and it simply makes
> calling plantuml much easier.
>
> Make sure tht this ~/bin/plantuml is executable!
>
> Now, in LyX, you simply have to add a .plantuml file as a picture, and
> you should be able to edit it via right-mouse-click and it should be
> converted into all the needed formats.
>
> Now This worked for me under Mac (I am using it right now) and Linux
> (used it before). There might be differences under Windows, but I
> would suggest to ask on the mailing list if you don't get it to work,
> so that therte is a reference to this.
>
>
> Hope this helps,
>
> Rainer
>
>
>
> >
> > -- Raj Ph:+17737706099
>
> - --
> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
> Biology, UCT), Dipl. Phys. (Germany)
>
> Centre of Excellence for Invasion Biology
> Stellenbosch University
> South Africa
>
> Tel :   +33 - (0)9 53 10 27 44
> Cell:   +33 - (0)6 85 62 59 98
> Fax :   +33 - (0)9 58 10 27 44
>
> Fax (D):+49 - (0)3 21 21 25 22 44
>
> email:  rai...@krugs.de
>
> Skype:  RMkrug
> -BEGIN PGP SIGNATURE-
> Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQEcBAEBAgAGBQJS152qAAoJENvXNx4PUvmCfaYH/2CBavtVCI5a37KO3sqdoR7g
> JgntyBmQCIGZ5i9lwLpj/e/P95THCoPTpFo8nv09JM89KMWVgU3CdoJI0cUzelPH
> /47ZdhPQYEEYSiA8H+Zsp9AgE4ess0gsB/CWE9HVDnAXZIwWhOHC4Mwys8umeUOO
> 

Re: How to configure plantuml with lyx

2014-01-17 Thread Rainer M Krug
On 17 January 2014 09:01, rajender saini  wrote:

> Thanks Rainer, I am able to generate diagram into lyx master file using
> the steps shared by you. Thank you very much.
>
>
>
> My master file include the .plantuml file as graphic as suggested by you
> and it is working fine.
>
>
I assume you mean that you can see the .plantuml file as a picture in LyX?
Good to hear. So the .plantuml -> .svg -> .png is working.


> I wanted to export whole file as PDF so
>

pdflatex? That is what I use.


>
> Next I used inkscape to convert SVG to PDF by adding convertor.
>
> when i run export as PDF image is not included into the master PDF doc.
>

The conversion should be done by LyX. AS I said, I use rsvg, and it works
as expected.


>
>
>  I can see the SVG to PDF conversion happening into the temp cache
> directory. but somehow it is not included into master file any pointer will
> help.
>

Hm - no idea here - if the conversion to a .svg -> .pdf I have no idea why
it is not included. Just make a small example .lyx file and post it here
together with the .plantuml file so that I can try it out if it works here.

Cheers,

Rainer



>
>
> Regards,
> Rajender Saini
>
>
> On Thu, Jan 16, 2014 at 11:56 AM, rajender saini 
> wrote:
>
>> Thank you very much Rainer for immediate response. I will follow these
>> steps and come back if I have any issue.
>>
>>
>> On Thu, Jan 16, 2014 at 12:51 AM, Rainer M Krug  wrote:
>>
>>> -BEGIN PGP SIGNED MESSAGE-
>>> Hash: SHA1
>>>
>>>
>>> On 01/16/14, 06:14 , rajender saini wrote:
>>> > I got your reference from the gmail lyx posting. Can you help me
>>> > with the steps include plant uml file into lyx file and
>>> > automatically get it converted into image when we include it into
>>> > the lyx master file ?
>>>
>>> Sure.
>>>
>>> I will CC it to the LyX list to have it there for reference.
>>>
>>> I assume you have downloaded plantuml.
>>>
>>> 1) Define a new File Format, named "plantuml":
>>>
>>> Vector graphics format: I ticked it - what are actually the
>>> implications of this field?
>>> Short name: "plantuml"
>>> Extension:  "plantuml"
>>> So all files with the extension .plantuml will be considered as
>>> plantuml source code files files!
>>>
>>> Editor: I choose Emacs, but set any text editor you want.
>>>
>>> In the preferences files, this corresponds to the following line in
>>> the formats section:
>>>
>>> \format "plantuml" "plantuml" "plantuml" "" "" "open -n -a Emacs
>>> - --args --name LyX --title LyX --no-desktop" "vector"
>>>
>>> Now we have to define the converters, i.e. how to convert the plantuml
>>> file into a format usable by the converter chain in LyX. This now
>>> depends on you installed converters, but I got the best results when
>>> using svg as the *only* output format of plantuml, and then use the
>>> standard converter tools of LyX to convert these into the required
>>> formats.
>>>
>>> The conversion of svg (a vector format) to eps, PDF and PNG
>>> is done by rsvg, which is detected and configured automatically by
>>> LyX. If you don't have it installed, install it and re-configure :LyX
>>> and it should be detected.
>>>
>>> Coming back to plantuml: The converter to be defined converts the
>>> .plantuml to a graphics format .svg (vector):
>>>
>>> - From format: "plantuml"
>>> To format:  "SVG
>>> Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg
>>>
>>> The preference file line is:
>>>
>>> \converter "plantuml" "svg" "/Users/rainerkrug/bin/plantuml $$i -ofile
>>> $$o -tsvg" ""
>>>
>>> The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
>>> *not* the .jar file but the following:
>>>
>>> ### BEGIN FILE ##
>>> #!/bin/sh
>>> # PlantUML Launcher
>>> #
>>> # This script is free software; you can redistribute it and/or modify it
>>> # under the terms of the GNU General Public License as published by
>>> # the Free Software Foundation, either version 3 of the License, or
>>> # (at your option) any later version.
>>> #
>>> # This script distributed in the hope that it will be useful, but
>>> # WITHOUT ANY WARRANTY; without even the implied warranty of
>>> MERCHANTABILITY
>>> # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
>>> # License for more details.
>>> # You should have received a copy of the GNU General Public
>>> # License along with this library; if not, write to the Free Software
>>> # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
>>> 02110-1301,
>>> # USA.
>>> #
>>> # Copyright (C) 2010 Ilya Paramonov 
>>>
>>> if [ -n "${JAVA_HOME}" ] && [ -x "${JAVA_HOME}/bin/java" ] ; then
>>> JAVA="${JAVA_HOME}/bin/java"
>>> elif [ -x /usr/bin/java ] ; then
>>> JAVA=/usr/bin/java
>>> else
>>> echo Cannot find JVM
>>> exit 1
>>> fi
>>>
>>> $JAVA -jar ~/jar/plantuml.jar -graphvizdot "/usr/local/bin/dot" ${@}
>>> ### END FILE ##
>>>

How to configure plantuml with lyx

2014-01-16 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 01/16/14, 06:14 , rajender saini wrote:
 I got your reference from the gmail lyx posting. Can you help me
 with the steps include plant uml file into lyx file and
 automatically get it converted into image when we include it into
 the lyx master file ?

Sure.

I will CC it to the LyX list to have it there for reference.

I assume you have downloaded plantuml.

1) Define a new File Format, named plantuml:

Vector graphics format: I ticked it - what are actually the
implications of this field?
Short name: plantuml
Extension:  plantuml
So all files with the extension .plantuml will be considered as
plantuml source code files files!

Editor: I choose Emacs, but set any text editor you want.

In the preferences files, this corresponds to the following line in
the formats section:

\format plantuml plantuml plantuml   open -n -a Emacs
- --args --name LyX --title LyX --no-desktop vector

Now we have to define the converters, i.e. how to convert the plantuml
file into a format usable by the converter chain in LyX. This now
depends on you installed converters, but I got the best results when
using svg as the *only* output format of plantuml, and then use the
standard converter tools of LyX to convert these into the required
formats.

The conversion of svg (a vector format) to eps, PDF and PNG
is done by rsvg, which is detected and configured automatically by
LyX. If you don't have it installed, install it and re-configure :LyX
and it should be detected.

Coming back to plantuml: The converter to be defined converts the
.plantuml to a graphics format .svg (vector):

- From format: plantuml
To format:  SVG
Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg

The preference file line is:

\converter plantuml svg /Users/rainerkrug/bin/plantuml $$i -ofile
$$o -tsvg 

The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
*not* the .jar file but the following:

### BEGIN FILE ##
#!/bin/sh
# PlantUML Launcher
#
# This script is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This script distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
# You should have received a copy of the GNU General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301,
# USA.
#
# Copyright (C) 2010 Ilya Paramonov ivparamo...@gmail.com

if [ -n ${JAVA_HOME} ]  [ -x ${JAVA_HOME}/bin/java ] ; then
JAVA=${JAVA_HOME}/bin/java
elif [ -x /usr/bin/java ] ; then
JAVA=/usr/bin/java
else
echo Cannot find JVM
exit 1
fi

$JAVA -jar ~/jar/plantuml.jar -graphvizdot /usr/local/bin/dot ${@}
### END FILE ##

It is from https://gist.github.com/eelcocramer/4502562 and it simply makes
calling plantuml much easier.

Make sure tht this ~/bin/plantuml is executable!

Now, in LyX, you simply have to add a .plantuml file as a picture, and
you should be able to edit it via right-mouse-click and it should be
converted into all the needed formats.

Now This worked for me under Mac (I am using it right now) and Linux
(used it before). There might be differences under Windows, but I
would suggest to ask on the mailing list if you don't get it to work,
so that therte is a reference to this.


Hope this helps,

Rainer



 
 -- Raj Ph:+17737706099

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJS152qAAoJENvXNx4PUvmCfaYH/2CBavtVCI5a37KO3sqdoR7g
JgntyBmQCIGZ5i9lwLpj/e/P95THCoPTpFo8nv09JM89KMWVgU3CdoJI0cUzelPH
/47ZdhPQYEEYSiA8H+Zsp9AgE4ess0gsB/CWE9HVDnAXZIwWhOHC4Mwys8umeUOO
AEqK1IvBtXH2b5PMDSLJt/7DEL/kdFst/59YaAQl3lmKQnwbGUz/vgkXhbULILm2
bq6PfUSlNHc+kggvAUolotSXzsBsvhrb+dU51jUG8c8DIM7WVHhAvBDJhoZVVNdZ
JSVIDVbyPab8GFNDfeJhhJ+xf6GRnZZb5/fION7zoEbNLtzMbXZcqODeUGceVI0=
=HBXj
-END PGP SIGNATURE-


How to configure plantuml with lyx

2014-01-16 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 01/16/14, 06:14 , rajender saini wrote:
 I got your reference from the gmail lyx posting. Can you help me
 with the steps include plant uml file into lyx file and
 automatically get it converted into image when we include it into
 the lyx master file ?

Sure.

I will CC it to the LyX list to have it there for reference.

I assume you have downloaded plantuml.

1) Define a new File Format, named plantuml:

Vector graphics format: I ticked it - what are actually the
implications of this field?
Short name: plantuml
Extension:  plantuml
So all files with the extension .plantuml will be considered as
plantuml source code files files!

Editor: I choose Emacs, but set any text editor you want.

In the preferences files, this corresponds to the following line in
the formats section:

\format plantuml plantuml plantuml   open -n -a Emacs
- --args --name LyX --title LyX --no-desktop vector

Now we have to define the converters, i.e. how to convert the plantuml
file into a format usable by the converter chain in LyX. This now
depends on you installed converters, but I got the best results when
using svg as the *only* output format of plantuml, and then use the
standard converter tools of LyX to convert these into the required
formats.

The conversion of svg (a vector format) to eps, PDF and PNG
is done by rsvg, which is detected and configured automatically by
LyX. If you don't have it installed, install it and re-configure :LyX
and it should be detected.

Coming back to plantuml: The converter to be defined converts the
.plantuml to a graphics format .svg (vector):

- From format: plantuml
To format:  SVG
Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg

The preference file line is:

\converter plantuml svg /Users/rainerkrug/bin/plantuml $$i -ofile
$$o -tsvg 

The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
*not* the .jar file but the following:

### BEGIN FILE ##
#!/bin/sh
# PlantUML Launcher
#
# This script is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This script distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
# You should have received a copy of the GNU General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301,
# USA.
#
# Copyright (C) 2010 Ilya Paramonov ivparamo...@gmail.com

if [ -n ${JAVA_HOME} ]  [ -x ${JAVA_HOME}/bin/java ] ; then
JAVA=${JAVA_HOME}/bin/java
elif [ -x /usr/bin/java ] ; then
JAVA=/usr/bin/java
else
echo Cannot find JVM
exit 1
fi

$JAVA -jar ~/jar/plantuml.jar -graphvizdot /usr/local/bin/dot ${@}
### END FILE ##

It is from https://gist.github.com/eelcocramer/4502562 and it simply makes
calling plantuml much easier.

Make sure tht this ~/bin/plantuml is executable!

Now, in LyX, you simply have to add a .plantuml file as a picture, and
you should be able to edit it via right-mouse-click and it should be
converted into all the needed formats.

Now This worked for me under Mac (I am using it right now) and Linux
(used it before). There might be differences under Windows, but I
would suggest to ask on the mailing list if you don't get it to work,
so that therte is a reference to this.


Hope this helps,

Rainer



 
 -- Raj Ph:+17737706099

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJS152qAAoJENvXNx4PUvmCfaYH/2CBavtVCI5a37KO3sqdoR7g
JgntyBmQCIGZ5i9lwLpj/e/P95THCoPTpFo8nv09JM89KMWVgU3CdoJI0cUzelPH
/47ZdhPQYEEYSiA8H+Zsp9AgE4ess0gsB/CWE9HVDnAXZIwWhOHC4Mwys8umeUOO
AEqK1IvBtXH2b5PMDSLJt/7DEL/kdFst/59YaAQl3lmKQnwbGUz/vgkXhbULILm2
bq6PfUSlNHc+kggvAUolotSXzsBsvhrb+dU51jUG8c8DIM7WVHhAvBDJhoZVVNdZ
JSVIDVbyPab8GFNDfeJhhJ+xf6GRnZZb5/fION7zoEbNLtzMbXZcqODeUGceVI0=
=HBXj
-END PGP SIGNATURE-


How to configure plantuml with lyx

2014-01-16 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 01/16/14, 06:14 , rajender saini wrote:
> I got your reference from the gmail lyx posting. Can you help me
> with the steps include plant uml file into lyx file and
> automatically get it converted into image when we include it into
> the lyx master file ?

Sure.

I will CC it to the LyX list to have it there for reference.

I assume you have downloaded plantuml.

1) Define a new File Format, named "plantuml":

Vector graphics format: I ticked it - what are actually the
implications of this field?
Short name: "plantuml"
Extension:  "plantuml"
So all files with the extension .plantuml will be considered as
plantuml source code files files!

Editor: I choose Emacs, but set any text editor you want.

In the preferences files, this corresponds to the following line in
the formats section:

\format "plantuml" "plantuml" "plantuml" "" "" "open -n -a Emacs
- --args --name LyX --title LyX --no-desktop" "vector"

Now we have to define the converters, i.e. how to convert the plantuml
file into a format usable by the converter chain in LyX. This now
depends on you installed converters, but I got the best results when
using svg as the *only* output format of plantuml, and then use the
standard converter tools of LyX to convert these into the required
formats.

The conversion of svg (a vector format) to eps, PDF and PNG
is done by rsvg, which is detected and configured automatically by
LyX. If you don't have it installed, install it and re-configure :LyX
and it should be detected.

Coming back to plantuml: The converter to be defined converts the
.plantuml to a graphics format .svg (vector):

- From format: "plantuml"
To format:  "SVG
Converter: /Users/rainerkrug/bin/plantuml $$i -ofile $$o -tsvg

The preference file line is:

\converter "plantuml" "svg" "/Users/rainerkrug/bin/plantuml $$i -ofile
$$o -tsvg" ""

The last step: What is the file /Users/rainerkrug/bin/plantuml? It is
*not* the .jar file but the following:

### BEGIN FILE ##
#!/bin/sh
# PlantUML Launcher
#
# This script is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This script distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
# You should have received a copy of the GNU General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301,
# USA.
#
# Copyright (C) 2010 Ilya Paramonov 

if [ -n "${JAVA_HOME}" ] && [ -x "${JAVA_HOME}/bin/java" ] ; then
JAVA="${JAVA_HOME}/bin/java"
elif [ -x /usr/bin/java ] ; then
JAVA=/usr/bin/java
else
echo Cannot find JVM
exit 1
fi

$JAVA -jar ~/jar/plantuml.jar -graphvizdot "/usr/local/bin/dot" ${@}
### END FILE ##

It is from https://gist.github.com/eelcocramer/4502562 and it simply makes
calling plantuml much easier.

Make sure tht this ~/bin/plantuml is executable!

Now, in LyX, you simply have to add a .plantuml file as a picture, and
you should be able to edit it via right-mouse-click and it should be
converted into all the needed formats.

Now This worked for me under Mac (I am using it right now) and Linux
(used it before). There might be differences under Windows, but I
would suggest to ask on the mailing list if you don't get it to work,
so that therte is a reference to this.


Hope this helps,

Rainer



> 
> -- Raj Ph:+17737706099

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJS152qAAoJENvXNx4PUvmCfaYH/2CBavtVCI5a37KO3sqdoR7g
JgntyBmQCIGZ5i9lwLpj/e/P95THCoPTpFo8nv09JM89KMWVgU3CdoJI0cUzelPH
/47ZdhPQYEEYSiA8H+Zsp9AgE4ess0gsB/CWE9HVDnAXZIwWhOHC4Mwys8umeUOO
AEqK1IvBtXH2b5PMDSLJt/7DEL/kdFst/59YaAQl3lmKQnwbGUz/vgkXhbULILm2
bq6PfUSlNHc+kggvAUolotSXzsBsvhrb+dU51jUG8c8DIM7WVHhAvBDJhoZVVNdZ
JSVIDVbyPab8GFNDfeJhhJ+xf6GRnZZb5/fION7zoEbNLtzMbXZcqODeUGceVI0=
=HBXj
-END PGP SIGNATURE-