Skip to content

How to configure lyx to include plant uml diagrams

January 22, 2014

Lyx is awesome tool to set up framework to creating professional document. But it is bit hard to get started. Recently I wanted to include plantuml sequence diagrams into the mater lyx document. Plantuml allows us  to create nice diagram just by using text commands.

Below are steps to include these text file into the lyx tool and it will automatically show these as diagram while loading the document. User need to configure new document type and corresponding converter to generate graphic on the fly.

1) configure the file format.

2014-01-22 14_31_10-LyX_ Preferences

2) Add the corresponding converter.

2014-01-22 14_34_14-LyX_ Preferences

Please note that plantuml.bat is batch file  which is copied as below.

c:\progra~1\Java\jdk1.7.0_45\bin\java.exe -jar <path to >plantuml.jar %*

Once these are correctly setup. User can include the file using include graphic lyx menu.

That’s all you need to include plantuml file into lyx doc.

 

Update: Recently I wanted to export the PLANTUML diagram in the pdf file. Following steps worked fine for me.

1) Add plantuml file format as above

2) Configure a converter as above

plantuml – > eps

This should work and you should have plantuml diagram into your pdf file.

 

 

From → Tech

2 Comments
  1. Julien Fernandez permalink

    Hi there,

    Thanks for the tip. I have an issue so.

    From here : http://i.imgur.com/3qvAvJe.png

    I get this : http://i.imgur.com/ELPfhJh.png

    Anyway to solve this ?

    • Can you explain step by step what are you doing which conversion are you using ? It appears your generated image is out of bound. try reducing the size in the graphic settings.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: