[pstricks] pst-eucl question -- labeling sides of a triangle
David Arnold
dwarnold45 at suddenlink.net
Sun Apr 19 06:29:26 CEST 2009
OK, I have a solution, but don't know if it is the most efficient way
to tackle this question:
\documentclass{article}
\usepackage{pstricks,pst-eucl}
\begin{document}
\begin{center}
\begin{pspicture}(0,-0.2)(4,3.2)
\pstTriangle[PointSymbol=none,linecolor=blue,PosAngle={0,90,0}](0,0)
{A}(4,3){B}(4,0){C}
\pstRightAngle[linecolor=blue]{A}{C}{B}
\pstMiddleAB[PointSymbol=none,PointName=none]{A}{C}{b}
\pstMiddleAB[PointSymbol=none,PointName=none]{C}{B}{a}
\pstMiddleAB[PointSymbol=none,PosAngle=135]{A}{B}{c}
\uput[0](a){3 m}
\uput[-90](b){4 m}
\end{pspicture}
\end{center}
\end{document}
David.
On Apr 18, 2009, at 9:25 PM, David Arnold wrote:
All,
OK, This works for letters.
\begin{center}
\begin{pspicture}(0,-0.2)(4,3.2)
\pstTriangle[PointSymbol=none,linecolor=blue,PosAngle={0,90,0}](0,0)
{A}(4,3){B}(4,0){C}
\pstRightAngle[linecolor=blue]{A}{C}{B}
\pstMiddleAB[PointSymbol=none,PosAngle=-90]{A}{C}{b}
\pstMiddleAB[PointSymbol=none,PosAngle=0]{C}{B}{a}
\pstMiddleAB[PointSymbol=none,PosAngle=135]{A}{B}{c}
\end{pspicture}
\end{center}
But what if I want to label sides a and b with 3meters and 4 meters,
respectively.
Still not sure I am using the best approach.
D.
On Apr 18, 2009, at 8:45 PM, David Arnold wrote:
All,
I would like to label the side of the right triangle produced by the
code below with the lower case letter of the upper case letter
marking the vertex directly opposite each side.
What's the best way to do this?
If I were just using nodes, I would:
\ncline{A}{B}
\nbput{$c$}
But I am not sure what to use when I am taking this pst-eucl approach.
What's the most efficient technique?
David
\documentclass{article}
\usepackage{pstricks,pst-eucl}
\begin{document}
\begin{center}
\begin{pspicture}(0,-0.2)(4,3.2)
\pstTriangle[PointSymbol=none,linecolor=blue](0,0){A}(4,3){B}(4,0){C}
\pstRightAngle[linecolor=blue]{A}{C}{B}
\end{pspicture}
\end{center}
\end{document}
_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks
_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks
More information about the PSTricks
mailing list