Template colorization: p1/inf