Skip to content

nickmcintyre/processing-latex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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