| 1 |
%% LaTeX2e file `tmp-gen-using-a-library-method.tex' |
| 2 |
%% generated by the `filecontents' environment |
| 3 |
%% from source `codeanatomy.lstlisting' on 2025/10/19. |
| 4 |
%% |
| 5 |
\begin{tikzpicture}[remember picture] |
| 6 |
\codeBlock{% |
| 7 |
\iPart{r}{double} d = \iPart{l}{Math}.\iPart{m}{sqrt}(\iPart{a}{b*b - 4.0*a*c)}; |
| 8 |
} |
| 9 |
% Annotation |
| 10 |
\codeAnnotation{lText} (2, 1.125) {library name} |
| 11 |
\codeAnnotation{mText} (4.5, 1.125) {method name} |
| 12 |
\codeAnnotation{rText} (2,-0.7) {return type} |
| 13 |
\codeAnnotation{aText} (4,-0.7) {argument} |
| 14 |
% Arrows |
| 15 |
\draw[->,annotation] (lText) -- (l); |
| 16 |
\draw[->,annotation] (mText) -- (m); |
| 17 |
\draw[->,annotation] (rText.north west) -- (r); |
| 18 |
\draw[->,annotation] (aText.north east) -- (a); |
| 19 |
\end{tikzpicture} |