Output table of contents with %toc