# [pstricks] Requesting a feature to declare and invoke nodes in pst-eucl

Donut E. Knot the.counterterrorist at yahoo.com
Fri Feb 14 09:28:22 CET 2014

Dear folks,

The current implementation of pst-eucl, the dots and labels are rendered at the time the nodes are defined. As a result, the dots and labels are put on the bottom layer. For some scenarios, it becomes an issue.

In my scenario below, I want the dots and labels to be rendered after the \pspolygon. It is impossible for the current state of pst-eucl.

\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pst-eucl}
\begin{document}
\begin{pspicture}(4,4)
\pstGeonode[PosAngle={30,150,-90},PointNameSep=12pt]{A}(4,0){B}(2,4){C}
\pspolygon[fillstyle=solid,fillcolor=blue,opacity=.5](A)(B)(C)
\end{pspicture}
\end{document}

I have an idea to solve the issue above by defining two new macros:

* \pstDeclareNodes just for defining nodes but not stroking them.

* \pstInvokeNodes for stroking dots and labels of the previous defined nodes.
The following pseudo-code tells my idea.

\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pst-eucl}
\begin{document}
\begin{pspicture}(4,4)
\pstDeclareNode[PosAngle={30,150,-90},PointNameSep=12pt,SaveStateTo=<identifier>]{A}(4,0){B}(2,4){C}
\pspolygon[fillstyle=solid,fillcolor=blue,opacity=.5](A)(B)(C)
\pstInvokeNode[CurveType=polygon,PointSymbol=none,etc]{<identifier>}
\end{pspicture}
\end{document}

What do you think?

Best regards,

The Last Error

(http://tex.stackexchange.com/users/19356/)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20140214/1e76c840/attachment.html>