[pstricks] psframebox

Michael Sharpe msharpe at ucsd.edu
Tue Aug 12 19:07:33 CEST 2008


I believe what you are seeing as output is most likely the result of a  
"white space trimming" subsequent to pstricks, as part of the  
conversion to either .eps or .pdf, or even .png. Your solution, to  
make an off-white fillcolor may be as good  as any. Another  
possibility would be to use pst-eps, but that might not fit into the  
post-processing used by latexit.

Michael

On Aug 12, 2008, at 8:48 AM, Charles Pugh wrote:

> 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.
>



More information about the PSTricks mailing list