I am making a table of content for my appendices, but when I use fontenc
a strange series of letters appears in the compiled pdf file.
my code:
\documentclass[10pt,a4paper,dvipsnames]{article}
\usepackage[T1]{fontenc}
\usepackage{etoc}
\begin{document}
\appendix
\etocdepthtag.toc{mtappendix}
\etocsettagdepth{mtchapter}{none}
\etocsettagdepth{mtappendix}{subsection}
\tableofcontents
\clearpage
\section{The first section}
\section{The second section}
\section{The third section}
\end{document}
Under the table of contents is a strange text appearing, as visible in the image below:
But this is not visible when I deactivate the fontenc
package:
This is part of my thesis for which I really need the fontenc
package. I believe that I cannot choose a different font without it. Is anybody able to help me out so I can use fontenc
without the funny letters in my table of contents?
U+200E
characters after\tableofcontents
. Remove the entire line and retype it. You can check with w3c.github.io/xml-entities/unicode-names.html