bugfix for .tex file in ./, toc generation