Fix toc

Revert partially e5b0211 to restore the latexpdf build.