define toc-depth and use ctable for older pandoc