https://github.com/egormkn/latexview
🔢 JavaFX component that renders LaTeX text and math formulas
https://github.com/egormkn/latexview
formula fxml java javafx javafx-component javafx-components jlatexmath latex
Last synced: 8 months ago
JSON representation
🔢 JavaFX component that renders LaTeX text and math formulas
- Host: GitHub
- URL: https://github.com/egormkn/latexview
- Owner: egormkn
- License: gpl-3.0
- Created: 2019-01-22T22:26:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-24T17:52:38.000Z (over 6 years ago)
- Last Synced: 2025-02-01T08:01:45.678Z (8 months ago)
- Topics: formula, fxml, java, javafx, javafx-component, javafx-components, jlatexmath, latex
- Language: Java
- Homepage:
- Size: 87.9 KB
- Stars: 9
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LatexView
[](https://travis-ci.com/egormkn/latexview) [](https://search.maven.org/artifact/io.github.egormkn/latexview/) [](https://oss.sonatype.org/content/repositories/releases/io/github/egormkn/latexview/) 
LatexView is a custom JavaFX component that renders LaTeX text and formulas using [JLatexMath](https://github.com/opencollab/jlatexmath) library.

Use [Demo](src/test/demo/Demo.java) application to test LaTeX rendering and syntax support.
See [JLatexMath](https://github.com/opencollab/jlatexmath) documentation for supported LaTeX features.
## Installation
### Maven dependency
```xml
io.github.egormkn
latexview
0.6.1```
### Gradle dependency
```gradle
implementation 'io.github.egormkn:latexview:0.6.1'
```### Other build systems
Installation details for other build systems can be found on [Central Repository](https://search.maven.org/artifact/io.github.egormkn/latexview/) page.
## Usage
### With FXML
See [ExampleFXML.java](src/test/java/ExampleFXML.java)
```fxml
\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}
}```
### Without FXML
See [ExampleJFX.java](src/test/java/ExampleJFX.java)
```java
LatexView latex = new LatexView("\\LaTeX");
latex.setSize(30);VBox vbox = new VBox(latex);
Scene scene = new Scene(vbox, 640, 480);
```## License
This project is released under the GPLv3 license.
For more details, take a look at the [LICENSE](LICENSE) file.