new format for captions, and fix for pdf TOC generated by LuaTeX