improved category typesetting