[pstricks] colored labels

Dominique RODRIGUEZ dominique.rodriguez at waika9.com
Fri Nov 21 09:43:18 CET 2008


Hello Doris,

Some time ago, Herbert send me this for adding it to pst-eucl, it is added but not
yet released (damned...). As we said here in the south of France : demain sans
faute !

\documentclass[a4paper,10pt]{article}
\usepackage{pst-eucl}
\makeatletter
\define at key[psset]{pst-eucl}{labelColor}{\def\psk at labelColor{#1}}
\psset{labelColor=black}
\def\Pst at WhichLabel#1{{\color{\psk at labelColor}%
	\ifx\psk at PointName\@default#1\else\psk at PointName\fi}}
\makeatother

\begin{document}
  \begin{pspicture}(0,0)(1,1)
     \pstGeonode[labelColor=red](1,1){A}
     \pstGeonode[labelColor=blue,PtNameMath=false](0,0){B}
     \pstGeonode[PointName=x](1,0){C}
  \end{pspicture}
\end{document}

hope this help,
Dominique
-- 
  Les Galinières - 07460 St André de C. FRANCE-- tel: (+33)475.39.05.82


More information about the PSTricks mailing list