Custom printer for formulas.