adding bar toc layout, generifying the way highlighting/toc/eval are handled