Please provide support for Latex Equations, for example:

@startuml

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

@enduml

Login

+1 vote

Best answer

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 feedback is 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 (114)
- Bug (716)
- Wanted features (729)
- Closed question / help (86)
- Closed bug (49)
- Closed feature request (121)
- Won't fix (0)
- Won't implement (9)
- Can't help (9)
- To be deleted (8)
- To be sorted (416)

...

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