https://github.com/nickmcintyre/processing-latex
Beautiful typesetting with Processing
https://github.com/nickmcintyre/processing-latex
latex math processing
Last synced: 4 months ago
JSON representation
Beautiful typesetting with Processing
- Host: GitHub
- URL: https://github.com/nickmcintyre/processing-latex
- Owner: nickmcintyre
- License: gpl-3.0
- Created: 2020-10-29T00:36:54.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-04-27T20:20:52.000Z (about 4 years ago)
- Last Synced: 2025-06-08T06:40:52.834Z (about 1 year ago)
- Topics: latex, math, processing
- Language: CSS
- Homepage:
- Size: 9.13 MB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# processing-latex
**Beautiful typesetting with Processing.**
- Thin wrapper around [JLaTeXMath](https://github.com/opencollab/jlatexmath).
- Works in Python mode.
- Still early days. Things will break.
## Example
The following example converts a LaTeX string to a `PShape` object, then displays it.
```java
import latex.*;
void setup() {
size(640, 360);
shapeMode(CENTER);
PShape formula = PTeX.toPShape("\\nabla \\rho = 0");
shape(formula, width * 0.5, height * 0.5);
}
```