welcome: please sign in

Revision 4 as of 2018-11-24 20:15:25

Clear message
location: Computer / Latex / Tikzexternalize_Hyperref

Tikz Externalize and Hyperref

Tikz Externalize does not work well with Hyperref without some extra measures. In order to get around the problem, include the following lines in your preamble

   \tikzifexternalizing{%
      \renewcommand{\hypersetup[1]}{}
   }{%
      \usepackage{hyperref}  
   }
   \hypersetup{
      colorlinks,           % These are of course only example options.
      bookmarksnumbered,
      linkcolor={blue!50!black},
      citecolor={blue!50!black},   \tikzifexternalizing{%
      \renewcommand{\hypersetup[1]}{}
   }{%
      \usepackage{hyperref}  
   }
   \hypersetup{
      colorlinks,           % These are of course only example options.
      bookmarksnumbered,
      linkcolor={black},
      citecolor={black},
      urlcolor={blue!90!black}
    }
    % \hypersetup{draft}    % Remove the comment character for printing. 
      urlcolor={blue!50!black}
    }
    % \hypersetup{draft}    % Remove the comment character for printing.