Debian Codegraph @

texmf-dist/doc/latex/adigraph/adigraph_working_test.tex

raw
1 \documentclass{report}
2
3 \usepackage[usenames,dvipsnames]{xcolor}
4 \usepackage{adigraph}
5
6 \title{Adigraph, \AdigraphVersionNumber, small working test}
7 \author{Luca Cappelletti}
8 \date{March 2024}
9
10 \begin{document}
11 \maketitle
12 \begin{center}
13 \NewAdigraph{myAdigraph}{
14 0:0,0;
15 1:2,2;
16 3:2,-2;
17 2:6,2;
18 4:6,-2;
19 t:8,0;
20 }{
21 0,1:25;
22 0,3:25;
23 3,4:25;
24 1,2:35;
25 2,t:20;
26 4,t:30;
27 3,1:10;
28 4,2:10;
29 2,3:15::near start;
30 4,1:5::near start;
31 }
32
33 \begin{figure}
34 \myAdigraph{}
35 \end{figure}
36
37
38 \begin{figure}
39 \myAdigraph{
40 0,3,4,2,t:5;
41 }
42 \end{figure}
43
44 \begin{figure}
45 \myAdigraph{}{
46 2,t,red;
47 3,4,blue;
48 }
49 \end{figure}
50 \NewAdigraph{mySecondAdigraph}{
51 1:4;
52 2:4;
53 3:4;
54 4:4;
55 5:4;
56 6:4;
57 7:4;
58 8:4;
59 }{
60 1,*:3;
61 2,*:3;
62 3,*:3;
63 4,*:3;
64 5,*:3;
65 6,*:3;
66 7,*:3;
67 8,*:3;
68 }
69
70 \begin{figure}
71 \mySecondAdigraph{}
72 \end{figure}
73 \NewAdigraph{myThirdAdigraph}{
74 s:0,0;
75 1:2,2;
76 3:2,-2;
77 2:6,2;
78 4:6,-2;
79 t:8,0;
80 }{
81 s,+:25;
82 s,+:25;
83 3,+:25;
84 1,*:35;
85 2,+:20.567;
86 3,+:1.67;
87 4,+:10;
88 2,+:15.97;
89 4,+:5;
90 }
91
92 \begin{figure}
93 \myThirdAdigraph{}
94 \end{figure}
95 \begin{figure}
96 \myThirdAdigraph{s,3,4,2,t:5;}
97 \end{figure}
98 \begin{figure}%
99 \myThirdAdigraph{}{
100 2,1,red;
101 3,4,blue;
102 }
103 \end{figure}
104
105 \NewAdigraph{myForthAdigraph}{
106 1:4;
107 2,Melon,1:4;
108 3:4;
109 4:4;
110 5:4;
111 6,purple,5:4;
112 7:4;
113 8:4;
114 }{
115 1,2:5;
116 2,3:5.0;
117 3,4:10;
118 4,5:5;
119 5,6,purple,5:5;
120 }
121 \begin{figure}
122 \myForthAdigraph{
123 1,2,3:0;
124 }
125 \end{figure}
126
127 \NewAdigraph{myFifthAdigraph}{
128 1:4;
129 2:4;
130 3:4;
131 4:4;
132 5:4;
133 6:4;
134 7:4;
135 8:4;
136 }{
137 1,*,red!80;
138 *,4,blue;
139 2,3;
140 3,4;
141 }
142
143 \begin{figure}
144 \myFifthAdigraph{
145 2,3,4::purple:5;
146 }
147 \end{figure}
148 \end{center}
149
150 \end{document}