Is the latex equation supported? rather than ascii math?

@startuml

$\sum_{i=0}^{n-1} (a_i + b_i^2)$;

@enduml

Login

+1 vote

It was not.

But not very difficult to add.

So in last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

You can have:

@startuml

:<math>int_0^1f(x)dx</math>;

:<latex>\sum_{i=0}^{n-1} (a_i + b_i^2)</latex>;

@enduml

Note that you have to install JLatexMath as explain at http://plantuml.com/ascii-math

This has not been very tested, so feeback welcome!

With last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

You can have:

@startuml

left to right direction

skinparam dpi 192

skinparam componentStyle uml2

[<back:gray><latex>P(y|\mathbf{x}) \mbox{ or } f(\mathbf{x})+\epsilon</latex></back>] as fx

[<color:blue><latex>\mathcal{D}</latex></color>] as D

[<latex>\mathcal{H}</latex>] as H

[<latex>\mathcal{g}</latex>] as g

[<latex>P(\mathbf{x})</latex>] as Px

(<latex>\mathcal{A}</latex>) as A

Px --> D

fx --> D

D --> A

H --> A

A --> g

g .-> fx: <latex>\mbox{Loss}(f,g)</latex>

@enduml

- All categories
- Question / help (16)
- Bug (636)
- Wanted features (716)
- Closed question / help (89)
- Closed bug (39)
- Closed feature request (66)
- Won't fix (0)
- Won't implement (8)
- Can't help (9)
- To be deleted (7)
- To be sorted (425)

...

1. When setting larger dpi, for example: skinparam dpi 200, the equation in png is ambiguous

2. The background color of equation can't be set independently.

#+BEGIN_SRC plantuml :file ../image/machine_learning_theory_frame.png

left to right direction

skinparam dpi 200

skinparam componentStyle uml2

[<latex>P(y|\mathbf{x}) \mbox{ or } f(\mathbf{x})+\epsilon</latex>] as fx

[<latex>\mathcal{D}</latex>] as D

[<latex>\mathcal{H}</latex>] as H

[<latex>\mathcal{g}</latex>] as g

[<latex>P(\mathbf{x})</latex>] as Px

(<latex>\mathcal{A}</latex>) as A

Px --> D

fx --> D

D --> A

H --> A

A --> g

g .-> fx: <latex>\mbox{Loss}(f,g)</latex>

#+END_SRC