A simple TOC generator for built-in page navigation