Fix various typesetting bugs in quadrature