23 23

24 24
\newcommand\includes{{\tt \#include}s}

25 25

26
   \newlength{\stackY}

26 27
% this version of the callout macro operates differently the original

27 28
% all (x,y) positions are relative to the outer ("global") box

28 29
% 1. height (y position) of callout dot

......
32 33
% 6 x position of dot

33 34
\newcommand\callout[6]{%

34 35
   {\small

36
%  stackY = \the\stackY\\

35 37
   \put(#6,#1){\circle*{1.6}}

36 38
   \FPeval{\qX}{\mainX+3}%- #6}

37 39
   \qbezier{(#6,#1)(#2,#3)(\qX,#4)}

38 40
%  \put(#2,#3){\circle{1}}

39 41
   \FPeval{\oX}{\qX+15.0}

40
   \put(\oX,#4){\oval(30,12)}

42
%  \put(\oX,#4){\oval(30,12)}

43
   \put(\oX,#4){\oval(30,8)}

41 44
%  \put(\oX,#4){\circle{1}}

42
   \FPeval{\tX}{\qX+2}

45
   \FPeval{\tX}{\qX+1.75}

43 46
   \FPeval{\tY}{#4-3.5}

44 47
   \put(\tX,\tY){\shortstack[l]{#5}}

45 48
   }% small

......
62 65
\FPeval{\mainY}{\globY-2}

63 66
mainX = \FPprint{\mainX} , mainY = \FPprint{\mainY}\\

64 67
\FPeval{\lineY}{1.2*\number\baselineskip/\number\unitlength}

65
lineY = \lineY

68
lineY = \lineY\\

69
\newlength{\height}

70
\settoheight{\height}{\hbox{ADMB \includes}}

71
Value = \the\height\\

72
\settoheight{\height}{\shortstack{ADMB \includes\\ and global methods}}

73
Value = \the\height\\

66 74

67 75
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

68 76

......
77 85
  \thinlines

78 86
  \FPeval{\result}{\globY-\lineY}

79 87
  %result = \FPprint{\result}

80
% \callout{\result}{52}{\result}{125}{GLOBALS\_SECTION\\ User \includes\\ User methods}{0}

81 88
  \FPeval{\result}{\globY - 2*\lineY}

82 89
  \put(1,\result){\shortstack[l]{ADMB \includes\ and global methods}}

83 90

......
89 96
        \put(1,118){{\tt int main(int argc, char * argv[])}}

90 97
        \put(0,117){\line(1,0){\mainX}}

91 98
        \put(1,113){Set {\tt new} and {\tt exit} routines}

92
%       \callout{111}{52}{111}{110}{TOP\_OF\_MAIN\_SECTION\\~ \\User-specified buffer sizes}{1}

93 99


94 100
        \FPeval{\mpX}{\mainX-2}

95 101
        \put(1,58){\begin{picture}(\mpX, 50)

......
110 116
                   \put(0,0){\framebox(\commX,13){%

111 117
                   \put(1,11){{\tt ad\_comm(argc, argv)}}

112 118
                   \put(0,10){\line(1,0){\commX}}

113
%                  \callout{8}{50}{8}{10}{Process certain\\ user-specified\\ commmand-line options}{4}

114 119
                   \put(1,5){Initialize {\tt ad\_comm} member variables}

115 120
                   \put(1,2){Set file names for I/O operations}

116 121
                   }} % ad_comm box

117 122
                   \end{picture}}

118 123
               \put(1,7){Read data from {\tt .dat} or}

119 124
               \put(1,3){user-specified file.}

120
%              {\color{blue}\thicklines

121
%              \callout{1}{50}{1}{8}{Allocate variables\\ defined in\\DATA\_SECTION}{3}} % blue

122 125
               }} %model_data box

123 126
               \end{picture}}

124
%              \callout{10}{\mainX}{12}{7}{Execute user code in\\ INITIALIZATION\_\\ SECTION}{2}

125
%              {\color{blue}\thicklines

126
%              \callout{7}{\mainX}{9}{0}{Alllocate parameters in\\ \\ PARAMETER\_SECTION}{3}} % blue

127 127
               \put(1,3){Append user variables}

128 128
               \put(1,0){ADMB parameter vector.}

129 129
           }} %model_parameters box

130 130
           \end{picture}}

131
%         \callout{55}{\mainX}{55}{50}{Execute user code in\\PRELIMINARY\_CALCS\_\\ SECTION}{1}

132 131


133
          \put(1,28){\begin{picture}(\mpX,24)

134
               \put(0,0){\framebox(\mpX,24){%

135
               \put(1,21){{\tt mp.computations(...)}}

136
               \put(0,20){\line(1,0){\mpX}}

137
               \put(1,17){Set up minimizer control structure.}

138
               \put(1,12){No more room in this box.}

139
               \put(1,8){See Figure Figure~\ref{fig:comp2}}

140
           }} %model_parameters box

132
               \color{red}

133
          \put(1,10){\begin{picture}(\mpX,42)

134
               \put(0,0){\framebox(\mpX,42){%

135
               \put(1,39){{\tt mp.computations(...)}}

136
               \put(0,38){\line(1,0){\mpX}}

137
               \put(1,35){Set up minimizer control structure.}

138
               \color{green}

139
               \FPeval{\commX}{\mainX-4}

... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff