I want to remove the red color around the table of contents. How do I do that? Below there is a picture of my table of contents and my preamble:

enter image description here

\usepackage[labelfont={bf, it}]{caption}
\captionsetup{font=footnotesize, textfont=it}
\usepackage[a4paper, total={6in, 9in}]{geometry}
  • 2
    The outline comes from the hyperref package. If you want no hyperrefs to have boxes around them change \usepackage{hyperref} to \usepackage[hidelinks]{hyperref}. – TivV Mar 23 at 11:16
  • 1
    Duplicate of tex.stackexchange.com/q/823/172164 ? – TivV Mar 23 at 11:23

You need to add an option on the package hyperref. Use this command:


Instead of:

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.