Questions tagged [metauml]

MetaUML is a MetaPost library for typesetting Unified Modeling Language (UML) diagrams, using a human-friendly textual notation.

Filter by
Sorted by
Tagged with
0 votes
1 answer
117 views

How do I use LaTeX commands inside the body of mpost? (metauml + gmp)

I am on Overleaf, using gmp + metauml to create a UML class diagram, in which I wish to use LaTeX commands to better format the text. I tried my best to read the manuals for both packages and scour ...
user avatar
0 votes
0 answers
39 views

MetaUML Adds Extra Vertical Spaces

MetaUML seems to add extra vertical space to the class members. As you can see only the fourth and fifth elements are aligned properly. The image was generated by pdflatex using the following code: \...
user avatar
0 votes
1 answer
53 views

Centering UML diagrams in MetaUML

I'm using LuaTex to draw some UML diagrams in MetaUML. The diagrams appear left align in the page. How do I center them? I tried \centering before the mplibcode environment and also tried enclosing ...
user avatar
0 votes
0 answers
29 views

MetaUML: update to master branch version

I've got installed MetaPost (and MetaUML) automatically with my Tex editor but now I want to update it with the version available on Github in the master branch. Didn't find anything relevant on ...
user avatar
1 vote
3 answers
217 views

How do I change the font of a graphic in latex?

I started working on a simple UML diagram for a final Java project. I started by reading a lot on the metauml github repository and this example in particular. As you can see by the attached image, ...
user avatar
  • 15
0 votes
0 answers
40 views

How to set stereotype on class parameter or method in MetaPOST

I want to be able to set event stereotype on a method, inside a class. I've read through the documentation, but found nothing on this subject. As shown below, the <<<event>>> part ...
user avatar
0 votes
0 answers
137 views

Create Component does not work! MetaUml: Using MetaPost in LuaLaTeX

