LatexView is a custom JavaFX component that renders LaTeX text and formulas using JLatexMath library.
Use Demo application to test LaTeX rendering and syntax support.
See JLatexMath documentation for supported LaTeX features.
<dependency>
<groupId>io.github.egormkn</groupId>
<artifactId>latexview</artifactId>
<version>0.6.1</version>
</dependency>
implementation 'io.github.egormkn:latexview:0.6.1'
Installation details for other build systems can be found on Central Repository page.
See ExampleFXML.java
<LatexView formula="\\LaTeX" size="30"/>
<LatexView size="20">
\overset{\text{Lorenz system}}{
\begin{cases}
\frac { \partial \vec v }{\partial t} + \left( \vec v \nabla \right) \vec v = -\frac {\nabla p}{\rho} + \nu \nabla ^2 \vec v + \vec g \\
\frac { \partial \rho }{\partial t} + \nabla \cdot \left( \rho \vec v \right) = 0 \\
\frac { \partial T }{\partial t} + \nabla \cdot \left( T \vec v \right) = \chi \nabla ^2 T \\
\rho = \rho_0 \left( 1 - \gamma \left( T - T_0 \right) \right)
\end{cases}
}
</LatexView>
See ExampleJFX.java
LatexView latex = new LatexView("\\LaTeX");
latex.setSize(30);
VBox vbox = new VBox(latex);
Scene scene = new Scene(vbox, 640, 480);
This project is released under the GPLv3 license. For more details, take a look at the LICENSE file.