Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Where can I find the TikZ spy package?
I found a great article here: How to create magnified subfigures and corresponding boxes for portions of a large image

Even with Google and StackExchange search I can’t find a site to download the package. Can anyone help me?

share|improve this question
    
If you check the accepted answer on the question you linked to, you will find lines containing \usepackage{tikz} and \usetikzlibrary{spy}. –  Qrrbrbirlbel May 10 '13 at 18:22
    
if i try this: \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{spy} i get this message: ! I can't find file tikzlibraryspy.code.tex.... Without \usetikzlibrary{spy} tikz works fine. –  romi1013 May 10 '13 at 18:28
    
You most likely have an outdated PGF/TikZ installation. You should update your TeX distribution. –  Qrrbrbirlbel May 10 '13 at 18:36
add comment

1 Answer

up vote 6 down vote accepted

spy is a TiKZ library not a package so it comes with TiKZ although its name in CTAN is pgf.

As Qrrbrbirlbel explains, you need to first load Tikz with \usepackage{tikz} and later any tikzlibrary with \usetikzlibrary{spy}.

You can find some more information abouts tikzlibraries in List of available TikZ libraries with a short introduction

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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