I wanted to get rid if the red boxes in TOC that we obtain when exporting org to pdf. The red boxes looks absolutely ugly and spoil the appearance of the entire document.

ugly red boxes around toc links

  • That might be how your pdf viewer app indicates links. Try opening the same pdf with a different pdf app Dec 28, 2016 at 13:13
  • @ChakravarthyRaghunandan Nops. Found a solution, added it as answer.
    – xandfury
    Dec 28, 2016 at 13:23

1 Answer 1


Following the links given here, you can get rid of the ugly red boxes by adding the following line in the beginning of your org file:

#+latex_header: \hypersetup{colorlinks=true}


If red isn't your color, then add the following line:

#+latex_header: \hypersetup{colorlinks=true,linkcolor=blue} for a blue color.

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