我正在使用 Windows MiKTeX 编译器运行我的 latex 文件。我试图缩放并将缩放部分显示为fig:b
,将原始图像显示为fig:a
。
我收到以下错误:
! Package pgfkeys Error: I do not know the key '/tikz/zoomboxarray' and I am go
ing to ignore it. Perhaps you misspelled it.
See the pgfkeys package documentation for explanation.
Type H <return> for immediate help.
对于我正在下面测试的代码:
\documentclass{article}
\usepackage{graphics,graphicx}
\usepackage{tikz}
\usetikzlibrary{spy}
\begin{document}
\begin{figure}[ht]
\centering
\begin{tikzpicture}[
zoomboxarray,
zoomboxarray columns=1,
zoomboxarray rows=1,
connect zoomboxes,
zoombox paths/.append style={ultra thin, red} % line width=3pt
]
\node [node image] { \includegraphics[scale=0.4]{disparity1} };
\zoombox[magnification=2]{0.5,0.5}
\end{tikzpicture}
\end{figure}
\end{document}
我已经尝试过下面的代码:
\begin{tikzpicture}[spy using outlines={red,magnification=5,size=3cm, connect spies}] % circle
\node{ \includegraphics[scale=0.4]{disparity1} };
\spy on (-4,0) in node at (-4,5);
\spy on (4,0) in node at (3,5);
\end{tikzpicture}
但是,它并没有给出预期的结果。