PlantUMLで数式を書く
以下、公式より転載
SVGだとrenderingされないことに注意
https://plantuml-proxy.vercel.app/png/https://scrapbox.io/api/code/villagepump/PlantUMLで数式を書く/asciimath.pu#.png
code:asciimath.pu
@startuml
:<math>int_0^1f(x)dx</math>;
:<math>x^2+y_1+z_12^34</math>;
note right
Try also
<math>d/dxf(x)=lim_(h->0)(f(x+h)-f(x))/h</math>
<math>P(y|bb"x") or f(bb"x")+epsilon</math>
end note
@enduml
LaTeX記法
https://plantuml-proxy.vercel.app/png/https://scrapbox.io/api/code/villagepump/PlantUMLで数式を書く/latex.pu#.png
code:latex.pu
@startuml
:<latex>\int_0^1f(x)dx</latex>;
:<latex>x^2+y_1+z_{12}^{34}</latex>;
note right
Try also
<latex>\dfrac{d}{dx}f(x)=\lim\limits_{h \to 0}\dfrac{f(x+h)-f(x)}{h}</latex>
<latex>P(y|\mathbf{x}) \mbox{ or } f(\mathbf{x})+\epsilon</latex>
end note
@enduml