format the toggle output in PDF figures