summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/pgf/testsuite/external/tikzexternaltest.sharedpreamble.tex
blob: 87e94f899ebeaca8b477cd50b9afdcbed832b099 (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}}}}