I am trying to create a component diagram using MetaUml embedded in TeX using LuaLaTeX. Every example form the manual I tried, worked well except from components. \documentclass{article} \usepackage{...
user avatar
  • 111
1 vote
1 answer
377 views

tikz class diagram recursive relation

i need to draw a classdiagram with recursive rectangled pointers. My intention was to draw two rectangles and rotate one as read in a other post... but how do i position them right? MWP \...
user avatar
  • 1,009
0 votes
1 answer
154 views

not able to redo the tikz-uml usecase manual sample

in tikzumlmanual.pdf i found on page 34 a sample of a usecasesystem that i wold like to test. But i can't redo it. the MWS is: \documentclass[12pt]{article} \usepackage{geometry} % see geometry.pdf ...
user avatar
  • 1,009
1 vote
1 answer
54 views

include metauml diagrams in different sizes

I have made some UML diagrams using metauml. They fit perfectly into a report, but I would also like to include them in a beamer presentation. Unfortunately, they are too wide to fit a slide. I use \...
user avatar
  • 336
0 votes
1 answer
101 views

How to change colors in state machine diagram?

I've managed to change colors of classes in classes diagrams using iClass.foreColor := (0.75, 1, 1); but apparently iState.forecolor := (0.75, 1, 1); doesn't work. I can't find anything in the ...
user avatar
  • 336
0 votes
1 answer
50 views

Symbolic visibility markers in MetaUML

My question is very similar to this:Omitting visibility marker in MetaUML Is there any way to leave +, - and # symbols as they are, without drawing locks?
user avatar
  • 65
2 votes
1 answer
129 views

No output using MetaUML and emp

I tried using MetaUML to create UML diagrams for my LaTeX file, but for some reason, I do not get an output. Still, TEXnicCenter 2.02 (64bit) compiles without error. I already tried a previous ...
user avatar
  • 21
1 vote
0 answers
155 views

Minipage inside MetaUML Activity Diagram

I want to use Minipage environment inside MetaUML Activity Diagrams. The following MWE will not compile (tried mpost and mptopdf). When using the next line instead of the minipage-line, compiling is ...
user avatar
  • 11
1 vote
1 answer
661 views

metaUML class diagram: set some methods as abstract in an abstract class

I usually found the answer of my questions in StackExchange or over Internet. But this time I can't. I look for a lot yesterday and I didn't find a solution. Recently I started to use LaTex, and I'm ...
user avatar
3 votes
1 answer
319 views

Generate .1 files from MetaUML .mp files automatically with latexmk

I'm currently creating a personal LaTeX package and base .tex document that I can use to typeset my Computer Science reports at my university. One of the features I would like to have is to make UML ...
user avatar
3 votes
1 answer
234 views

Increase image resolution using MetaUML and metapost

I'm using MetaUML to create text-driven UML diagrams. When I generate a figure, with: $ mpost example.mp $ convert ps:example.1 png:example.png a very low-resolution image is generated. If I scale ...
user avatar
2 votes
1 answer
255 views

Linebreaks in MetaUML

I'm trying to draw an UML diagram with MetaUML for my LaTeX document. Unfortunatly I'm a little bit dissatisfied with the layout because functions with a long signature (i.e. many parameters) become ...
user avatar
  • 217
1 vote
1 answer
280 views

Omitting visibility marker in MetaUML

Is there a way to omit the visibility (lock symbol) marker in MetaUML Class objects? If I just refrain to use one I get a protected marker as a default. A short example (note: the LaTeX builder has ...
user avatar
  • 217
3 votes
1 answer
358 views

Drawing custom shape with MetaUML

How to draw image like this: I use MetaUML package for drawing Uml. Can it be used to draw this image? I want to keep my image styles uniform and don't want to use other drawing package just for one ...
user avatar
  • 83
6 votes
2 answers
370 views

Beamer & MetaUML - can't see any diagram

On compilation, I just see Why isn't the class visible? Here is the code: \documentclass{beamer} \usepackage[shellescape,latex]{gmp} \usetheme{Montpellier} \title{Something} \date{\today} \begin{...
user avatar
  • 167
1 vote
0 answers
303 views

Compilation error when using MetaUML on Windows [closed]

When I try to compile a MetaUML program on Windows, I get the following error: Font ptmr8r not usable: TFM file not found I Googled this error, and I found that I have to install texlive-fonts-...
user avatar
3 votes
1 answer
156 views

MetaUML with LyX?

How to install MetaUML for LyX? How to use it? Is there a site where I can find resources about this subject? And if not, is there an equivalent tool for this not Dia?
user avatar
3 votes
2 answers
783 views

How to change the font for metauml?

I am using the emp package in order to use metauml for drawing UML-models. So far so good. this is a minimal example: \documentclass{scrartcl} \usepackage{emp} \ifx\pdftexversion\undefined \...
user avatar
  • 33
4 votes
1 answer
374 views

Non-intersecting lines on class diagram

\documentclass{article} \usepackage[shellescape]{gmp} \begin{document} \begin{mpost}[use,mpsettings={input metauml;}] Class.A("A")()(); Class.B("B")()(); Class.C("C")()(); Class.D("D")()(); B.n = A....
user avatar
  • 7,643
5 votes
1 answer
602 views

metauml: Realization link doesn't work

\documentclass{article} \usepackage[shellescape]{gmp} \begin{document} \begin{figure} \begin{mpost}[use] input metauml; Interface.A("Interface") (); A.info.iAttributeStack.top := 0; A.info....
user avatar
  • 7,643
3 votes
1 answer
1k views

metauml installation and usage error

This question is a bit broad but I am trying to install metauml (I am using Mac and texlive). I downloaded the package and ran the install script which put a metauml directory under the metapost ...
user avatar
  • 1,175
4 votes
3 answers
537 views

Underline in metauml

\documentclass{article} \usepackage[shellescape]{gmp} \begin{document} \begin{figure} \begin{mpost}[use] input metauml; Class.A("A") ("-instance: A") ("-A()", "+instance(): A"); ...
user avatar
  • 7,643
6 votes
1 answer
443 views

How can I use german umlauts in MetaUML

I have the following files: metaumlfile.mp: input metauml; beginfig(1); Class.Benutzer("Benutzer") () ("+üben(): void"); drawObjects(Benutzer); endfig; end latexfile....
user avatar
  • 17.2k
2 votes
1 answer
771 views

Generate Entity-Relationship Diagram then generate SQL from that

Using a LaTeX or similar text-macro tool/library, how can I generate an Entity-Relationship Diagram then generate SQL from it?
user avatar
  • 3,801
1 vote
1 answer
4k views

Generating UML Entity-Relationship Diagrams in LaTeX

Would you recommend LaTeX for this kind of UML diagramming? http://yuml.me/ is great for quickly drawing Use Case and Class diagrams. Please recommend a library of some sort for LaTeX, or ...
user avatar
  • 3,801
3 votes
1 answer
2k views

MetaUML: via emp package for LaTeX gives no output

The following example prints only the figure's caption: \documentclass[a4paper,11pt]{article} \usepackage{emp} \ifx\pdftexversion\undefined \usepackage[dvips]{graphicx} \else \usepackage[pdftex]{...
user avatar