Show TOC only when needed.