Rework conditional for printing out pub sections.