1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
%\usepackage[T1]{fontenc}
%\usepackage{spqr}
\input{spqr2}
%\begin{document}
\def\CurrentPackages{spqr,pstcol}
\newcounter{myN}
\setlongtables
\author[Sebastian Rahtz]{Sebastian Rahtz\\Elsevier Science Ltd\\
Email: \texttt{s.rahtz@elsevier.co.uk}}
\title{An introduction to PSTricks, part 2}
\begin{Article}
\section{Preface}
Let us first demonstrate the effects of these basic building blocks:
\end{multicols}
\begin{longtable}{l}
\begin{PSTInlineExample}(3,1)
\rput(.5,.5){\rnode{A}{Cat}}
\rput(2.5,.5){\rnode{B}{Dog}}
\ncline{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,1)
\rput(.5,.5){\Rnode{A}{Cat}}
\rput(2.5,.5){\Rnode{B}{Dog}}
\ncline{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,1)
\pnode(.5,.5){A}
\pnode(2.5,.5){B}
\ncline{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,1)
\cnode(.5,.5){.2}{A}
\cnode(2.5,.5){.2}{B}
\ncline{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,1)
\psset{radius=.3}
\Cnode(.5,.5){A}
\Cnode(2.5,.5){B}
\ncline{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,1)
\rput(.5,.5){\circlenode{A}{Cat}}
\rput(2.5,.5){\circlenode{B}{Dog}}
\ncline{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,1)
\rput(.5,.5){\ovalnode{A}{Cat}}
\rput(2.5,.5){\ovalnode{B}{Dog}}
\ncline{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,1)
\rput(.5,.5){\trinode{A}{Cat}}
\rput(2.5,.5){\trinode{B}{Dog}}
\ncline{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,1)
\dotnode(.5,.5){A}
\dotnode(2.5,.5){B}
\ncline{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,1)
\fnode(.5,.5){A}
\fnode(2.5,.5){B}
\ncline{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,1)
\rput(.5,.5){\dianode{A}{Cat}}
\rput(2.5,.5){\dianode{B}{Dog}}
\ncline{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,1)
\rput(.5,.5){\rnode{A}{\psframebox{Cat}}}
\rput(2.5,.5){\rnode{B}{\psframebox{Dog}}}
\ncline{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,2)
\rput(.5,.5){\rnode{A}{\psframebox{Cat}}}
\rput(2.5,1.5){\rnode{B}{\psframebox{Dog}}}
\nccurve[angleB=180]{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,1)
\rput(.5,.5){\rnode{A}{\psframebox{Cat}}}
\rput(2.5,.5){\rnode{B}{\psframebox{Dog}}}
\ncarc{->}{A}{B}
\ncarc{->}{B}{A}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,2)
\rput(.5,.5){\rnode{A}{\psframebox{Cat}}}
\rput(2.5,1.5){\rnode{B}{\psframebox{Dog}}}
\ncbar{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,2)
\rput(.5,.5){\rnode{A}{\psframebox{Cat}}}
\rput(2.5,1.5){\rnode{B}{\psframebox{Dog}}}
\ncdiag[angleB=180]{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,2)
\rput(.5,.5){\rnode{A}{\psframebox{Cat}}}
\rput(2.5,1.5){\rnode{B}{\psframebox{Dog}}}
\ncdiagg[angleB=180]{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,2)
\rput(.5,.5){\rnode{A}{\psframebox{Cat}}}
\rput(2.5,1.5){\rnode{B}{\psframebox{Dog}}}
\ncangle[angleB=180]{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,2)
\rput(.5,.5){\rnode{A}{\psframebox{Cat}}}
\rput(2.5,1.5){\rnode{B}{\psframebox{Dog}}}
\ncangles[angleB=180]{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,2)
\rput(.5,.5){\rnode{A}{\psframebox{Cat}}}
\rput(2.5,1.5){\rnode{B}{\psframebox{Dog}}}
\ncloop[loopsize=.25,angleB=180]{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,2)
\rput(1,.5){\rnode{A}{\psframebox{Cat}}}
\nccircle{->}{A}{.5}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,1)
\rput(.5,.5){\rnode{A}{\psframebox{Cat}}}
\rput(2.5,.5){\rnode{B}{\psframebox{Dog}}}
\psset{coilarm=.01,coilwidth=.3}
\nccoil{A}{B}
\end{PSTInlineExample}
\\
\begin{PSTInlineExample}(3,1)
\rput(.5,.5){\rnode{A}{\psframebox{Cat}}}
\rput(2.5,.5){\rnode{B}{\psframebox{Dog}}}
\psset{coilarm=.01,coilwidth=.3}
\nczigzag{A}{B}
\end{PSTInlineExample}
\\
\end{longtable}
\begin{multicols}{2}
\end{Article}
|