Generalize the function typesetReductions