/processing-latex

Beautiful typesetting with Processing

Primary LanguageCSSGNU General Public License v3.0GPL-3.0

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);
}