summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/pgf/testsuite/external/tikzexternaltest.sharedpreamble.tex
blob: d2577b01b13304fd434cec6f4304ab40a3fc150a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}

\usepackage{tikz}
\usepackage{hyperref}

\IfFileExists{pgfplots.sty}{%
    \usepackage{pgfplots}
}{}%

\IfFileExists{tikzlibraryexternal.code.tex}{%
    \usetikzlibrary{external}
}{%
    \message{TEST IS RUNNING IN COMPATIBILITY MODE}%
    % a test to check for pgf 2.00 compatibility, to check whether the
    % external library copy shipped with pgfplots works:
    \usepgfplotslibrary{external}
}%

\pgfkeys{/pgf/images/include external/.code={\href{file:#1}{\pgfimage{#1}}}}