[pstricks] label white background in a yellow filled triangle

Patrice MÉGRET Patrice.MEGRET at umons.ac.be
Wed Apr 20 17:47:49 CEST 2011


Hi Luis,

Here is a way to do with \psframebox*{}

\documentclass{report}

\usepackage{pstricks}

\begin{document}
\begin{pspicture}(10,5)
\psgrid
\pspolygon[fillstyle=solid,fillcolor=yellow](1,3)(4,0)
\rput(1,0.5){\psframebox*{\textcolor{blue}{Texte}}}
\end{pspicture}

\end{document}

If the backgound color should be other than white (here red) then use \psframebox[fillstyle=solid,fillcolor=red,linestyle=none]{\textcolor{blue}{Texte}}

Best regards,

Patrice



De : pstricks-bounces at tug.org [mailto:pstricks-bounces at tug.org] De la part de Luís Lopes
Envoyé : mercredi 20 avril 2011 17:13
À : pstricks at tug.org
Objet : [pstricks] label white background in a yellow filled triangle

Dear list members,

I have a yellow filled triangle and a label written in blue
in it.

Is there a way to put a white background under the label?

As always, thank you for your time.

Luis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20110420/571ff50f/attachment.html>


More information about the PSTricks mailing list