welcome: please sign in
location: Diff for "Computer/Latex/Tikzexternalize_Hyperref"
Differences between revisions 4 and 9 (spanning 5 versions)
Revision 4 as of 2018-11-24 20:15:25
Size: 1084
Editor: leif
Comment:
Revision 9 as of 2018-12-10 17:30:45
Size: 954
Editor: leif
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
   \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.
\tikzifexternalizing{%
   \newcommand{\hypersetup}[1]{}
}{%
   \usepackage{hyperref}
}
\hypersetup{
   colorlinks, % These are of course only example options.
   bookmarksnumbered,
   linkcolor={blue!60!black},
   citecolor={blue!60!black},
   urlcolor={blue!60!black}
}
Line 34: Line 21:
% \hypersetup{draft} % Remove the comment character for printing.
 
Line 35: Line 24:

=== Tikz Externalize and Lualatex ===
In order to use tikzexternalize in lualatex another package is also necessary:

{{{ \usepackage{shellesc} }}}

Other packages also require `{shellesc}` with lualatex, and therefore it may seem that it is not necessary sometimes. It is always necessary.

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{%
   \newcommand{\hypersetup}[1]{}
}{%
   \usepackage{hyperref}  
}
\hypersetup{
   colorlinks,           % These are of course only example options.
   bookmarksnumbered,
   linkcolor={blue!60!black},
   citecolor={blue!60!black}, 
   urlcolor={blue!60!black}
}

% \hypersetup{draft}    % Remove the comment character for printing. 

Tikz Externalize and Lualatex

In order to use tikzexternalize in lualatex another package is also necessary:

  \usepackage{shellesc} 

Other packages also require {shellesc} with lualatex, and therefore it may seem that it is not necessary sometimes. It is always necessary.

Computer/Latex/Tikzexternalize_Hyperref (last edited 2022-06-01 14:34:14 by leif)