# Pro LaTeX + AsciiMath

GitPitch Pro + Lite subscriptions activate LaTeX + AsciiMath.

#### Working with Latex + AsciiMath

GitPitch UML diagram support provides some excellent extensions for rendering math formulas on any slide. The same conventions, caching policies, and markdown shortcut syntax apply. This support is provided as an light weight alternative to using MathJax Formulas.

If you follow the UML diagram conventions you can then use the following markdown shortcut syntax to render a math formula on any slide:


@uml[style...](path/to/formula.puml)



The CSS style… list can make use of the built-in span styles giving you control over the rendering width and height of your math formula.

#### Learn By Example - LaTeX Math

This PlantUML sequence diagram syntax:

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


Used within the following PITCHME.md markdown snippet:

---?color=#E58537;

@snap[west span-55]
@code[uml rawcode zoom-11](src/uml/latexmath.puml)
@snapend

@snap[east span-50]
@uml[span-100 bg-white](src/uml/latexmath.puml)
@snapend


Results in the rendering of the following slide:

Click on the above image to view this slide within a live GitPitch presentation.

For further details about Latex Math Diagrams syntax see the following PlantUML Guide.

#### Learn By Example - Ascii Math

This PlantUML activity diagram syntax:

@startuml
:$int_0^1f(x)dx$;
:$x^2+y_1+z_12^34$;
@enduml


Used within the following PITCHME.md markdown snippet:

---?color=#E58537;

@snap[west span-55]
@code[uml rawcode zoom-11](src/uml/asciimath.puml)
@snapend

@snap[east span-50]
@uml[span-100 bg-white](src/uml/asciimath.puml)
@snapend


Results in the rendering of the following slide:

Click on the above image to view this slide within a live GitPitch presentation.

For further details about Ascii Math Diagrams syntax see the following PlantUML Guide.