Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 489 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 489 Bytes

processing-latex

Beautiful typesetting with Processing.

  • Thin wrapper around 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.

import latex.*;

void setup() {
  size(640, 360);
  shapeMode(CENTER);

  PShape formula = PTeX.toPShape("\\nabla \\rho = 0");
  shape(formula, width * 0.5, height * 0.5);
}