adding auto-generation of lookup-table in toc:generate()