\begin{figure}
\begin{center}
\subfloat[][]{\label{fig:afm-schematic}
- \asyinclude{figures/schematic/afm}}
+ \begin{tikzpicture}[remember picture]
+ \node[anchor=south west,inner sep=0] (image) at (0,0) {
+ \asyinclude{figures/schematic/afm}};
+ \begin{scope}[x={(image.south east)},y={(image.north west)}]
+ \draw [decorate,decoration={brace,raise=4pt,mirror}]
+ (0.715,0.05) -- (0.715,0.2)
+ node [midway,xshift=3pt] (afm-piezo-brace) {};
+ \end{scope}
+ \end{tikzpicture}
+ }
\hspace{.25in}%
\subfloat[][]{\label{fig:piezo-schematic}
- \asyinclude{figures/schematic/piezo}}
+ \begin{tikzpicture}[remember picture]
+ \node[anchor=south west,inner sep=0] (image) at (0,0) {
+ \asyinclude{figures/schematic/piezo}};
+ \begin{scope}[x={(image.south east)},y={(image.north west)}]
+ \draw [decorate,decoration={brace,raise=4pt}]
+ (0,0.1) -- (0,0.9)
+ node [midway,xshift=-3pt] (piezo-brace) {};
+ \draw [overlay,out=0,in=180] (afm-piezo-brace) to (piezo-brace);
+ \end{scope}
+ \end{tikzpicture}
+ }
\caption{\protect\subref{fig:afm-schematic} Operating principle
for an Atomic Force Microscope\index{AFM}. A sharp tip
integrated at the end of a cantilever interacts with the sample.
\usepackage{tikz} % a nice, inline PGF frontend
\usetikzlibrary{automata} % graph-theory library
\usetikzlibrary{calc} % coordinate-calculation library
+\usetikzlibrary{decorations.pathreplacing} % braces and other fancy paths
+\usetikzlibrary{topaths} % 'curve to' style lines (in, out, etc.)
\usetikzlibrary{shapes.misc} % for 'rounded rectangle'
\usepackage[inline]{asymptote} % more fancy graphics ;).