[pstricks] pst-eucl question -- labeling sides of a triangle

David Arnold dwarnold45 at suddenlink.net
Sun Apr 19 19:27:43 CEST 2009


A good idea!

Thanks.

D.

On Apr 19, 2009, at 8:19 AM, Christoph Bersch wrote:

David Arnold wrote:
>
> 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$}

\pstTriangle creates new nodes which you can use like normal:

\documentclass{article}
\usepackage{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}
\ncline[linestyle=none]{A}{B}\naput{first}
\ncline[linestyle=none]{B}{C}\naput{second}
\ncline[linestyle=none]{A}{C}\nbput{third}
\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



More information about the PSTricks mailing list