[pstricks] psframebox
Charles Pugh
cpugh at math.toronto.edu
Tue Aug 12 17:48:55 CEST 2008
Hello --
I'm using latexit and pstricks to make labels for math diagrams in
drawing programs EazyDraw and Illustrator CS2. In latexit the
following code produces a framed label with yellow fillcolor and the
background shape I want -- namely, round corners and a 2pt border
around the text.
\documentclass[10pt]{article}
\usepackage{color} %used for font color
\usepackage{amssymb} %maths
\usepackage{amsmath} %maths
\usepackage[utf8]{inputenc} %useful to type directly accentuated
characters
\usepackage{pstricks}
\psframebox*[framearc=.5,
fillcolor=yellow,
framesep=2pt]{Text}
(The first 5 lines of the code are supplied by latexit, which also
internally adds \begin{document} and \end{document} commands around
the last three lines when it processes the code.)
But with fillcolor=white the framebox has square corners and a
border of 0pt. (I want this text on a white background in order to
show up well when it lies on top of shaded portions of the diagram or
curves.)
A kludge solution is to define a new fillcolor with \definecolor
{mywhite}{rgb}{.99,.99,.99}, but there should be a nicer way to get a
solid white box with a 2pt rounded border.
Best, Charles Pugh
More information about the PSTricks
mailing list