Revision 1817

trunk/docs/uml/Makefile (revision 1817)
1
all: admb-component.pdf admb-seqdiag.png admb-blockdiag.png
1
#$Id$
2
#
3
.SUFFIXES: .pdf .tex .png
4
all: big-admb-component.png admb-component.pdf admb-seqdiag.png admb-blockdiag.png
2 5

  
6
%.pdf:%.tex
7
	pdflatex $^
8

  
9
big-admb-component.png: big-admb-component.pdf
10
#	extract page 2
11
	gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dFirstPage=2 -dLastPage=2 -sOutputFile=t1.pdf $*.pdf
12
#	crop page 2
13
	pdfcrop --verbose --margins 0 --clip t1.pdf t2.pdf
14
#	convert to 300 dpi png
15
	convert -antialias -density 600 t2.pdf $@
16

  
3 17
admb-component.pdf: admb-component.tex
4 18
	pdflatex admb-component
5 19

  
......
10 24
	blockdiag admb-blockdiag
11 25

  
12 26
clean:
13
	@rm -vf admb-blockdiag.png
14
	@rm -vf admb-seqdiag.png
15
	@rm -vf admb-component.aux
16
	@rm -vf admb-component.log
17
	@rm -vf admb-component.pdf
27
	@rm -vf *.png
28
	@rm -vf *.aux
29
	@rm -vf *.aux
30
	@rm -vf *.out
31
	@rm -vf *.log
32
	@rm -vf *.pdf
18 33
	@rm -vf simple
19 34
	@rm -vf simple.bar
20 35
	@rm -vf simple.cor
21 36

  
trunk/docs/uml/big-admb-component.tex (revision 1817)
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}}
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff