Download PSTricks: User's Guide

Transcript
gth
Len
1
2
3
\pspolygon(0,0)(4,2)(4,0)
\pcline[offset=12pt]{|-|}(0,0)(4,2)
\lput*{:U}{Length}
(Remember that with the put commands, you can omit the coordinate
if you include the angle of rotation. You are likely to use this feature
with the node label commands.)
With \lput and \rput, you have a lot of control over the position of
the label. E.g.,
label
1
2
\pcline(0,0)(4,2)
\lput{:U}{\rput[r]{N}(0,.4){label}}
puts the label upright on the page, with right side located .4 centimeters “above” the position .5 of the node connection (above if the
node connection points to the right). However, the \aput and \bput
commands described below handle the most common cases without
\rput.21
\aput*[labelsep]{angle}(pos){stuff }
stuff is positioned distance \pslabelsep above the node connection,
given the convention that node connections point to the right. \aput
is a node-connection variant of \uput. For example:
se
enu
t
o
p
Hy
1
2
3
\pspolygon(0,0)(4,2)(4,0)
\pcline[linestyle=none](0,0)(4,2)
\aput{:U}{Hypotenuse}
\bput*[labelsep]{angle}(pos){stuff }
This is like \aput, but stuff is positioned below the node connection.
21
There is also an obsolete command \Lput for putting labels next to node connections.
The syntax is
1
\Lput{labelsep}[refpoint]{rotation}(pos){stuff }
It is a combination of \Rput and \lput, equivalent to
1
\lput(pos){\Rput{labelsep}[refpoint]{rotation}(0,0){stuff }}
\Mput is a short version of \Lput with no {<rotation>} or (<pos>) argument. \Lput and
\Mput remain part of PSTricks only for backwards compatibility.
Obsolete put commands
80