## Translation support

To help you in the translation process, here is a comparison with the English version :

Ascii Math syntax for complex formulas

You can integrate mathematical expressions using AsciiMath format. Useful for demonstration or algorithm details.

# = 简介 =

@startuml
:$int_0^1f(x)dx$;
:$x^2+y_1+z_12^34$;
note right
Try also
$d/dxf(x)=lim_(h->0)(f(x+h)-f(x))/h$
<latex>P(y|\mathbf{x}) \mbox{ or } f(\mathbf{x})+\epsilon</latex>
end note
@enduml


@startuml Bob -> Alice : Can you solve: $ax^2+bx+c=0$ Alice --> Bob: $x = (-b+-sqrt(b^2-4ac))/(2a)$ @enduml 

# Maths

You can use AsciiMath or JLaTeXMath notation within PlantUML:

@startuml
:$int_0^1f(x)dx$;
:$x^2+y_1+z_12^34$;
note right
Try also
$d/dxf(x)=lim_(h->0)(f(x+h)-f(x))/h$
<latex>P(y|\mathbf{x}) \mbox{ or } f(\mathbf{x})+\epsilon</latex>
end note
@enduml


or:

@startuml Bob -> Alice : Can you solve: $ax^2+bx+c=0$ Alice --> Bob: $x = (-b+-sqrt(b^2-4ac))/(2a)$ @enduml 

## 独立图

@startmath
f(t)=(a_0)/2 + sum_(n=1)^ooa_ncos((npit)/L)+sum_(n=1)^oo b_n\ sin((npit)/L)
@endmath


@startlatex \sum_{i=0}^{n-1} (a_i + b_i^2) @endlatex 

## Standalone diagram

You can also use @startmath/@endmath to create standalone AsciiMath formula.

@startmath
f(t)=(a_0)/2 + sum_(n=1)^ooa_ncos((npit)/L)+sum_(n=1)^oo b_n\ sin((npit)/L)
@endmath


Or use @startlatex/@endlatex to create standalone JLaTeXMath formula.

@startlatex \sum_{i=0}^{n-1} (a_i + b_i^2) @endlatex 

## 这是如何工作的 ?

• AsciiMath 转换 AsciiMath 符号为 LaTeX 表达式。
• JLatexMath 来显示LaTex 数学公式。 JLaTeXMath 是最好的显示LaTeX代码的 Java 类库。

ASCIIMathTeXImg.js 是一个小到足以集成到 PlantUML 标准发版的。

## How is this working ?

To draw those formulas, PlantUML uses two OpenSource projects:

• AsciiMath that converts AsciiMath notation to LaTeX expression.
• JLatexMath that displays mathematical formulas written in LaTeX. JLaTeXMath is the best Java library to display LaTeX code.

ASCIIMathTeXImg.js is small enough to be integrated into PlantUML standard distribution.

Since JLatexMath is bigger, you have to download it separately, then unzip the 4 jar files (batik-all-1.7.jar, jlatexmath-minimal-1.0.3.jar, jlm_cyrillic.jar and jlm_greek.jar) in the same folder as PlantUML.jar.